* src/cff/cffload.c (cff_font_load): Load charstrings_index earlier.
Use number of charstrings as argument to CFF_Load_FD_Select (as documented in the CFF specs).
This commit is contained in:
parent
f9831a6675
commit
edeed6b391
|
@ -1,3 +1,9 @@
|
||||||
|
2004-01-14 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
* src/cff/cffload.c (cff_font_load): Load charstrings_index earlier.
|
||||||
|
Use number of charstrings as argument to CFF_Load_FD_Select (as
|
||||||
|
documented in the CFF specs).
|
||||||
|
|
||||||
2004-01-13 Graham Asher <graham.asher@btinternet.com>
|
2004-01-13 Graham Asher <graham.asher@btinternet.com>
|
||||||
|
|
||||||
* src/pshinter/pshalgo.c (psh_glyph_init): Move assignment of
|
* src/pshinter/pshalgo.c (psh_glyph_init): Move assignment of
|
||||||
|
|
|
@ -2160,6 +2160,13 @@
|
||||||
if ( error )
|
if ( error )
|
||||||
goto Exit;
|
goto Exit;
|
||||||
|
|
||||||
|
if ( FT_STREAM_SEEK( base_offset + dict->charstrings_offset ) )
|
||||||
|
goto Exit;
|
||||||
|
|
||||||
|
error = cff_new_index( &font->charstrings_index, stream, 0 );
|
||||||
|
if ( error )
|
||||||
|
goto Exit;
|
||||||
|
|
||||||
/* now, check for a CID font */
|
/* now, check for a CID font */
|
||||||
if ( dict->cid_registry != 0xFFFFU )
|
if ( dict->cid_registry != 0xFFFFU )
|
||||||
{
|
{
|
||||||
|
@ -2204,7 +2211,7 @@
|
||||||
|
|
||||||
/* now load the FD Select array */
|
/* now load the FD Select array */
|
||||||
error = CFF_Load_FD_Select( &font->fd_select,
|
error = CFF_Load_FD_Select( &font->fd_select,
|
||||||
(FT_UInt)dict->cid_count,
|
font->charstrings_index.count,
|
||||||
stream,
|
stream,
|
||||||
base_offset + dict->cid_fd_select_offset );
|
base_offset + dict->cid_fd_select_offset );
|
||||||
|
|
||||||
|
@ -2225,13 +2232,6 @@
|
||||||
goto Exit;
|
goto Exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( FT_STREAM_SEEK( base_offset + dict->charstrings_offset ) )
|
|
||||||
goto Exit;
|
|
||||||
|
|
||||||
error = cff_new_index( &font->charstrings_index, stream, 0 );
|
|
||||||
if ( error )
|
|
||||||
goto Exit;
|
|
||||||
|
|
||||||
/* explicit the global subrs */
|
/* explicit the global subrs */
|
||||||
font->num_global_subrs = font->global_subrs_index.count;
|
font->num_global_subrs = font->global_subrs_index.count;
|
||||||
font->num_glyphs = font->charstrings_index.count;
|
font->num_glyphs = font->charstrings_index.count;
|
||||||
|
|
Loading…
Reference in New Issue