* src/sfnt/ttpost.c: Formatting and comments.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
diff --git a/src/sfnt/ttpost.c b/src/sfnt/ttpost.c
index aa51276..f4e8fe5 100644
--- a/src/sfnt/ttpost.c
+++ b/src/sfnt/ttpost.c
@@ -195,7 +195,7 @@
FT_FRAME_EXIT();
- /* compute number of names stored in table */
+ /* compute number of names stored in the table */
num_names = num_names > 257 ? num_names - 257 : 0;
/* now load the name strings */
@@ -282,7 +282,7 @@
goto Exit;
}
- /* load the indices and note their maximum */
+ /* load the indices and check their Mac range */
if ( FT_QNEW_ARRAY( glyph_indices, num_glyphs ) ||
FT_FRAME_ENTER( num_glyphs ) )
goto Fail;
@@ -409,7 +409,6 @@
FT_String** PSname )
{
FT_Error error;
- TT_Post_Names names;
FT_Fixed format;
#ifdef FT_CONFIG_OPTION_POSTSCRIPT_NAMES
@@ -429,8 +428,6 @@
return FT_THROW( Unimplemented_Feature );
#endif
- names = &face->postscript_names;
-
/* `.notdef' by default */
*PSname = MAC_NAME( 0 );
@@ -444,6 +441,9 @@
else if ( format == 0x00020000L ||
format == 0x00025000L )
{
+ TT_Post_Names names = &face->postscript_names;
+
+
if ( !names->loaded )
{
error = load_post_names( face );
@@ -466,6 +466,7 @@
/* nothing to do for format == 0x00030000L */
End:
+ /* post format errors ignored */
return FT_Err_Ok;
}