diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2010-01-07 10:31:53 +0000 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2010-01-07 10:31:53 +0000 |
commit | 5b40130739a5927ece1b3d74b3f28306b79a0253 (patch) | |
tree | 6d98a9e58455eb9d61450831b29e47b17a5fb2df /common | |
parent | 749d512f6e5852a7604511975771039b75373859 (diff) |
Update the example file. The old file used a single 'charpath pathbbox' to determine the
height of the text. It then used the 'scale' operator to draw larger text.
If the path was fixed to pixel boundaries, and the point size was low (default 15
points) this could lead to a small error which was magnified by the cumulative scale
operations.
This led to significant differences when using the FreeType font code, as it seems to
return a hinted path which is bounded by pixel co-ordinates, unlike the regular GS
code.
The altered code scales the font and recalculates the height of the text each time
giving more accurate results. In addition a minimum size has been introduced (50 points)
for the calculation of the text height. Together these result in much closer output.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10591 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions