michael@0: /***************************************************************************/ michael@0: /* */ michael@0: /* t1tables.h */ michael@0: /* */ michael@0: /* Basic Type 1/Type 2 tables definitions and interface (specification */ michael@0: /* only). */ michael@0: /* */ michael@0: /* Copyright 1996-2004, 2006, 2008, 2009, 2011 by */ michael@0: /* David Turner, Robert Wilhelm, and Werner Lemberg. */ michael@0: /* */ michael@0: /* This file is part of the FreeType project, and may only be used, */ michael@0: /* modified, and distributed under the terms of the FreeType project */ michael@0: /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ michael@0: /* this file you indicate that you have read the license and */ michael@0: /* understand and accept it fully. */ michael@0: /* */ michael@0: /***************************************************************************/ michael@0: michael@0: michael@0: #ifndef __T1TABLES_H__ michael@0: #define __T1TABLES_H__ michael@0: michael@0: michael@0: #include michael@0: #include FT_FREETYPE_H michael@0: michael@0: #ifdef FREETYPE_H michael@0: #error "freetype.h of FreeType 1 has been loaded!" michael@0: #error "Please fix the directory search order for header files" michael@0: #error "so that freetype.h of FreeType 2 is found first." michael@0: #endif michael@0: michael@0: michael@0: FT_BEGIN_HEADER michael@0: michael@0: michael@0: /*************************************************************************/ michael@0: /* */ michael@0: /*
*/ michael@0: /* type1_tables */ michael@0: /* */ michael@0: /* */ michael@0: /* Type 1 Tables */ michael@0: /* */ michael@0: /* <Abstract> */ michael@0: /* Type~1 (PostScript) specific font tables. */ michael@0: /* */ michael@0: /* <Description> */ michael@0: /* This section contains the definition of Type 1-specific tables, */ michael@0: /* including structures related to other PostScript font formats. */ michael@0: /* */ michael@0: /*************************************************************************/ michael@0: michael@0: michael@0: /* Note that we separate font data in PS_FontInfoRec and PS_PrivateRec */ michael@0: /* structures in order to support Multiple Master fonts. */ michael@0: michael@0: michael@0: /*************************************************************************/ michael@0: /* */ michael@0: /* <Struct> */ michael@0: /* PS_FontInfoRec */ michael@0: /* */ michael@0: /* <Description> */ michael@0: /* A structure used to model a Type~1 or Type~2 FontInfo dictionary. */ michael@0: /* Note that for Multiple Master fonts, each instance has its own */ michael@0: /* FontInfo dictionary. */ michael@0: /* */ michael@0: typedef struct PS_FontInfoRec_ michael@0: { michael@0: FT_String* version; michael@0: FT_String* notice; michael@0: FT_String* full_name; michael@0: FT_String* family_name; michael@0: FT_String* weight; michael@0: FT_Long italic_angle; michael@0: FT_Bool is_fixed_pitch; michael@0: FT_Short underline_position; michael@0: FT_UShort underline_thickness; michael@0: michael@0: } PS_FontInfoRec; michael@0: michael@0: michael@0: /*************************************************************************/ michael@0: /* */ michael@0: /* <Struct> */ michael@0: /* PS_FontInfo */ michael@0: /* */ michael@0: /* <Description> */ michael@0: /* A handle to a @PS_FontInfoRec structure. */ michael@0: /* */ michael@0: typedef struct PS_FontInfoRec_* PS_FontInfo; michael@0: michael@0: michael@0: /*************************************************************************/ michael@0: /* */ michael@0: /* <Struct> */ michael@0: /* T1_FontInfo */ michael@0: /* */ michael@0: /* <Description> */ michael@0: /* This type is equivalent to @PS_FontInfoRec. It is deprecated but */ michael@0: /* kept to maintain source compatibility between various versions of */ michael@0: /* FreeType. */ michael@0: /* */ michael@0: typedef PS_FontInfoRec T1_FontInfo; michael@0: michael@0: michael@0: /*************************************************************************/ michael@0: /* */ michael@0: /* <Struct> */ michael@0: /* PS_PrivateRec */ michael@0: /* */ michael@0: /* <Description> */ michael@0: /* A structure used to model a Type~1 or Type~2 private dictionary. */ michael@0: /* Note that for Multiple Master fonts, each instance has its own */ michael@0: /* Private dictionary. */ michael@0: /* */ michael@0: typedef struct PS_PrivateRec_ michael@0: { michael@0: FT_Int unique_id; michael@0: FT_Int lenIV; michael@0: michael@0: FT_Byte num_blue_values; michael@0: FT_Byte num_other_blues; michael@0: FT_Byte num_family_blues; michael@0: FT_Byte num_family_other_blues; michael@0: michael@0: FT_Short blue_values[14]; michael@0: FT_Short other_blues[10]; michael@0: michael@0: FT_Short family_blues [14]; michael@0: FT_Short family_other_blues[10]; michael@0: michael@0: FT_Fixed blue_scale; michael@0: FT_Int blue_shift; michael@0: FT_Int blue_fuzz; michael@0: michael@0: FT_UShort standard_width[1]; michael@0: FT_UShort standard_height[1]; michael@0: michael@0: FT_Byte num_snap_widths; michael@0: FT_Byte num_snap_heights; michael@0: FT_Bool force_bold; michael@0: FT_Bool round_stem_up; michael@0: michael@0: FT_Short snap_widths [13]; /* including std width */ michael@0: FT_Short snap_heights[13]; /* including std height */ michael@0: michael@0: FT_Fixed expansion_factor; michael@0: michael@0: FT_Long language_group; michael@0: FT_Long password; michael@0: michael@0: FT_Short min_feature[2]; michael@0: michael@0: } PS_PrivateRec; michael@0: michael@0: michael@0: /*************************************************************************/ michael@0: /* */ michael@0: /* <Struct> */ michael@0: /* PS_Private */ michael@0: /* */ michael@0: /* <Description> */ michael@0: /* A handle to a @PS_PrivateRec structure. */ michael@0: /* */ michael@0: typedef struct PS_PrivateRec_* PS_Private; michael@0: michael@0: michael@0: /*************************************************************************/ michael@0: /* */ michael@0: /* <Struct> */ michael@0: /* T1_Private */ michael@0: /* */ michael@0: /* <Description> */ michael@0: /* This type is equivalent to @PS_PrivateRec. It is deprecated but */ michael@0: /* kept to maintain source compatibility between various versions of */ michael@0: /* FreeType. */ michael@0: /* */ michael@0: typedef PS_PrivateRec T1_Private; michael@0: michael@0: michael@0: /*************************************************************************/ michael@0: /* */ michael@0: /* <Enum> */ michael@0: /* T1_Blend_Flags */ michael@0: /* */ michael@0: /* <Description> */ michael@0: /* A set of flags used to indicate which fields are present in a */ michael@0: /* given blend dictionary (font info or private). Used to support */ michael@0: /* Multiple Masters fonts. */ michael@0: /* */ michael@0: typedef enum T1_Blend_Flags_ michael@0: { michael@0: /*# required fields in a FontInfo blend dictionary */ michael@0: T1_BLEND_UNDERLINE_POSITION = 0, michael@0: T1_BLEND_UNDERLINE_THICKNESS, michael@0: T1_BLEND_ITALIC_ANGLE, michael@0: michael@0: /*# required fields in a Private blend dictionary */ michael@0: T1_BLEND_BLUE_VALUES, michael@0: T1_BLEND_OTHER_BLUES, michael@0: T1_BLEND_STANDARD_WIDTH, michael@0: T1_BLEND_STANDARD_HEIGHT, michael@0: T1_BLEND_STEM_SNAP_WIDTHS, michael@0: T1_BLEND_STEM_SNAP_HEIGHTS, michael@0: T1_BLEND_BLUE_SCALE, michael@0: T1_BLEND_BLUE_SHIFT, michael@0: T1_BLEND_FAMILY_BLUES, michael@0: T1_BLEND_FAMILY_OTHER_BLUES, michael@0: T1_BLEND_FORCE_BOLD, michael@0: michael@0: /*# never remove */ michael@0: T1_BLEND_MAX michael@0: michael@0: } T1_Blend_Flags; michael@0: michael@0: /* */ michael@0: michael@0: michael@0: /*# backwards compatible definitions */ michael@0: #define t1_blend_underline_position T1_BLEND_UNDERLINE_POSITION michael@0: #define t1_blend_underline_thickness T1_BLEND_UNDERLINE_THICKNESS michael@0: #define t1_blend_italic_angle T1_BLEND_ITALIC_ANGLE michael@0: #define t1_blend_blue_values T1_BLEND_BLUE_VALUES michael@0: #define t1_blend_other_blues T1_BLEND_OTHER_BLUES michael@0: #define t1_blend_standard_widths T1_BLEND_STANDARD_WIDTH michael@0: #define t1_blend_standard_height T1_BLEND_STANDARD_HEIGHT michael@0: #define t1_blend_stem_snap_widths T1_BLEND_STEM_SNAP_WIDTHS michael@0: #define t1_blend_stem_snap_heights T1_BLEND_STEM_SNAP_HEIGHTS michael@0: #define t1_blend_blue_scale T1_BLEND_BLUE_SCALE michael@0: #define t1_blend_blue_shift T1_BLEND_BLUE_SHIFT michael@0: #define t1_blend_family_blues T1_BLEND_FAMILY_BLUES michael@0: #define t1_blend_family_other_blues T1_BLEND_FAMILY_OTHER_BLUES michael@0: #define t1_blend_force_bold T1_BLEND_FORCE_BOLD michael@0: #define t1_blend_max T1_BLEND_MAX michael@0: michael@0: michael@0: /* maximum number of Multiple Masters designs, as defined in the spec */ michael@0: #define T1_MAX_MM_DESIGNS 16 michael@0: michael@0: /* maximum number of Multiple Masters axes, as defined in the spec */ michael@0: #define T1_MAX_MM_AXIS 4 michael@0: michael@0: /* maximum number of elements in a design map */ michael@0: #define T1_MAX_MM_MAP_POINTS 20 michael@0: michael@0: michael@0: /* this structure is used to store the BlendDesignMap entry for an axis */ michael@0: typedef struct PS_DesignMap_ michael@0: { michael@0: FT_Byte num_points; michael@0: FT_Long* design_points; michael@0: FT_Fixed* blend_points; michael@0: michael@0: } PS_DesignMapRec, *PS_DesignMap; michael@0: michael@0: /* backwards-compatible definition */ michael@0: typedef PS_DesignMapRec T1_DesignMap; michael@0: michael@0: michael@0: typedef struct PS_BlendRec_ michael@0: { michael@0: FT_UInt num_designs; michael@0: FT_UInt num_axis; michael@0: michael@0: FT_String* axis_names[T1_MAX_MM_AXIS]; michael@0: FT_Fixed* design_pos[T1_MAX_MM_DESIGNS]; michael@0: PS_DesignMapRec design_map[T1_MAX_MM_AXIS]; michael@0: michael@0: FT_Fixed* weight_vector; michael@0: FT_Fixed* default_weight_vector; michael@0: michael@0: PS_FontInfo font_infos[T1_MAX_MM_DESIGNS + 1]; michael@0: PS_Private privates [T1_MAX_MM_DESIGNS + 1]; michael@0: michael@0: FT_ULong blend_bitflags; michael@0: michael@0: FT_BBox* bboxes [T1_MAX_MM_DESIGNS + 1]; michael@0: michael@0: /* since 2.3.0 */ michael@0: michael@0: /* undocumented, optional: the default design instance; */ michael@0: /* corresponds to default_weight_vector -- */ michael@0: /* num_default_design_vector == 0 means it is not present */ michael@0: /* in the font and associated metrics files */ michael@0: FT_UInt default_design_vector[T1_MAX_MM_DESIGNS]; michael@0: FT_UInt num_default_design_vector; michael@0: michael@0: } PS_BlendRec, *PS_Blend; michael@0: michael@0: michael@0: /* backwards-compatible definition */ michael@0: typedef PS_BlendRec T1_Blend; michael@0: michael@0: michael@0: /*************************************************************************/ michael@0: /* */ michael@0: /* <Struct> */ michael@0: /* CID_FaceDictRec */ michael@0: /* */ michael@0: /* <Description> */ michael@0: /* A structure used to represent data in a CID top-level dictionary. */ michael@0: /* */ michael@0: typedef struct CID_FaceDictRec_ michael@0: { michael@0: PS_PrivateRec private_dict; michael@0: michael@0: FT_UInt len_buildchar; michael@0: FT_Fixed forcebold_threshold; michael@0: FT_Pos stroke_width; michael@0: FT_Fixed expansion_factor; michael@0: michael@0: FT_Byte paint_type; michael@0: FT_Byte font_type; michael@0: FT_Matrix font_matrix; michael@0: FT_Vector font_offset; michael@0: michael@0: FT_UInt num_subrs; michael@0: FT_ULong subrmap_offset; michael@0: FT_Int sd_bytes; michael@0: michael@0: } CID_FaceDictRec; michael@0: michael@0: michael@0: /*************************************************************************/ michael@0: /* */ michael@0: /* <Struct> */ michael@0: /* CID_FaceDict */ michael@0: /* */ michael@0: /* <Description> */ michael@0: /* A handle to a @CID_FaceDictRec structure. */ michael@0: /* */ michael@0: typedef struct CID_FaceDictRec_* CID_FaceDict; michael@0: michael@0: /* */ michael@0: michael@0: michael@0: /* backwards-compatible definition */ michael@0: typedef CID_FaceDictRec CID_FontDict; michael@0: michael@0: michael@0: /*************************************************************************/ michael@0: /* */ michael@0: /* <Struct> */ michael@0: /* CID_FaceInfoRec */ michael@0: /* */ michael@0: /* <Description> */ michael@0: /* A structure used to represent CID Face information. */ michael@0: /* */ michael@0: typedef struct CID_FaceInfoRec_ michael@0: { michael@0: FT_String* cid_font_name; michael@0: FT_Fixed cid_version; michael@0: FT_Int cid_font_type; michael@0: michael@0: FT_String* registry; michael@0: FT_String* ordering; michael@0: FT_Int supplement; michael@0: michael@0: PS_FontInfoRec font_info; michael@0: FT_BBox font_bbox; michael@0: FT_ULong uid_base; michael@0: michael@0: FT_Int num_xuid; michael@0: FT_ULong xuid[16]; michael@0: michael@0: FT_ULong cidmap_offset; michael@0: FT_Int fd_bytes; michael@0: FT_Int gd_bytes; michael@0: FT_ULong cid_count; michael@0: michael@0: FT_Int num_dicts; michael@0: CID_FaceDict font_dicts; michael@0: michael@0: FT_ULong data_offset; michael@0: michael@0: } CID_FaceInfoRec; michael@0: michael@0: michael@0: /*************************************************************************/ michael@0: /* */ michael@0: /* <Struct> */ michael@0: /* CID_FaceInfo */ michael@0: /* */ michael@0: /* <Description> */ michael@0: /* A handle to a @CID_FaceInfoRec structure. */ michael@0: /* */ michael@0: typedef struct CID_FaceInfoRec_* CID_FaceInfo; michael@0: michael@0: michael@0: /*************************************************************************/ michael@0: /* */ michael@0: /* <Struct> */ michael@0: /* CID_Info */ michael@0: /* */ michael@0: /* <Description> */ michael@0: /* This type is equivalent to @CID_FaceInfoRec. It is deprecated but */ michael@0: /* kept to maintain source compatibility between various versions of */ michael@0: /* FreeType. */ michael@0: /* */ michael@0: typedef CID_FaceInfoRec CID_Info; michael@0: michael@0: michael@0: /************************************************************************ michael@0: * michael@0: * @function: michael@0: * FT_Has_PS_Glyph_Names michael@0: * michael@0: * @description: michael@0: * Return true if a given face provides reliable PostScript glyph michael@0: * names. This is similar to using the @FT_HAS_GLYPH_NAMES macro, michael@0: * except that certain fonts (mostly TrueType) contain incorrect michael@0: * glyph name tables. michael@0: * michael@0: * When this function returns true, the caller is sure that the glyph michael@0: * names returned by @FT_Get_Glyph_Name are reliable. michael@0: * michael@0: * @input: michael@0: * face :: michael@0: * face handle michael@0: * michael@0: * @return: michael@0: * Boolean. True if glyph names are reliable. michael@0: * michael@0: */ michael@0: FT_EXPORT( FT_Int ) michael@0: FT_Has_PS_Glyph_Names( FT_Face face ); michael@0: michael@0: michael@0: /************************************************************************ michael@0: * michael@0: * @function: michael@0: * FT_Get_PS_Font_Info michael@0: * michael@0: * @description: michael@0: * Retrieve the @PS_FontInfoRec structure corresponding to a given michael@0: * PostScript font. michael@0: * michael@0: * @input: michael@0: * face :: michael@0: * PostScript face handle. michael@0: * michael@0: * @output: michael@0: * afont_info :: michael@0: * Output font info structure pointer. michael@0: * michael@0: * @return: michael@0: * FreeType error code. 0~means success. michael@0: * michael@0: * @note: michael@0: * The string pointers within the font info structure are owned by michael@0: * the face and don't need to be freed by the caller. michael@0: * michael@0: * If the font's format is not PostScript-based, this function will michael@0: * return the `FT_Err_Invalid_Argument' error code. michael@0: * michael@0: */ michael@0: FT_EXPORT( FT_Error ) michael@0: FT_Get_PS_Font_Info( FT_Face face, michael@0: PS_FontInfo afont_info ); michael@0: michael@0: michael@0: /************************************************************************ michael@0: * michael@0: * @function: michael@0: * FT_Get_PS_Font_Private michael@0: * michael@0: * @description: michael@0: * Retrieve the @PS_PrivateRec structure corresponding to a given michael@0: * PostScript font. michael@0: * michael@0: * @input: michael@0: * face :: michael@0: * PostScript face handle. michael@0: * michael@0: * @output: michael@0: * afont_private :: michael@0: * Output private dictionary structure pointer. michael@0: * michael@0: * @return: michael@0: * FreeType error code. 0~means success. michael@0: * michael@0: * @note: michael@0: * The string pointers within the @PS_PrivateRec structure are owned by michael@0: * the face and don't need to be freed by the caller. michael@0: * michael@0: * If the font's format is not PostScript-based, this function returns michael@0: * the `FT_Err_Invalid_Argument' error code. michael@0: * michael@0: */ michael@0: FT_EXPORT( FT_Error ) michael@0: FT_Get_PS_Font_Private( FT_Face face, michael@0: PS_Private afont_private ); michael@0: michael@0: michael@0: /*************************************************************************/ michael@0: /* */ michael@0: /* <Enum> */ michael@0: /* T1_EncodingType */ michael@0: /* */ michael@0: /* <Description> */ michael@0: /* An enumeration describing the `Encoding' entry in a Type 1 */ michael@0: /* dictionary. */ michael@0: /* */ michael@0: typedef enum T1_EncodingType_ michael@0: { michael@0: T1_ENCODING_TYPE_NONE = 0, michael@0: T1_ENCODING_TYPE_ARRAY, michael@0: T1_ENCODING_TYPE_STANDARD, michael@0: T1_ENCODING_TYPE_ISOLATIN1, michael@0: T1_ENCODING_TYPE_EXPERT michael@0: michael@0: } T1_EncodingType; michael@0: michael@0: michael@0: /*************************************************************************/ michael@0: /* */ michael@0: /* <Enum> */ michael@0: /* PS_Dict_Keys */ michael@0: /* */ michael@0: /* <Description> */ michael@0: /* An enumeration used in calls to @FT_Get_PS_Font_Value to identify */ michael@0: /* the Type~1 dictionary entry to retrieve. */ michael@0: /* */ michael@0: typedef enum PS_Dict_Keys_ michael@0: { michael@0: /* conventionally in the font dictionary */ michael@0: PS_DICT_FONT_TYPE, /* FT_Byte */ michael@0: PS_DICT_FONT_MATRIX, /* FT_Fixed */ michael@0: PS_DICT_FONT_BBOX, /* FT_Fixed */ michael@0: PS_DICT_PAINT_TYPE, /* FT_Byte */ michael@0: PS_DICT_FONT_NAME, /* FT_String* */ michael@0: PS_DICT_UNIQUE_ID, /* FT_Int */ michael@0: PS_DICT_NUM_CHAR_STRINGS, /* FT_Int */ michael@0: PS_DICT_CHAR_STRING_KEY, /* FT_String* */ michael@0: PS_DICT_CHAR_STRING, /* FT_String* */ michael@0: PS_DICT_ENCODING_TYPE, /* T1_EncodingType */ michael@0: PS_DICT_ENCODING_ENTRY, /* FT_String* */ michael@0: michael@0: /* conventionally in the font Private dictionary */ michael@0: PS_DICT_NUM_SUBRS, /* FT_Int */ michael@0: PS_DICT_SUBR, /* FT_String* */ michael@0: PS_DICT_STD_HW, /* FT_UShort */ michael@0: PS_DICT_STD_VW, /* FT_UShort */ michael@0: PS_DICT_NUM_BLUE_VALUES, /* FT_Byte */ michael@0: PS_DICT_BLUE_VALUE, /* FT_Short */ michael@0: PS_DICT_BLUE_FUZZ, /* FT_Int */ michael@0: PS_DICT_NUM_OTHER_BLUES, /* FT_Byte */ michael@0: PS_DICT_OTHER_BLUE, /* FT_Short */ michael@0: PS_DICT_NUM_FAMILY_BLUES, /* FT_Byte */ michael@0: PS_DICT_FAMILY_BLUE, /* FT_Short */ michael@0: PS_DICT_NUM_FAMILY_OTHER_BLUES, /* FT_Byte */ michael@0: PS_DICT_FAMILY_OTHER_BLUE, /* FT_Short */ michael@0: PS_DICT_BLUE_SCALE, /* FT_Fixed */ michael@0: PS_DICT_BLUE_SHIFT, /* FT_Int */ michael@0: PS_DICT_NUM_STEM_SNAP_H, /* FT_Byte */ michael@0: PS_DICT_STEM_SNAP_H, /* FT_Short */ michael@0: PS_DICT_NUM_STEM_SNAP_V, /* FT_Byte */ michael@0: PS_DICT_STEM_SNAP_V, /* FT_Short */ michael@0: PS_DICT_FORCE_BOLD, /* FT_Bool */ michael@0: PS_DICT_RND_STEM_UP, /* FT_Bool */ michael@0: PS_DICT_MIN_FEATURE, /* FT_Short */ michael@0: PS_DICT_LEN_IV, /* FT_Int */ michael@0: PS_DICT_PASSWORD, /* FT_Long */ michael@0: PS_DICT_LANGUAGE_GROUP, /* FT_Long */ michael@0: michael@0: /* conventionally in the font FontInfo dictionary */ michael@0: PS_DICT_VERSION, /* FT_String* */ michael@0: PS_DICT_NOTICE, /* FT_String* */ michael@0: PS_DICT_FULL_NAME, /* FT_String* */ michael@0: PS_DICT_FAMILY_NAME, /* FT_String* */ michael@0: PS_DICT_WEIGHT, /* FT_String* */ michael@0: PS_DICT_IS_FIXED_PITCH, /* FT_Bool */ michael@0: PS_DICT_UNDERLINE_POSITION, /* FT_Short */ michael@0: PS_DICT_UNDERLINE_THICKNESS, /* FT_UShort */ michael@0: PS_DICT_FS_TYPE, /* FT_UShort */ michael@0: PS_DICT_ITALIC_ANGLE, /* FT_Long */ michael@0: michael@0: PS_DICT_MAX = PS_DICT_ITALIC_ANGLE michael@0: michael@0: } PS_Dict_Keys; michael@0: michael@0: michael@0: /************************************************************************ michael@0: * michael@0: * @function: michael@0: * FT_Get_PS_Font_Value michael@0: * michael@0: * @description: michael@0: * Retrieve the value for the supplied key from a PostScript font. michael@0: * michael@0: * @input: michael@0: * face :: michael@0: * PostScript face handle. michael@0: * michael@0: * key :: michael@0: * An enumeration value representing the dictionary key to retrieve. michael@0: * michael@0: * idx :: michael@0: * For array values, this specifies the index to be returned. michael@0: * michael@0: * value :: michael@0: * A pointer to memory into which to write the value. michael@0: * michael@0: * valen_len :: michael@0: * The size, in bytes, of the memory supplied for the value. michael@0: * michael@0: * @output: michael@0: * value :: michael@0: * The value matching the above key, if it exists. michael@0: * michael@0: * @return: michael@0: * The amount of memory (in bytes) required to hold the requested michael@0: * value (if it exists, -1 otherwise). michael@0: * michael@0: * @note: michael@0: * The values returned are not pointers into the internal structures of michael@0: * the face, but are `fresh' copies, so that the memory containing them michael@0: * belongs to the calling application. This also enforces the michael@0: * `read-only' nature of these values, i.e., this function cannot be michael@0: * used to manipulate the face. michael@0: * michael@0: * `value' is a void pointer because the values returned can be of michael@0: * various types. michael@0: * michael@0: * If either `value' is NULL or `value_len' is too small, just the michael@0: * required memory size for the requested entry is returned. michael@0: * michael@0: * The `idx' parameter is used, not only to retrieve elements of, for michael@0: * example, the FontMatrix or FontBBox, but also to retrieve name keys michael@0: * from the CharStrings dictionary, and the charstrings themselves. It michael@0: * is ignored for atomic values. michael@0: * michael@0: * PS_DICT_BLUE_SCALE returns a value that is scaled up by 1000. To michael@0: * get the value as in the font stream, you need to divide by michael@0: * 65536000.0 (to remove the FT_Fixed scale, and the x1000 scale). michael@0: * michael@0: * IMPORTANT: Only key/value pairs read by the FreeType interpreter can michael@0: * be retrieved. So, for example, PostScript procedures such as NP, michael@0: * ND, and RD are not available. Arbitrary keys are, obviously, not be michael@0: * available either. michael@0: * michael@0: * If the font's format is not PostScript-based, this function returns michael@0: * the `FT_Err_Invalid_Argument' error code. michael@0: * michael@0: */ michael@0: FT_EXPORT( FT_Long ) michael@0: FT_Get_PS_Font_Value( FT_Face face, michael@0: PS_Dict_Keys key, michael@0: FT_UInt idx, michael@0: void *value, michael@0: FT_Long value_len ); michael@0: michael@0: /* */ michael@0: michael@0: FT_END_HEADER michael@0: michael@0: #endif /* __T1TABLES_H__ */ michael@0: michael@0: michael@0: /* END */