ReactOS  0.4.14-dev-583-g2a1ba2c
t1tables.h File Reference
#include <ft2build.h>
Include dependency graph for t1tables.h:

Go to the source code of this file.

Classes

struct  PS_FontInfoRec_
 
struct  PS_PrivateRec_
 
struct  PS_DesignMap_
 
struct  PS_BlendRec_
 
struct  CID_FaceDictRec_
 
struct  CID_FaceInfoRec_
 

Macros

#define t1_blend_underline_position   T1_BLEND_UNDERLINE_POSITION
 
#define t1_blend_underline_thickness   T1_BLEND_UNDERLINE_THICKNESS
 
#define t1_blend_italic_angle   T1_BLEND_ITALIC_ANGLE
 
#define t1_blend_blue_values   T1_BLEND_BLUE_VALUES
 
#define t1_blend_other_blues   T1_BLEND_OTHER_BLUES
 
#define t1_blend_standard_widths   T1_BLEND_STANDARD_WIDTH
 
#define t1_blend_standard_height   T1_BLEND_STANDARD_HEIGHT
 
#define t1_blend_stem_snap_widths   T1_BLEND_STEM_SNAP_WIDTHS
 
#define t1_blend_stem_snap_heights   T1_BLEND_STEM_SNAP_HEIGHTS
 
#define t1_blend_blue_scale   T1_BLEND_BLUE_SCALE
 
#define t1_blend_blue_shift   T1_BLEND_BLUE_SHIFT
 
#define t1_blend_family_blues   T1_BLEND_FAMILY_BLUES
 
#define t1_blend_family_other_blues   T1_BLEND_FAMILY_OTHER_BLUES
 
#define t1_blend_force_bold   T1_BLEND_FORCE_BOLD
 
#define t1_blend_max   T1_BLEND_MAX
 
#define T1_MAX_MM_DESIGNS   16
 
#define T1_MAX_MM_AXIS   4
 
#define T1_MAX_MM_MAP_POINTS   20
 

Typedefs

typedef FT_BEGIN_HEADER struct PS_FontInfoRec_ PS_FontInfoRec
 
typedef struct PS_FontInfoRec_PS_FontInfo
 
typedef PS_FontInfoRec T1_FontInfo
 
typedef struct PS_PrivateRec_ PS_PrivateRec
 
typedef struct PS_PrivateRec_PS_Private
 
typedef PS_PrivateRec T1_Private
 
typedef enum T1_Blend_Flags_ T1_Blend_Flags
 
typedef struct PS_DesignMap_ PS_DesignMapRec
 
typedef struct PS_DesignMap_PS_DesignMap
 
typedef PS_DesignMapRec T1_DesignMap
 
typedef struct PS_BlendRec_ PS_BlendRec
 
typedef struct PS_BlendRec_PS_Blend
 
typedef PS_BlendRec T1_Blend
 
typedef struct CID_FaceDictRec_ CID_FaceDictRec
 
typedef struct CID_FaceDictRec_CID_FaceDict
 
typedef CID_FaceDictRec CID_FontDict
 
typedef struct CID_FaceInfoRec_ CID_FaceInfoRec
 
typedef struct CID_FaceInfoRec_CID_FaceInfo
 
typedef CID_FaceInfoRec CID_Info
 
typedef enum T1_EncodingType_ T1_EncodingType
 
typedef enum PS_Dict_Keys_ PS_Dict_Keys
 

Enumerations

enum  T1_Blend_Flags_ {
  T1_BLEND_UNDERLINE_POSITION = 0, T1_BLEND_UNDERLINE_THICKNESS, T1_BLEND_ITALIC_ANGLE, T1_BLEND_BLUE_VALUES,
  T1_BLEND_OTHER_BLUES, T1_BLEND_STANDARD_WIDTH, T1_BLEND_STANDARD_HEIGHT, T1_BLEND_STEM_SNAP_WIDTHS,
  T1_BLEND_STEM_SNAP_HEIGHTS, T1_BLEND_BLUE_SCALE, T1_BLEND_BLUE_SHIFT, T1_BLEND_FAMILY_BLUES,
  T1_BLEND_FAMILY_OTHER_BLUES, T1_BLEND_FORCE_BOLD, T1_BLEND_MAX
}
 
enum  T1_EncodingType_ {
  T1_ENCODING_TYPE_NONE = 0, T1_ENCODING_TYPE_ARRAY, T1_ENCODING_TYPE_STANDARD, T1_ENCODING_TYPE_ISOLATIN1,
  T1_ENCODING_TYPE_EXPERT
}
 
enum  PS_Dict_Keys_ {
  PS_DICT_FONT_TYPE, PS_DICT_FONT_MATRIX, PS_DICT_FONT_BBOX, PS_DICT_PAINT_TYPE,
  PS_DICT_FONT_NAME, PS_DICT_UNIQUE_ID, PS_DICT_NUM_CHAR_STRINGS, PS_DICT_CHAR_STRING_KEY,
  PS_DICT_CHAR_STRING, PS_DICT_ENCODING_TYPE, PS_DICT_ENCODING_ENTRY, PS_DICT_NUM_SUBRS,
  PS_DICT_SUBR, PS_DICT_STD_HW, PS_DICT_STD_VW, PS_DICT_NUM_BLUE_VALUES,
  PS_DICT_BLUE_VALUE, PS_DICT_BLUE_FUZZ, PS_DICT_NUM_OTHER_BLUES, PS_DICT_OTHER_BLUE,
  PS_DICT_NUM_FAMILY_BLUES, PS_DICT_FAMILY_BLUE, PS_DICT_NUM_FAMILY_OTHER_BLUES, PS_DICT_FAMILY_OTHER_BLUE,
  PS_DICT_BLUE_SCALE, PS_DICT_BLUE_SHIFT, PS_DICT_NUM_STEM_SNAP_H, PS_DICT_STEM_SNAP_H,
  PS_DICT_NUM_STEM_SNAP_V, PS_DICT_STEM_SNAP_V, PS_DICT_FORCE_BOLD, PS_DICT_RND_STEM_UP,
  PS_DICT_MIN_FEATURE, PS_DICT_LEN_IV, PS_DICT_PASSWORD, PS_DICT_LANGUAGE_GROUP,
  PS_DICT_VERSION, PS_DICT_NOTICE, PS_DICT_FULL_NAME, PS_DICT_FAMILY_NAME,
  PS_DICT_WEIGHT, PS_DICT_IS_FIXED_PITCH, PS_DICT_UNDERLINE_POSITION, PS_DICT_UNDERLINE_THICKNESS,
  PS_DICT_FS_TYPE, PS_DICT_ITALIC_ANGLE, PS_DICT_MAX = PS_DICT_ITALIC_ANGLE
}
 

Functions

 FT_Has_PS_Glyph_Names (FT_Face face)
 
 FT_Get_PS_Font_Info (FT_Face face, PS_FontInfo afont_info)
 
 FT_Get_PS_Font_Private (FT_Face face, PS_Private afont_private)
 
 FT_Get_PS_Font_Value (FT_Face face, PS_Dict_Keys key, FT_UInt idx, void *value, FT_Long value_len)
 

Macro Definition Documentation

◆ t1_blend_blue_scale

#define t1_blend_blue_scale   T1_BLEND_BLUE_SCALE

Definition at line 265 of file t1tables.h.

◆ t1_blend_blue_shift

#define t1_blend_blue_shift   T1_BLEND_BLUE_SHIFT

Definition at line 266 of file t1tables.h.

◆ t1_blend_blue_values

#define t1_blend_blue_values   T1_BLEND_BLUE_VALUES

Definition at line 259 of file t1tables.h.

◆ t1_blend_family_blues

#define t1_blend_family_blues   T1_BLEND_FAMILY_BLUES

Definition at line 267 of file t1tables.h.

◆ t1_blend_family_other_blues

#define t1_blend_family_other_blues   T1_BLEND_FAMILY_OTHER_BLUES

Definition at line 268 of file t1tables.h.

◆ t1_blend_force_bold

#define t1_blend_force_bold   T1_BLEND_FORCE_BOLD

Definition at line 269 of file t1tables.h.

◆ t1_blend_italic_angle

#define t1_blend_italic_angle   T1_BLEND_ITALIC_ANGLE

Definition at line 258 of file t1tables.h.

◆ t1_blend_max

#define t1_blend_max   T1_BLEND_MAX

Definition at line 270 of file t1tables.h.

◆ t1_blend_other_blues

#define t1_blend_other_blues   T1_BLEND_OTHER_BLUES

Definition at line 260 of file t1tables.h.

◆ t1_blend_standard_height

#define t1_blend_standard_height   T1_BLEND_STANDARD_HEIGHT

Definition at line 262 of file t1tables.h.

◆ t1_blend_standard_widths

#define t1_blend_standard_widths   T1_BLEND_STANDARD_WIDTH

Definition at line 261 of file t1tables.h.

◆ t1_blend_stem_snap_heights

#define t1_blend_stem_snap_heights   T1_BLEND_STEM_SNAP_HEIGHTS

Definition at line 264 of file t1tables.h.

◆ t1_blend_stem_snap_widths

#define t1_blend_stem_snap_widths   T1_BLEND_STEM_SNAP_WIDTHS

Definition at line 263 of file t1tables.h.

◆ t1_blend_underline_position

#define t1_blend_underline_position   T1_BLEND_UNDERLINE_POSITION

Definition at line 256 of file t1tables.h.

◆ t1_blend_underline_thickness

#define t1_blend_underline_thickness   T1_BLEND_UNDERLINE_THICKNESS

Definition at line 257 of file t1tables.h.

◆ T1_MAX_MM_AXIS

#define T1_MAX_MM_AXIS   4

Definition at line 279 of file t1tables.h.

◆ T1_MAX_MM_DESIGNS

#define T1_MAX_MM_DESIGNS   16

Definition at line 276 of file t1tables.h.

◆ T1_MAX_MM_MAP_POINTS

#define T1_MAX_MM_MAP_POINTS   20

Definition at line 282 of file t1tables.h.

Typedef Documentation

◆ CID_FaceDict

Definition at line 370 of file t1tables.h.

◆ CID_FaceDictRec

◆ CID_FaceInfo

Definition at line 432 of file t1tables.h.

◆ CID_FaceInfoRec

◆ CID_FontDict

Definition at line 383 of file t1tables.h.

◆ CID_Info

Definition at line 445 of file t1tables.h.

◆ PS_Blend

◆ PS_BlendRec

◆ PS_DesignMap

◆ PS_DesignMapRec

◆ PS_Dict_Keys

◆ PS_FontInfo

Definition at line 112 of file t1tables.h.

◆ PS_FontInfoRec

◆ PS_Private

Definition at line 187 of file t1tables.h.

◆ PS_PrivateRec

◆ T1_Blend

Definition at line 330 of file t1tables.h.

◆ T1_Blend_Flags

◆ T1_DesignMap

Definition at line 295 of file t1tables.h.

◆ T1_EncodingType

◆ T1_FontInfo

Definition at line 125 of file t1tables.h.

◆ T1_Private

Definition at line 200 of file t1tables.h.

Enumeration Type Documentation

◆ PS_Dict_Keys_

Enumerator
PS_DICT_FONT_TYPE 
PS_DICT_FONT_MATRIX 
PS_DICT_FONT_BBOX 
PS_DICT_PAINT_TYPE 
PS_DICT_FONT_NAME 
PS_DICT_UNIQUE_ID 
PS_DICT_NUM_CHAR_STRINGS 
PS_DICT_CHAR_STRING_KEY 
PS_DICT_CHAR_STRING 
PS_DICT_ENCODING_TYPE 
PS_DICT_ENCODING_ENTRY 
PS_DICT_NUM_SUBRS 
PS_DICT_SUBR 
PS_DICT_STD_HW 
PS_DICT_STD_VW 
PS_DICT_NUM_BLUE_VALUES 
PS_DICT_BLUE_VALUE 
PS_DICT_BLUE_FUZZ 
PS_DICT_NUM_OTHER_BLUES 
PS_DICT_OTHER_BLUE 
PS_DICT_NUM_FAMILY_BLUES 
PS_DICT_FAMILY_BLUE 
PS_DICT_NUM_FAMILY_OTHER_BLUES 
PS_DICT_FAMILY_OTHER_BLUE 
PS_DICT_BLUE_SCALE 
PS_DICT_BLUE_SHIFT 
PS_DICT_NUM_STEM_SNAP_H 
PS_DICT_STEM_SNAP_H 
PS_DICT_NUM_STEM_SNAP_V 
PS_DICT_STEM_SNAP_V 
PS_DICT_FORCE_BOLD 
PS_DICT_RND_STEM_UP 
PS_DICT_MIN_FEATURE 
PS_DICT_LEN_IV 
PS_DICT_PASSWORD 
PS_DICT_LANGUAGE_GROUP 
PS_DICT_VERSION 
PS_DICT_NOTICE 
PS_DICT_FULL_NAME 
PS_DICT_FAMILY_NAME 
PS_DICT_WEIGHT 
PS_DICT_IS_FIXED_PITCH 
PS_DICT_UNDERLINE_POSITION 
PS_DICT_UNDERLINE_THICKNESS 
PS_DICT_FS_TYPE 
PS_DICT_ITALIC_ANGLE 
PS_DICT_MAX 

Definition at line 631 of file t1tables.h.

632  {
633  /* conventionally in the font dictionary */
634  PS_DICT_FONT_TYPE, /* FT_Byte */
635  PS_DICT_FONT_MATRIX, /* FT_Fixed */
636  PS_DICT_FONT_BBOX, /* FT_Fixed */
637  PS_DICT_PAINT_TYPE, /* FT_Byte */
638  PS_DICT_FONT_NAME, /* FT_String* */
639  PS_DICT_UNIQUE_ID, /* FT_Int */
640  PS_DICT_NUM_CHAR_STRINGS, /* FT_Int */
641  PS_DICT_CHAR_STRING_KEY, /* FT_String* */
642  PS_DICT_CHAR_STRING, /* FT_String* */
643  PS_DICT_ENCODING_TYPE, /* T1_EncodingType */
644  PS_DICT_ENCODING_ENTRY, /* FT_String* */
645 
646  /* conventionally in the font Private dictionary */
647  PS_DICT_NUM_SUBRS, /* FT_Int */
648  PS_DICT_SUBR, /* FT_String* */
649  PS_DICT_STD_HW, /* FT_UShort */
650  PS_DICT_STD_VW, /* FT_UShort */
651  PS_DICT_NUM_BLUE_VALUES, /* FT_Byte */
652  PS_DICT_BLUE_VALUE, /* FT_Short */
653  PS_DICT_BLUE_FUZZ, /* FT_Int */
654  PS_DICT_NUM_OTHER_BLUES, /* FT_Byte */
655  PS_DICT_OTHER_BLUE, /* FT_Short */
656  PS_DICT_NUM_FAMILY_BLUES, /* FT_Byte */
657  PS_DICT_FAMILY_BLUE, /* FT_Short */
658  PS_DICT_NUM_FAMILY_OTHER_BLUES, /* FT_Byte */
659  PS_DICT_FAMILY_OTHER_BLUE, /* FT_Short */
660  PS_DICT_BLUE_SCALE, /* FT_Fixed */
661  PS_DICT_BLUE_SHIFT, /* FT_Int */
662  PS_DICT_NUM_STEM_SNAP_H, /* FT_Byte */
663  PS_DICT_STEM_SNAP_H, /* FT_Short */
664  PS_DICT_NUM_STEM_SNAP_V, /* FT_Byte */
665  PS_DICT_STEM_SNAP_V, /* FT_Short */
666  PS_DICT_FORCE_BOLD, /* FT_Bool */
667  PS_DICT_RND_STEM_UP, /* FT_Bool */
668  PS_DICT_MIN_FEATURE, /* FT_Short */
669  PS_DICT_LEN_IV, /* FT_Int */
670  PS_DICT_PASSWORD, /* FT_Long */
671  PS_DICT_LANGUAGE_GROUP, /* FT_Long */
672 
673  /* conventionally in the font FontInfo dictionary */
674  PS_DICT_VERSION, /* FT_String* */
675  PS_DICT_NOTICE, /* FT_String* */
676  PS_DICT_FULL_NAME, /* FT_String* */
677  PS_DICT_FAMILY_NAME, /* FT_String* */
678  PS_DICT_WEIGHT, /* FT_String* */
679  PS_DICT_IS_FIXED_PITCH, /* FT_Bool */
680  PS_DICT_UNDERLINE_POSITION, /* FT_Short */
681  PS_DICT_UNDERLINE_THICKNESS, /* FT_UShort */
682  PS_DICT_FS_TYPE, /* FT_UShort */
683  PS_DICT_ITALIC_ANGLE, /* FT_Long */
684 
686 
687  } PS_Dict_Keys;
enum PS_Dict_Keys_ PS_Dict_Keys

◆ T1_Blend_Flags_

Enumerator
T1_BLEND_UNDERLINE_POSITION 
T1_BLEND_UNDERLINE_THICKNESS 
T1_BLEND_ITALIC_ANGLE 
T1_BLEND_BLUE_VALUES 
T1_BLEND_OTHER_BLUES 
T1_BLEND_STANDARD_WIDTH 
T1_BLEND_STANDARD_HEIGHT 
T1_BLEND_STEM_SNAP_WIDTHS 
T1_BLEND_STEM_SNAP_HEIGHTS 
T1_BLEND_BLUE_SCALE 
T1_BLEND_BLUE_SHIFT 
T1_BLEND_FAMILY_BLUES 
T1_BLEND_FAMILY_OTHER_BLUES 
T1_BLEND_FORCE_BOLD 
T1_BLEND_MAX 

Definition at line 229 of file t1tables.h.

◆ T1_EncodingType_

Enumerator
T1_ENCODING_TYPE_NONE 
T1_ENCODING_TYPE_ARRAY 
T1_ENCODING_TYPE_STANDARD 
T1_ENCODING_TYPE_ISOLATIN1 
T1_ENCODING_TYPE_EXPERT 

Definition at line 560 of file t1tables.h.

Function Documentation

◆ FT_Get_PS_Font_Info()

FT_Get_PS_Font_Info ( FT_Face  face,
PS_FontInfo  afont_info 
)

Referenced by IntFontType().

◆ FT_Get_PS_Font_Private()

FT_Get_PS_Font_Private ( FT_Face  face,
PS_Private  afont_private 
)

◆ FT_Get_PS_Font_Value()

FT_Get_PS_Font_Value ( FT_Face  face,
PS_Dict_Keys  key,
FT_UInt  idx,
void value,
FT_Long  value_len 
)

Definition at line 104 of file fttype1.c.

109  {
110  FT_Int result = 0;
111  FT_Service_PsInfo service = NULL;
112 
113 
114  if ( face )
115  {
116  FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO );
117 
118  if ( service && service->ps_get_font_value )
119  result = service->ps_get_font_value( face, key, idx,
120  value, value_len );
121  }
122 
123  return result;
124  }
signed int FT_Int
Definition: fttypes.h:220
unsigned int idx
Definition: utils.c:41
smooth NULL
Definition: ftsmooth.c:416
#define FT_FACE_FIND_SERVICE(face, ptr, id)
Definition: ftserv.h:75
GLuint64EXT * result
Definition: glext.h:11304
GLenum GLuint GLint GLenum face
Definition: glext.h:7025
Definition: path.c:41

◆ FT_Has_PS_Glyph_Names()

FT_Has_PS_Glyph_Names ( FT_Face  face)

Definition at line 56 of file fttype1.c.

57  {
58  FT_Int result = 0;
59  FT_Service_PsInfo service;
60 
61 
62  if ( face )
63  {
64  FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO );
65 
66  if ( service && service->ps_has_glyph_names )
67  result = service->ps_has_glyph_names( face );
68  }
69 
70  return result;
71  }
signed int FT_Int
Definition: fttypes.h:220
#define FT_FACE_FIND_SERVICE(face, ptr, id)
Definition: ftserv.h:75
GLuint64EXT * result
Definition: glext.h:11304
GLenum GLuint GLint GLenum face
Definition: glext.h:7025