Too bad, I just cannot get the same result of text layout from tcaxLib, cairo, magick, none of them produce the same result, +-1 pixel error occurs by chance. Only a few font may produce the same result. : (
+-1 pixel error of position
And what's worse, it seems that the font size definition of ASS (or say VSFilter) is no good. See,
Font Size Set to 50, ASS - red, TCAS - blue
FT_SIZE_REQUEST_TYPE_NOMINAL
FT_SIZE_REQUEST_TYPE_NOMINAL
FT_SIZE_REQUEST_TYPE_REAL_DIM
Conclusion: if we use FT_SIZE_REQUEST_TYPE_REAL_DIM, the TCAS result can fit better to ASS, but the result of text is too small (smaller than a font size with 50 should be). However the good news is that, with most Japanese fonts, both of the definitions are OK. Sigh~~
|