diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2009-07-25 17:48:01 -0700 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2009-07-25 17:48:01 -0700 |
commit | dc280eeb0aa3d55aaf6584c86623bf999ebd1736 (patch) | |
tree | 14b8437e23a816c57512fe472fdef4c7875c2eba /src/sfnt/ttpost.c | |
parent | 885cd2c19cbf73725d51f6b184d087b28343de1e (diff) | |
parent | 77f63d23f7d380b0ff02c18fd6a154ab9063128a (diff) | |
download | android_external_freetype-dc280eeb0aa3d55aaf6584c86623bf999ebd1736.tar.gz android_external_freetype-dc280eeb0aa3d55aaf6584c86623bf999ebd1736.tar.bz2 android_external_freetype-dc280eeb0aa3d55aaf6584c86623bf999ebd1736.zip |
Merge korg/donut into korg/master
Diffstat (limited to 'src/sfnt/ttpost.c')
-rw-r--r-- | src/sfnt/ttpost.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/sfnt/ttpost.c b/src/sfnt/ttpost.c index 1e61636..ce628e2 100644 --- a/src/sfnt/ttpost.c +++ b/src/sfnt/ttpost.c @@ -5,7 +5,7 @@ /* Postcript name table processing for TrueType and OpenType fonts */ /* (body). */ /* */ -/* Copyright 1996-2001, 2002, 2003, 2006, 2007 by */ +/* Copyright 1996-2001, 2002, 2003, 2006, 2007, 2008 by */ /* David Turner, Robert Wilhelm, and Werner Lemberg. */ /* */ /* This file is part of the FreeType project, and may only be used, */ @@ -62,11 +62,11 @@ /* table of Mac names. Thus, it is possible to build a version of */ /* FreeType without the Type 1 driver & PSNames module. */ -#define MAC_NAME( x ) tt_post_default_names[x] +#define MAC_NAME( x ) ( (FT_String*)tt_post_default_names[x] ) /* the 258 default Mac PS glyph names */ - static const FT_String* tt_post_default_names[258] = + static const FT_String* const tt_post_default_names[258] = { /* 0 */ ".notdef", ".null", "CR", "space", "exclam", @@ -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; |