Attract-Mode Support > Scripting

New feature: vertical text alignment

(1/3) > >>

Oomek:
I’ve added some additional flags to fe.text.align property
Align.TopCentre
Align.TopLeft
Align.TopRight
Align.BottomCentre
Align.BottomLeft
Align.BottomRight





I would like you to test it with your fonts and report if it aligns nicely.
I’m attaching a compiled attract.exe x64 and an example layout for testing

https://1drv.ms/u/s!Ag7uFeM0f_fzhOM9Eb2a5bKE6dKv1g

jedione:
i will have a go,   and report back tomorrow  thanks...

Q: this am64 you compiled would not happen to be the one
that is set up to run your new ambiance theme would it?   ;D ;D

maybee.......


update:
 it is saying that the archive is damaged   ,,when you try to open...
will try later

Oomek:
No. It’s a separate fork. I will merge them if there were no issues.

The file was too large, I’ve swapped it with the link to my OneDrive.

jedione:
cool thanks,    ;)

Oomek:
Added the following align modes:

Align.TopLeft, Align.TopRight, Align.TopCentre,
Align.BottomLeft, Align.BottomRight, Align.BottomCentre,
Align.MiddleLeft, Align.MiddleRight, Align.MiddleCentre

The modes:
Align.MiddleLeft, Align.MiddleRight, Align.MiddleCentre

replace the:
Align.Left, Align.Right, Align.Centre

The old align modes:
Align.Left, Align.Right, Align.Centre
are still working like before for compatibility reasons





The old alignment modes were quite unreliable causing random vertical shift depending on the font used.
If your custom font is off vertically and your text aligment is set to Align.Left you just swap it with Align.MiddleLeft and it should be positioned pixel-perfect

Navigation

[0] Message Index

[#] Next page

Go to full version