summaryrefslogtreecommitdiff
path: root/src/type42
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2008-12-25 23:52:00 +0000
committerWerner Lemberg <wl@gnu.org>2008-12-25 23:52:00 +0000
commit1ad384d8818e0b0da95b069d5874da6f7ec51558 (patch)
tree8a0589590291071d47d07d28723723707731dd45 /src/type42
parent66043b1c4fdfe971348ef619e0fd8d85284034f4 (diff)
Set `face_index' field in FT_Face for all font formats.
* cff/cffobjs.c (cff_face_init), winfonts/winfnt.c (FNT_Face_Init), sfnt/sfobjs.c (sfnt_init_face): Do it. * docs/CHANGES: Document it.
Diffstat (limited to 'src/type42')
-rw-r--r--src/type42/t42objs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/type42/t42objs.c b/src/type42/t42objs.c
index ad895aaa..16e9809c 100644
--- a/src/type42/t42objs.c
+++ b/src/type42/t42objs.c
@@ -188,7 +188,7 @@
goto Exit;
/* check the face index */
- if ( face_index != 0 )
+ if ( face_index > 0 )
{
FT_ERROR(( "T42_Face_Init: invalid face index\n" ));
error = T42_Err_Invalid_Argument;
@@ -202,7 +202,7 @@
root->num_glyphs = type1->num_glyphs;
root->num_charmaps = 0;
- root->face_index = face_index;
+ root->face_index = 0;
root->face_flags = FT_FACE_FLAG_SCALABLE |
FT_FACE_FLAG_HORIZONTAL |