[cairo] PDF: Font size is rounded
kou at cozmixng.org
Fri Apr 1 10:33:19 UTC 2016
The specified font size of scaled TrueType font is rounded
when PDF surface is used. Is it the expected behavior?
Here is a program that reproduces the behavior:
Here is the output of the program:
8.000, 8.125, 8.250 and 8.375 are the same font size.
8.500, ... and 9.375 are the same font size.
It's caused since FreeType 2.4.6. FreeType 2.4.6 includes
If I revert the change by
the program outputs the following PDF:
In the PDF, 8.000 and 8.125 are the different font size.
I send a question about whether the change is expected or
not to FreeType developers
https://savannah.nongnu.org/bugs/?47582 , a developer said
that it's expected:
He also said that the use case may be better handled by
So I send this question to here. Maybe I should send this
question to Pango. Pango also has the same behavior with
More information about the cairo