summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2023-04-02 09:24:16 -0400
committerAlexei Podtelezhnikov <apodtele@gmail.com>2023-04-02 09:24:16 -0400
commit311b78fa1240863fc206c2162cba54597a93f598 (patch)
tree45dd711a26bf6c72e3d473a1bcc287e616b6632f
parent8f7b14552498bc64e859179d559635c0750eccdf (diff)
downloadfreetype2-311b78fa1240863fc206c2162cba54597a93f598.tar.gz
* src/sfnt/ttpost.c: Formatting and comments.
-rw-r--r--src/sfnt/ttpost.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/sfnt/ttpost.c b/src/sfnt/ttpost.c
index aa5127666..f4e8fe508 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;
}