summaryrefslogtreecommitdiff
path: root/src/cid
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2005-11-18 21:10:59 +0000
committerWerner Lemberg <wl@gnu.org>2005-11-18 21:10:59 +0000
commit6c99045972db747535dcd8e4d86afe6e6ce8c7d8 (patch)
tree0f1cf1ea555672dc14e7c734348076ed652f9f47 /src/cid
parent1a293d6c7331600d6acd219d183120ff7d96fdd7 (diff)
* src/sfnt/ttload.c (tt_face_load_metrics): Ignore excess number
of metrics instead of aborting. Patch suggested by Derek Noonburg. * src/cff/cffgload.c (cff_slot_load), src/cid/cidgload.c (cid_slot_load_glyph), src/type1/t1gload.c (T1_Load_Glyph): Scale the glyph properly if no hinter is available. * docs/CHANGES: Mention scaling bug.
Diffstat (limited to 'src/cid')
-rw-r--r--src/cid/cidgload.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/cid/cidgload.c b/src/cid/cidgload.c
index 20cc35c6..d61d9593 100644
--- a/src/cid/cidgload.c
+++ b/src/cid/cidgload.c
@@ -252,22 +252,6 @@
#endif /* 0 */
- /*************************************************************************/
- /*************************************************************************/
- /*************************************************************************/
- /********** *********/
- /********** *********/
- /********** UNHINTED GLYPH LOADER *********/
- /********** *********/
- /********** The following code is in charge of loading a *********/
- /********** single outline. It completely ignores hinting *********/
- /********** and is used when FT_LOAD_NO_HINTING is set. *********/
- /********** *********/
- /*************************************************************************/
- /*************************************************************************/
- /*************************************************************************/
-
-
FT_LOCAL_DEF( FT_Error )
cid_slot_load_glyph( FT_GlyphSlot cidglyph, /* CID_GlyphSlot */
FT_Size cidsize, /* CID_Size */
@@ -394,7 +378,7 @@
/* First of all, scale the points */
- if ( !hinting )
+ if ( !hinting || !decoder.builder.hints_funcs )
for ( n = cur->n_points; n > 0; n--, vec++ )
{
vec->x = FT_MulFix( vec->x, x_scale );