It turns out that v_gtext() (and presumably v_ftext()) are supposed to honour the vst_alignment() settings. I never knew this, so I went back to the original DRI VDI doc to verify this. The ST Profibuch is (surprisingly) incorrect.
NVDI uses the alignment settings. I haven't tried an Atari VDI.
FVDI gets centring and right-alignment wrong for bitmap fonts, but is correct for Freetype fonts. In the following screenshot v_gtext() is being passed the coordinates of the red lines where they cross. Right-aligned text is visibly wrong, centred text requires a closer look with a paint program, but is also wrong.
I suspect this is going wrong somewhere in text.s's lib_v_gtext code, or maybe textlib.c's lib_vqt_extent().
It turns out that
v_gtext()
(and presumablyv_ftext()
) are supposed to honour thevst_alignment()
settings. I never knew this, so I went back to the original DRI VDI doc to verify this. The ST Profibuch is (surprisingly) incorrect.NVDI uses the alignment settings. I haven't tried an Atari VDI.
FVDI gets centring and right-alignment wrong for bitmap fonts, but is correct for Freetype fonts. In the following screenshot
v_gtext()
is being passed the coordinates of the red lines where they cross. Right-aligned text is visibly wrong, centred text requires a closer look with a paint program, but is also wrong.I suspect this is going wrong somewhere in text.s's
lib_v_gtext
code, or maybe textlib.c'slib_vqt_extent()
.