* src/cff/cfftypes.h (CFF_MAX_CID_FONTS): Increase to 32. For
example, the Japanese Hiragino font already contains 15 subfonts. * src/cff/cffload.c (cff_font_load): Deallocate `sids' array for CID-keyed fonts.
This commit is contained in:
parent
57ecae22a7
commit
83da52b4cd
|
@ -1,3 +1,11 @@
|
|||
2003-12-19 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* src/cff/cfftypes.h (CFF_MAX_CID_FONTS): Increase to 32. For
|
||||
example, the Japanese Hiragino font already contains 15 subfonts.
|
||||
|
||||
* src/cff/cffload.c (cff_font_load): Deallocate `sids' array for
|
||||
CID-keyed fonts.
|
||||
|
||||
2003-12-18 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* include/freetype/ttnameid.h (TT_ADOBE_ID_LATIN_1): New macro.
|
||||
|
|
|
@ -663,6 +663,8 @@
|
|||
CFF_Font cff = (CFF_Font)(face->extra.data);
|
||||
|
||||
|
||||
/* XXX: What about CID-keyed fonts? */
|
||||
|
||||
bchar_index = cff_lookup_glyph_by_stdcharcode( cff, bchar );
|
||||
achar_index = cff_lookup_glyph_by_stdcharcode( cff, achar );
|
||||
}
|
||||
|
|
|
@ -2267,6 +2267,9 @@
|
|||
if ( error )
|
||||
goto Exit;
|
||||
}
|
||||
else
|
||||
/* CID-keyed fonts only need CIDs */
|
||||
FT_FREE( font->charset.sids );
|
||||
}
|
||||
|
||||
/* get the font name (/CIDFontName for CID-keyed fonts, */
|
||||
|
|
|
@ -199,7 +199,7 @@ FT_BEGIN_HEADER
|
|||
|
||||
|
||||
/* maximum number of sub-fonts in a CID-keyed file */
|
||||
#define CFF_MAX_CID_FONTS 16
|
||||
#define CFF_MAX_CID_FONTS 32
|
||||
|
||||
|
||||
typedef struct CFF_FontRec_
|
||||
|
|
Loading…
Reference in New Issue