summaryrefslogtreecommitdiff
path: root/src/sfnt/ttpost.c
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2008-11-08 07:20:25 +0000
committerWerner Lemberg <wl@gnu.org>2008-11-08 07:20:25 +0000
commit95120928592c4d977abbef3b6582eae12b4058c2 (patch)
tree286aa02590c95cb97200a0d2b0e4c9bd13382efe /src/sfnt/ttpost.c
parentc321b9b0638031686aaa7af17d836ad6ff8fa582 (diff)
downloadfreetype2-95120928592c4d977abbef3b6582eae12b4058c2.tar.gz
* src/sfnt/sfobjs.c (tt_face_get_name): Modified to return an error
code so that memory allocation problems can be distinguished from missing table entries. Reported by Graham Asher. (GET_NAME): New macro. (sfnt_load_face): Use it.
Diffstat (limited to 'src/sfnt/ttpost.c')
-rw-r--r--src/sfnt/ttpost.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sfnt/ttpost.c b/src/sfnt/ttpost.c
index f434cfa9f..ce628e210 100644
--- a/src/sfnt/ttpost.c
+++ b/src/sfnt/ttpost.c
@@ -416,13 +416,14 @@
/* tt_face_get_ps_name */
/* */
/* <Description> */
- /* Gets the PostScript glyph name of a glyph. */
+ /* Get the PostScript glyph name of a glyph. */
/* */
/* <Input> */
/* face :: A handle to the parent face. */
/* */
/* idx :: The glyph index. */
/* */
+ /* <InOut> */
/* PSname :: The address of a string pointer. Will be NULL in case */
/* of error, otherwise it is a pointer to the glyph name. */
/* */
@@ -436,9 +437,9 @@
FT_UInt idx,
FT_String** PSname )
{
- FT_Error error;
- TT_Post_Names names;
- FT_Fixed format;
+ FT_Error error;
+ TT_Post_Names names;
+ FT_Fixed format;
#ifdef FT_CONFIG_OPTION_POSTSCRIPT_NAMES
FT_Service_PsCMaps psnames;