Fix rendering of horizontally compressed CFFs.
Bug reported by Ivan Nincic <inincic@pdftron.com>. * src/cff/cffgload.c (cff_slot_load): Thinko: Check `xx' element of `font_matrix' also. * docs/CHANGES: Updated.
This commit is contained in:
parent
efaf5abcf8
commit
d77cd8ce7e
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
||||||
|
2009-08-25 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
Fix rendering of horizontally compressed CFFs.
|
||||||
|
Bug reported by Ivan Nincic <inincic@pdftron.com>.
|
||||||
|
|
||||||
|
* src/cff/cffgload.c (cff_slot_load): Thinko: Check `xx' element of
|
||||||
|
`font_matrix' also.
|
||||||
|
|
||||||
|
* docs/CHANGES: Updated.
|
||||||
|
|
||||||
2009-08-03 suyu0925@gmail.com
|
2009-08-03 suyu0925@gmail.com
|
||||||
|
|
||||||
Don't call `ft_fseek' every time when executing `ft_fread'.
|
Don't call `ft_fseek' every time when executing `ft_fread'.
|
||||||
|
|
|
@ -12,6 +12,10 @@ CHANGES BETWEEN 2.3.10 and 2.3.9
|
||||||
to avoid serious rounding issues if non-integral coordinates are
|
to avoid serious rounding issues if non-integral coordinates are
|
||||||
encountered.
|
encountered.
|
||||||
|
|
||||||
|
- Horizontally condensed CFF fonts (using the font matrix) were
|
||||||
|
rendered incorrectly. This bug has been introduced after
|
||||||
|
release 2.3.5.
|
||||||
|
|
||||||
|
|
||||||
II. IMPORTANT CHANGES
|
II. IMPORTANT CHANGES
|
||||||
|
|
||||||
|
|
|
@ -2765,8 +2765,8 @@
|
||||||
|
|
||||||
glyph->root.outline.flags |= FT_OUTLINE_REVERSE_FILL;
|
glyph->root.outline.flags |= FT_OUTLINE_REVERSE_FILL;
|
||||||
|
|
||||||
/* apply the font matrix -- `xx' has already been normalized */
|
if ( !( font_matrix.xx == 0x10000L &&
|
||||||
if ( !( font_matrix.yy == 0x10000L &&
|
font_matrix.yy == 0x10000L &&
|
||||||
font_matrix.xy == 0 &&
|
font_matrix.xy == 0 &&
|
||||||
font_matrix.yx == 0 ) )
|
font_matrix.yx == 0 ) )
|
||||||
FT_Outline_Transform( &glyph->root.outline, &font_matrix );
|
FT_Outline_Transform( &glyph->root.outline, &font_matrix );
|
||||||
|
|
Loading…
Reference in New Issue