[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] master 311b78fa1: * src/sfnt/ttpost.c: Formatting and commen
From: |
Werner Lemberg |
Subject: |
[freetype2] master 311b78fa1: * src/sfnt/ttpost.c: Formatting and comments. |
Date: |
Sun, 2 Apr 2023 09:25:31 -0400 (EDT) |
branch: master
commit 311b78fa1240863fc206c2162cba54597a93f598
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>
* src/sfnt/ttpost.c: Formatting and comments.
---
src/sfnt/ttpost.c | 11 ++++++-----
1 file 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;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] master 311b78fa1: * src/sfnt/ttpost.c: Formatting and comments.,
Werner Lemberg <=