ftobjs.h File Reference

#include <ft2build.h>

Go to the source code of this file.

Classes

struct  FT_CMapRec_
struct  FT_CMap_ClassRec_
struct  FT_Face_InternalRec_
struct  FT_Slot_InternalRec_
struct  FT_ModuleRec_
struct  FT_RendererRec_
struct  FT_DriverRec_
struct  FT_LibraryRec_

Defines

#define TRUE   1
#define FALSE   0
#define NULL   (void*)0
#define FT_MIN(a, b)   ( (a) < (b) ? (a) : (b) )
#define FT_MAX(a, b)   ( (a) > (b) ? (a) : (b) )
#define FT_ABS(a)   ( (a) < 0 ? -(a) : (a) )
#define FT_PAD_FLOOR(x, n)   ( (x) & ~((n)-1) )
#define FT_PAD_ROUND(x, n)   FT_PAD_FLOOR( (x) + ((n)/2), n )
#define FT_PAD_CEIL(x, n)   FT_PAD_FLOOR( (x) + ((n)-1), n )
#define FT_PIX_FLOOR(x)   ( (x) & ~63 )
#define FT_PIX_ROUND(x)   FT_PIX_FLOOR( (x) + 32 )
#define FT_PIX_CEIL(x)   FT_PIX_FLOOR( (x) + 63 )
#define ft_isdigit(x)   ( ( (unsigned)(x) - '0' ) < 10U )
#define ft_isxdigit(x)
#define ft_isupper(x)   ( ( (unsigned)(x) - 'A' ) < 26U )
#define ft_islower(x)   ( ( (unsigned)(x) - 'a' ) < 26U )
#define ft_isalpha(x)   ( ft_isupper( x ) || ft_islower( x ) )
#define ft_isalnum(x)   ( ft_isdigit( x ) || ft_isalpha( x ) )
#define FT_CMAP(x)   ((FT_CMap)( x ))
#define FT_CMAP_PLATFORM_ID(x)   FT_CMAP( x )->charmap.platform_id
#define FT_CMAP_ENCODING_ID(x)   FT_CMAP( x )->charmap.encoding_id
#define FT_CMAP_ENCODING(x)   FT_CMAP( x )->charmap.encoding
#define FT_CMAP_FACE(x)   FT_CMAP( x )->charmap.face
#define FT_DECLARE_CMAP_CLASS(class_)   FT_CALLBACK_TABLE const FT_CMap_ClassRec class_;
#define FT_DEFINE_CMAP_CLASS(class_, size_, init_, done_, char_index_,char_next_, char_var_index_, char_var_default_, variant_list_,charvariant_list_, variantchar_list_)
#define FT_GLYPH_OWN_BITMAP   0x1
#define FT_MODULE(x)   ((FT_Module)( x ))
#define FT_MODULE_CLASS(x)   FT_MODULE( x )->clazz
#define FT_MODULE_LIBRARY(x)   FT_MODULE( x )->library
#define FT_MODULE_MEMORY(x)   FT_MODULE( x )->memory
#define FT_MODULE_IS_DRIVER(x)
#define FT_MODULE_IS_RENDERER(x)
#define FT_MODULE_IS_HINTER(x)
#define FT_MODULE_IS_STYLER(x)
#define FT_DRIVER_IS_SCALABLE(x)
#define FT_DRIVER_USES_OUTLINES(x)
#define FT_DRIVER_HAS_HINTER(x)
#define FT_FACE(x)   ((FT_Face)(x))
#define FT_SIZE(x)   ((FT_Size)(x))
#define FT_SLOT(x)   ((FT_GlyphSlot)(x))
#define FT_FACE_DRIVER(x)   FT_FACE( x )->driver
#define FT_FACE_LIBRARY(x)   FT_FACE_DRIVER( x )->root.library
#define FT_FACE_MEMORY(x)   FT_FACE( x )->memory
#define FT_FACE_STREAM(x)   FT_FACE( x )->stream
#define FT_SIZE_FACE(x)   FT_SIZE( x )->face
#define FT_SLOT_FACE(x)   FT_SLOT( x )->face
#define FT_FACE_SLOT(x)   FT_FACE( x )->glyph
#define FT_FACE_SIZE(x)   FT_FACE( x )->size
#define FT_REQUEST_WIDTH(req)
#define FT_REQUEST_HEIGHT(req)
#define FT_RENDERER(x)   ((FT_Renderer)( x ))
#define FT_GLYPH(x)   ((FT_Glyph)( x ))
#define FT_BITMAP_GLYPH(x)   ((FT_BitmapGlyph)( x ))
#define FT_OUTLINE_GLYPH(x)   ((FT_OutlineGlyph)( x ))
#define FT_DRIVER(x)   ((FT_Driver)(x))
#define FT_DRIVER_CLASS(x)   FT_DRIVER( x )->clazz
#define FT_DEBUG_HOOK_TRUETYPE   0
#define FT_DEBUG_HOOK_UNPATENTED_HINTING   1
#define FT_DEFINE_OUTLINE_FUNCS(class_, move_to_, line_to_, conic_to_,cubic_to_, shift_, delta_)
#define FT_DEFINE_RASTER_FUNCS(class_, glyph_format_, raster_new_,raster_reset_, raster_set_mode_,raster_render_, raster_done_)
#define FT_DEFINE_GLYPH(class_, size_, format_, init_, done_, copy_,transform_, bbox_, prepare_)
#define FT_DECLARE_RENDERER(class_)   FT_EXPORT_VAR( const FT_Renderer_Class ) class_;
#define FT_DEFINE_RENDERER(class_,flags_, size_, name_, version_, requires_,interface_, init_, done_, get_interface_,glyph_format_, render_glyph_, transform_glyph_,get_glyph_cbox_, set_mode_, raster_class_)
#define FT_DECLARE_MODULE(class_)
#define FT_DEFINE_ROOT_MODULE(flags_, size_, name_, version_, requires_,interface_, init_, done_, get_interface_)
#define FT_DEFINE_MODULE(class_, flags_, size_, name_, version_, requires_,interface_, init_, done_, get_interface_)

Typedefs

typedef FT_CMapRec_FT_CMap
typedef FT_CMap_ClassRec_FT_CMap_Class
typedef FT_CMapRec_ FT_CMapRec
typedef FT_Error(*) FT_CMap_InitFunc (FT_CMap cmap, FT_Pointer init_data)
typedef void(*) FT_CMap_DoneFunc (FT_CMap cmap)
typedef FT_UInt(*) FT_CMap_CharIndexFunc (FT_CMap cmap, FT_UInt32 char_code)
typedef FT_UInt(*) FT_CMap_CharNextFunc (FT_CMap cmap, FT_UInt32 *achar_code)
typedef FT_UInt(*) FT_CMap_CharVarIndexFunc (FT_CMap cmap, FT_CMap unicode_cmap, FT_UInt32 char_code, FT_UInt32 variant_selector)
typedef FT_Bool(*) FT_CMap_CharVarIsDefaultFunc (FT_CMap cmap, FT_UInt32 char_code, FT_UInt32 variant_selector)
typedef FT_UInt32 *(*) FT_CMap_VariantListFunc (FT_CMap cmap, FT_Memory mem)
typedef FT_UInt32 *(*) FT_CMap_CharVariantListFunc (FT_CMap cmap, FT_Memory mem, FT_UInt32 char_code)
typedef FT_UInt32 *(*) FT_CMap_VariantCharListFunc (FT_CMap cmap, FT_Memory mem, FT_UInt32 variant_selector)
typedef FT_CMap_ClassRec_ FT_CMap_ClassRec
typedef FT_Face_InternalRec_ FT_Face_InternalRec
typedef FT_Slot_InternalRec_ FT_GlyphSlot_InternalRec
typedef FT_ModuleRec_ FT_ModuleRec
typedef FT_RendererRec_ FT_RendererRec
typedef FT_DriverRec_ FT_DriverRec
typedef void(*) FT_Bitmap_LcdFilterFunc (FT_Bitmap *bitmap, FT_Render_Mode render_mode, FT_Library library)
typedef FT_LibraryRec_ FT_LibraryRec
typedef const char *(*) FT_Face_GetPostscriptNameFunc (FT_Face face)
typedef FT_Error(*) FT_Face_GetGlyphNameFunc (FT_Face face, FT_UInt glyph_index, FT_Pointer buffer, FT_UInt buffer_max)
typedef FT_UInt(*) FT_Face_GetGlyphNameIndexFunc (FT_Face face, FT_String *glyph_name)

Functions

 ft_highpow2 (FT_UInt32 value)
 FT_CMap_New (FT_CMap_Class clazz, FT_Pointer init_data, FT_CharMap charmap, FT_CMap *acmap)
 FT_CMap_Done (FT_CMap cmap)
 FT_Get_Module_Interface (FT_Library library, const char *mod_name)
 ft_module_get_service (FT_Module module, const char *service_id)
 FT_New_GlyphSlot (FT_Face face, FT_GlyphSlot *aslot)
 FT_Done_GlyphSlot (FT_GlyphSlot slot)
 FT_Select_Metrics (FT_Face face, FT_ULong strike_index)
 FT_Request_Metrics (FT_Face face, FT_Size_Request req)
 FT_Match_Size (FT_Face face, FT_Size_Request req, FT_Bool ignore_width, FT_ULong *size_index)
 ft_synthesize_vertical_metrics (FT_Glyph_Metrics *metrics, FT_Pos advance)
 ft_glyphslot_free_bitmap (FT_GlyphSlot slot)
 ft_glyphslot_alloc_bitmap (FT_GlyphSlot slot, FT_ULong size)
 ft_glyphslot_set_bitmap (FT_GlyphSlot slot, FT_Byte *buffer)
 FT_Lookup_Renderer (FT_Library library, FT_Glyph_Format format, FT_ListNode *node)
 FT_Render_Glyph_Internal (FT_Library library, FT_GlyphSlot slot, FT_Render_Mode render_mode)
 FT_New_Memory (void)
 FT_Done_Memory (FT_Memory memory)
 FT_EXPORT_VAR (FT_Raster_Funcs) ft_default_raster


Define Documentation

#define FALSE   0

Definition at line 57 of file ftobjs.h.

#define FT_ABS (  )     ( (a) < 0 ? -(a) : (a) )

Definition at line 73 of file ftobjs.h.

Referenced by af_direction_compute(), af_latin2_hints_compute_segments(), af_latin_hints_compute_segments(), cff_face_init(), cff_parse_real(), FT_DivFix(), FT_MulDiv(), FT_MulFix(), ftc_snode_load(), parse_font_matrix(), psh_hint_snap_stem_side_delta(), and t42_parse_font_matrix().

#define FT_BITMAP_GLYPH ( x   )     ((FT_BitmapGlyph)( x ))

Definition at line 650 of file ftobjs.h.

#define FT_CMAP ( x   )     ((FT_CMap)( x ))

Definition at line 139 of file ftobjs.h.

Referenced by destroy_charmaps(), FT_Face_GetCharsOfVariant(), FT_Face_GetCharVariantIndex(), FT_Face_GetCharVariantIsDefault(), FT_Face_GetVariantSelectors(), FT_Face_GetVariantsOfChar(), FT_Get_Char_Index(), and FT_Get_Next_Char().

#define FT_CMAP_ENCODING ( x   )     FT_CMAP( x )->charmap.encoding

Definition at line 144 of file ftobjs.h.

#define FT_CMAP_ENCODING_ID ( x   )     FT_CMAP( x )->charmap.encoding_id

Definition at line 143 of file ftobjs.h.

#define FT_CMAP_FACE ( x   )     FT_CMAP( x )->charmap.face

Definition at line 145 of file ftobjs.h.

Referenced by bdf_cmap_init(), cff_cmap_encoding_init(), fnt_cmap_init(), pcf_cmap_init(), pfr_cmap_init(), t1_cmap_custom_init(), t1_cmap_std_init(), t1_cmap_unicode_char_index(), t1_cmap_unicode_char_next(), t1_cmap_unicode_done(), and t1_cmap_unicode_init().

#define FT_CMAP_PLATFORM_ID ( x   )     FT_CMAP( x )->charmap.platform_id

Definition at line 142 of file ftobjs.h.

#define FT_DEBUG_HOOK_TRUETYPE   0

Definition at line 743 of file ftobjs.h.

#define FT_DEBUG_HOOK_UNPATENTED_HINTING   1

Definition at line 750 of file ftobjs.h.

Referenced by tt_face_init().

#define FT_DECLARE_CMAP_CLASS ( class_   )     FT_CALLBACK_TABLE const FT_CMap_ClassRec class_;

Definition at line 211 of file ftobjs.h.

#define FT_DECLARE_MODULE ( class_   ) 

Value:

Definition at line 1282 of file ftobjs.h.

#define FT_DECLARE_RENDERER ( class_   )     FT_EXPORT_VAR( const FT_Renderer_Class ) class_;

Definition at line 1103 of file ftobjs.h.

#define FT_DEFINE_CMAP_CLASS ( class_,
size_,
init_,
done_,
char_index_,
char_next_,
char_var_index_,
char_var_default_,
variant_list_,
charvariant_list_,
variantchar_list_   ) 

Value:

FT_CALLBACK_TABLE_DEF                                                      \
  const FT_CMap_ClassRec class_ =                                            \
  {                                                                          \
    size_, init_, done_, char_index_, char_next_, char_var_index_,           \
    char_var_default_, variant_list_, charvariant_list_, variantchar_list_   \
  };

Definition at line 216 of file ftobjs.h.

#define FT_DEFINE_GLYPH ( class_,
size_,
format_,
init_,
done_,
copy_,
transform_,
bbox_,
prepare_   ) 

Value:

FT_CALLBACK_TABLE_DEF                                                      \
  const FT_Glyph_Class class_ =                                              \
  {                                                                          \
    size_, format_, init_, done_, copy_, transform_, bbox_, prepare_         \
  };

Definition at line 1041 of file ftobjs.h.

#define FT_DEFINE_MODULE ( class_,
flags_,
size_,
name_,
version_,
requires_,
interface_,
init_,
done_,
get_interface_   ) 

Value:

FT_CALLBACK_TABLE_DEF                                                      \
  const FT_Module_Class class_ =                                             \
  {                                                                          \
    flags_,                                                                  \
    size_,                                                                   \
                                                                             \
    name_,                                                                   \
    version_,                                                                \
    requires_,                                                               \
                                                                             \
    interface_,                                                              \
                                                                             \
    init_,                                                                   \
    done_,                                                                   \
    get_interface_,                                                          \
  };

Definition at line 1304 of file ftobjs.h.

#define FT_DEFINE_OUTLINE_FUNCS ( class_,
move_to_,
line_to_,
conic_to_,
cubic_to_,
shift_,
delta_   ) 

Value:

static const FT_Outline_Funcs class_ =                                     \
  {                                                                          \
    move_to_, line_to_, conic_to_, cubic_to_, shift_, delta_                 \
  };

Definition at line 946 of file ftobjs.h.

#define FT_DEFINE_RASTER_FUNCS ( class_,
glyph_format_,
raster_new_,
raster_reset_,
raster_set_mode_,
raster_render_,
raster_done_   ) 

Value:

const FT_Raster_Funcs class_ =                                      \
  {                                                                          \
    glyph_format_, raster_new_, raster_reset_,                               \
    raster_set_mode_, raster_render_, raster_done_                           \
  };

Definition at line 987 of file ftobjs.h.

#define FT_DEFINE_RENDERER ( class_,
flags_,
size_,
name_,
version_,
requires_,
interface_,
init_,
done_,
get_interface_,
glyph_format_,
render_glyph_,
transform_glyph_,
get_glyph_cbox_,
set_mode_,
raster_class_   ) 

Value:

FT_CALLBACK_TABLE_DEF                                                      \
  const FT_Renderer_Class  class_ =                                          \
  {                                                                          \
    FT_DEFINE_ROOT_MODULE(flags_,size_,name_,version_,requires_,             \
                          interface_,init_,done_,get_interface_)             \
    glyph_format_,                                                           \
                                                                             \
    render_glyph_,                                                           \
    transform_glyph_,                                                        \
    get_glyph_cbox_,                                                         \
    set_mode_,                                                               \
                                                                             \
    raster_class_                                                            \
  };

Definition at line 1110 of file ftobjs.h.

#define FT_DEFINE_ROOT_MODULE ( flags_,
size_,
name_,
version_,
requires_,
interface_,
init_,
done_,
get_interface_   ) 

Value:

{                                                                          \
    flags_,                                                                  \
    size_,                                                                   \
                                                                             \
    name_,                                                                   \
    version_,                                                                \
    requires_,                                                               \
                                                                             \
    interface_,                                                              \
                                                                             \
    init_,                                                                   \
    done_,                                                                   \
    get_interface_,                                                          \
  },

Definition at line 1287 of file ftobjs.h.

#define FT_DRIVER ( x   )     ((FT_Driver)(x))

Definition at line 682 of file ftobjs.h.

Referenced by Destroy_Module(), FT_Done_Library(), and FT_Open_Face().

#define FT_DRIVER_CLASS ( x   )     FT_DRIVER( x )->clazz

Definition at line 685 of file ftobjs.h.

#define FT_DRIVER_HAS_HINTER ( x   ) 

Value:

Definition at line 469 of file ftobjs.h.

Referenced by FT_Load_Glyph().

#define FT_DRIVER_IS_SCALABLE ( x   ) 

Value:

( FT_MODULE_CLASS( x )->module_flags & \
                                      FT_MODULE_DRIVER_SCALABLE )

Definition at line 463 of file ftobjs.h.

Referenced by FT_Load_Glyph().

#define FT_DRIVER_USES_OUTLINES ( x   ) 

Value:

Definition at line 466 of file ftobjs.h.

Referenced by Destroy_Driver(), ft_glyphslot_done(), ft_glyphslot_init(), and FT_Load_Glyph().

#define FT_FACE ( x   )     ((FT_Face)(x))

Definition at line 519 of file ftobjs.h.

Referenced by BDF_Face_Init(), BDF_Glyph_Load(), bdf_interpret_style(), fnt_face_get_dll_font(), FNT_Face_Init(), fnt_font_done(), FNT_Load_Glyph(), FT_Done_Library(), PCF_Face_Init(), pcf_get_bitmaps(), pcf_get_encodings(), pcf_get_metrics(), pcf_get_properties(), pcf_interpret_style(), pcf_load_font(), and pcf_read_TOC().

#define FT_FACE_DRIVER ( x   )     FT_FACE( x )->driver

Definition at line 523 of file ftobjs.h.

Referenced by tt_loader_init().

#define FT_FACE_LIBRARY ( x   )     FT_FACE_DRIVER( x )->root.library

Definition at line 524 of file ftobjs.h.

Referenced by cid_face_init(), ft_lookup_glyph_renderer(), FT_Render_Glyph(), T1_Face_Init(), and T42_Face_Init().

#define FT_FACE_MEMORY ( x   )     FT_FACE( x )->memory

Definition at line 525 of file ftobjs.h.

Referenced by BDF_Face_Done(), BDF_Face_Init(), cff_get_glyph_name(), cff_get_name_index(), classic_kern_validate(), FNT_Face_Done(), FNT_Face_Init(), FNT_Load_Glyph(), FT_ClassicKern_Free(), FT_CMap_Done(), ft_cmap_done_internal(), FT_CMap_New(), FT_Face_GetCharsOfVariant(), FT_Face_GetVariantSelectors(), FT_Face_GetVariantsOfChar(), ft_glyphslot_alloc_bitmap(), ft_glyphslot_free_bitmap(), FT_OpenType_Free(), FT_TrueTypeGX_Free(), gxv_load_table(), gxv_validate(), otv_load_table(), otv_validate(), PCF_Face_Done(), pfr_face_done(), t1_cmap_unicode_done(), and t1_cmap_unicode_init().

#define FT_FACE_SIZE ( x   )     FT_FACE( x )->size

Definition at line 532 of file ftobjs.h.

#define FT_FACE_SLOT ( x   )     FT_FACE( x )->glyph

Definition at line 531 of file ftobjs.h.

#define FT_FACE_STREAM ( x   )     FT_FACE( x )->stream

Definition at line 526 of file ftobjs.h.

Referenced by sfnt_done_face().

#define FT_GLYPH ( x   )     ((FT_Glyph)( x ))

Definition at line 649 of file ftobjs.h.

Referenced by ft_bitmap_glyph_done(), ft_bitmap_glyph_init(), FT_DEFINE_GLYPH(), FT_Glyph_To_Bitmap(), ft_outline_glyph_copy(), and ft_outline_glyph_done().

#define FT_GLYPH_OWN_BITMAP   0x1

Definition at line 369 of file ftobjs.h.

Referenced by FNT_Load_Glyph(), ft_bitmap_glyph_init(), ft_glyphslot_alloc_bitmap(), ft_glyphslot_free_bitmap(), FT_GlyphSlot_Own_Bitmap(), ft_glyphslot_set_bitmap(), ft_raster1_render(), and ft_smooth_render_generic().

#define ft_isalnum ( x   )     ( ft_isdigit( x ) || ft_isalpha( x ) )

Definition at line 109 of file ftobjs.h.

Referenced by create_lwfn_name().

#define ft_isalpha ( x   )     ( ft_isupper( x ) || ft_islower( x ) )

Definition at line 108 of file ftobjs.h.

#define ft_isdigit ( x   )     ( ( (unsigned)(x) - '0' ) < 10U )

Definition at line 98 of file ftobjs.h.

Referenced by parse_encoding(), read_binary_data(), t42_parse_charstrings(), t42_parse_encoding(), and t42_parse_sfnts().

#define ft_islower ( x   )     ( ( (unsigned)(x) - 'a' ) < 26U )

Definition at line 106 of file ftobjs.h.

#define ft_isupper ( x   )     ( ( (unsigned)(x) - 'A' ) < 26U )

Definition at line 105 of file ftobjs.h.

Referenced by create_lwfn_name().

#define ft_isxdigit ( x   ) 

Value:

( ( (unsigned)(x) - '0' ) < 10U || \
                             ( (unsigned)(x) - 'a' ) < 6U  || \
                             ( (unsigned)(x) - 'A' ) < 6U  )

Definition at line 100 of file ftobjs.h.

#define FT_MAX ( a,
b   )     ( (a) > (b) ? (a) : (b) )

Definition at line 71 of file ftobjs.h.

Referenced by gxv_array_getlimits_byte(), gxv_array_getlimits_ushort(), gxv_mort_subtable_type1_offset_to_subst_validate(), gxv_StateArray_validate(), and gxv_XStateArray_validate().

#define FT_MIN ( a,
b   )     ( (a) < (b) ? (a) : (b) )

Definition at line 70 of file ftobjs.h.

Referenced by cff_face_init(), cff_parse_real(), cid_parser_new(), gxv_array_getlimits_byte(), gxv_array_getlimits_ushort(), and parse_fond().

#define FT_MODULE ( x   )     ((FT_Module)( x ))

Definition at line 445 of file ftobjs.h.

Referenced by T42_Driver_Init().

#define FT_MODULE_CLASS ( x   )     FT_MODULE( x )->clazz

Definition at line 446 of file ftobjs.h.

#define FT_MODULE_IS_DRIVER ( x   ) 

Value:

( FT_MODULE_CLASS( x )->module_flags & \
                                    FT_MODULE_FONT_DRIVER )

Definition at line 451 of file ftobjs.h.

Referenced by Destroy_Module(), and FT_Open_Face().

#define FT_MODULE_IS_HINTER ( x   ) 

Value:

( FT_MODULE_CLASS( x )->module_flags & \
                                    FT_MODULE_HINTER )

Definition at line 457 of file ftobjs.h.

#define FT_MODULE_IS_RENDERER ( x   ) 

Value:

( FT_MODULE_CLASS( x )->module_flags & \
                                      FT_MODULE_RENDERER )

Definition at line 454 of file ftobjs.h.

Referenced by Destroy_Module().

#define FT_MODULE_IS_STYLER ( x   ) 

Value:

( FT_MODULE_CLASS( x )->module_flags & \
                                    FT_MODULE_STYLER )

Definition at line 460 of file ftobjs.h.

#define FT_MODULE_LIBRARY ( x   )     FT_MODULE( x )->library

Definition at line 447 of file ftobjs.h.

Referenced by ft_raster1_init(), and ft_smooth_init().

#define FT_MODULE_MEMORY ( x   )     FT_MODULE( x )->memory

Definition at line 448 of file ftobjs.h.

#define FT_OUTLINE_GLYPH ( x   )     ((FT_OutlineGlyph)( x ))

Definition at line 651 of file ftobjs.h.

#define FT_PAD_CEIL ( x,
n   )     FT_PAD_FLOOR( (x) + ((n)-1), n )

Definition at line 78 of file ftobjs.h.

Referenced by cid_parse_dict(), FT_GlyphLoader_CheckPoints(), FT_GlyphLoader_CheckSubGlyphs(), ft_raster1_render(), ft_smooth_render_generic(), pfr_extra_item_load_bitmap_info(), pfr_glyph_load_simple(), ps_hint_table_ensure(), ps_mask_ensure(), ps_mask_table_ensure(), and ps_table_add().

#define FT_PAD_FLOOR ( x,
n   )     ( (x) & ~((n)-1) )

Definition at line 76 of file ftobjs.h.

#define FT_PAD_ROUND ( x,
n   )     FT_PAD_FLOOR( (x) + ((n)/2), n )

Definition at line 77 of file ftobjs.h.

Referenced by ft_trig_pseudo_polarize().

#define FT_PIX_CEIL ( x   )     FT_PIX_FLOOR( (x) + 63 )

Definition at line 82 of file ftobjs.h.

Referenced by FT_Glyph_Get_CBox(), ft_glyphslot_grid_fit_metrics(), ft_raster1_render(), ft_recompute_scaled_metrics(), and ft_smooth_render_generic().

#define FT_PIX_FLOOR ( x   )     ( (x) & ~63 )

Definition at line 80 of file ftobjs.h.

Referenced by FT_Glyph_Get_CBox(), ft_glyphslot_grid_fit_metrics(), ft_raster1_render(), ft_recompute_scaled_metrics(), ft_smooth_render_generic(), and psh_hint_align().

#define FT_PIX_ROUND ( x   )     FT_PIX_FLOOR( (x) + 32 )

Definition at line 81 of file ftobjs.h.

Referenced by af_latin2_snap_width(), af_latin_snap_width(), af_loader_load_g(), FNT_Face_Init(), FT_Bitmap_Embolden(), FT_Get_Kerning(), ft_glyphslot_grid_fit_metrics(), FT_Match_Size(), ft_recompute_scaled_metrics(), ps_hints_apply(), psh_blues_scale_zones(), psh_dimension_quantize_len(), psh_globals_scale_widths(), psh_hint_align(), psh_hint_snap_stem_side_delta(), TT_Hint_Glyph(), and tt_size_reset().

#define FT_RENDERER ( x   )     ((FT_Renderer)( x ))

Definition at line 648 of file ftobjs.h.

Referenced by ft_add_renderer(), FT_Lookup_Renderer(), and ft_remove_renderer().

#define FT_REQUEST_HEIGHT ( req   ) 

Value:

( (req)->vertResolution                                           \
              ? (FT_Pos)( (req)->height * (req)->vertResolution + 36 ) / 72 \
              : (req)->height )

Definition at line 583 of file ftobjs.h.

Referenced by BDF_Size_Request(), FNT_Size_Request(), FT_Match_Size(), FT_Request_Metrics(), and PCF_Size_Request().

#define FT_REQUEST_WIDTH ( req   ) 

Value:

( (req)->horiResolution                                          \
              ? (FT_Pos)( (req)->width * (req)->horiResolution + 36 ) / 72 \
              : (req)->width )

Definition at line 578 of file ftobjs.h.

Referenced by FT_Match_Size(), and FT_Request_Metrics().

#define FT_SIZE ( x   )     ((FT_Size)(x))

Definition at line 520 of file ftobjs.h.

#define FT_SIZE_FACE ( x   )     FT_SIZE( x )->face

Definition at line 528 of file ftobjs.h.

Referenced by BDF_Glyph_Load(), FNT_Load_Glyph(), and PCF_Glyph_Load().

#define FT_SLOT ( x   )     ((FT_GlyphSlot)(x))

Definition at line 521 of file ftobjs.h.

#define FT_SLOT_FACE ( x   )     FT_SLOT( x )->face

Definition at line 529 of file ftobjs.h.

#define NULL   (void*)0

Definition at line 61 of file ftobjs.h.

#define TRUE   1

Definition at line 53 of file ftobjs.h.


Typedef Documentation

typedef void(*) FT_Bitmap_LcdFilterFunc(FT_Bitmap *bitmap, FT_Render_Mode render_mode, FT_Library library)

Definition at line 753 of file ftobjs.h.

typedef struct FT_CMapRec_* FT_CMap

Definition at line 125 of file ftobjs.h.

typedef FT_UInt(*) FT_CMap_CharIndexFunc(FT_CMap cmap, FT_UInt32 char_code)

Definition at line 157 of file ftobjs.h.

typedef FT_UInt(*) FT_CMap_CharNextFunc(FT_CMap cmap, FT_UInt32 *achar_code)

Definition at line 161 of file ftobjs.h.

typedef FT_UInt32*(*) FT_CMap_CharVariantListFunc(FT_CMap cmap, FT_Memory mem, FT_UInt32 char_code)

Definition at line 180 of file ftobjs.h.

typedef FT_UInt(*) FT_CMap_CharVarIndexFunc(FT_CMap cmap, FT_CMap unicode_cmap, FT_UInt32 char_code, FT_UInt32 variant_selector)

Definition at line 165 of file ftobjs.h.

typedef FT_Bool(*) FT_CMap_CharVarIsDefaultFunc(FT_CMap cmap, FT_UInt32 char_code, FT_UInt32 variant_selector)

Definition at line 171 of file ftobjs.h.

typedef struct FT_CMap_ClassRec_* FT_CMap_Class

Definition at line 128 of file ftobjs.h.

typedef struct FT_CMap_ClassRec_ FT_CMap_ClassRec

typedef void(*) FT_CMap_DoneFunc(FT_CMap cmap)

Definition at line 154 of file ftobjs.h.

typedef FT_Error(*) FT_CMap_InitFunc(FT_CMap cmap, FT_Pointer init_data)

Definition at line 150 of file ftobjs.h.

typedef FT_UInt32*(*) FT_CMap_VariantCharListFunc(FT_CMap cmap, FT_Memory mem, FT_UInt32 variant_selector)

Definition at line 185 of file ftobjs.h.

typedef FT_UInt32*(*) FT_CMap_VariantListFunc(FT_CMap cmap, FT_Memory mem)

Definition at line 176 of file ftobjs.h.

typedef struct FT_CMapRec_ FT_CMapRec

typedef struct FT_DriverRec_ FT_DriverRec

typedef FT_Error(*) FT_Face_GetGlyphNameFunc(FT_Face face, FT_UInt glyph_index, FT_Pointer buffer, FT_UInt buffer_max)

Definition at line 863 of file ftobjs.h.

typedef FT_UInt(*) FT_Face_GetGlyphNameIndexFunc(FT_Face face, FT_String *glyph_name)

Definition at line 869 of file ftobjs.h.

typedef const char*(*) FT_Face_GetPostscriptNameFunc(FT_Face face)

Definition at line 860 of file ftobjs.h.

typedef struct FT_Face_InternalRec_ FT_Face_InternalRec

typedef struct FT_Slot_InternalRec_ FT_GlyphSlot_InternalRec

typedef struct FT_LibraryRec_ FT_LibraryRec

typedef struct FT_ModuleRec_ FT_ModuleRec

typedef struct FT_RendererRec_ FT_RendererRec


Function Documentation

FT_CMap_Done ( FT_CMap  cmap  ) 

Definition at line 2980 of file ftobjs.c.

References for(), ft_cmap_done_internal(), FT_FACE_MEMORY, FT_RENEW_ARRAY, if(), j, and NULL.

FT_CMap_New ( FT_CMap_Class  clazz,
FT_Pointer  init_data,
FT_CharMap  charmap,
FT_CMap acmap 
)

Definition at line 3026 of file ftobjs.c.

References FT_CMapRec_::charmap, FT_CMapRec_::clazz, FT_ALLOC, ft_cmap_done_internal(), FT_FACE_MEMORY, FT_RENEW_ARRAY, FT_CMap_ClassRec_::init, and NULL.

Referenced by BDF_Face_Init(), cff_face_init(), FNT_Face_Init(), PCF_Face_Init(), T1_Face_Init(), and T42_Face_Init().

FT_Done_GlyphSlot ( FT_GlyphSlot  slot  ) 

Definition at line 421 of file ftobjs.c.

References FT_GlyphSlotRec_::face, FT_FREE, ft_glyphslot_done(), FT_FaceRec_::glyph, FT_ModuleRec_::memory, FT_GlyphSlotRec_::next, NULL, and FT_DriverRec_::root.

Referenced by destroy_face(), and T42_GlyphSlot_Done().

FT_Done_Memory ( FT_Memory  memory  ) 

Definition at line 507 of file ftsystem.c.

References ft_sfree.

FT_EXPORT_VAR ( FT_Raster_Funcs   ) 

FT_Get_Module_Interface ( FT_Library  library,
const char *  mod_name 
)

Definition at line 4072 of file ftobjs.c.

References FT_ModuleRec_::clazz, FT_Get_Module(), and FT_Module_Class_::module_interface.

Referenced by cff_face_init(), cid_face_init(), parse_afm(), sfnt_init_face(), T1_Face_Init(), T42_Face_Init(), and tt_face_init().

ft_glyphslot_alloc_bitmap ( FT_GlyphSlot  slot,
FT_ULong  size 
)

Definition at line 291 of file ftobjs.c.

References error, FT_ALLOC, FT_FACE_MEMORY, FT_FREE, FT_GLYPH_OWN_BITMAP, and void.

Referenced by PCF_Glyph_Load(), and tt_sbit_decoder_alloc_bitmap().

ft_glyphslot_free_bitmap ( FT_GlyphSlot  slot  ) 

Definition at line 259 of file ftobjs.c.

References FT_FACE_MEMORY, FT_FREE, FT_GLYPH_OWN_BITMAP, and NULL.

Referenced by ft_glyphslot_clear(), ft_glyphslot_done(), ft_glyphslot_set_bitmap(), and t42_glyphslot_clear().

ft_glyphslot_set_bitmap ( FT_GlyphSlot  slot,
FT_Byte buffer 
)

Definition at line 279 of file ftobjs.c.

References FT_ASSERT, FT_GLYPH_OWN_BITMAP, and ft_glyphslot_free_bitmap().

Referenced by BDF_Glyph_Load().

ft_highpow2 ( FT_UInt32  value  ) 

Definition at line 414 of file ftutil.c.

Referenced by pfr_face_get_kerning().

FT_Lookup_Renderer ( FT_Library  library,
FT_Glyph_Format  format,
FT_ListNode node 
)

Definition at line 3575 of file ftobjs.c.

References FT_ListNodeRec_::data, FT_RENDERER, FT_RendererRec_::glyph_format, FT_ListNodeRec_::next, and result().

Referenced by FT_Get_Glyph(), FT_Get_Renderer(), ft_lookup_glyph_renderer(), FT_Outline_Render(), FT_Render_Glyph_Internal(), and ft_set_current_renderer().

FT_Match_Size ( FT_Face  face,
FT_Size_Request  req,
FT_Bool  ignore_width,
FT_ULong size_index 
)

Definition at line 2375 of file ftobjs.c.

References bsize, FT_HAS_FIXED_SIZES, FT_PIX_ROUND, FT_REQUEST_HEIGHT, FT_REQUEST_WIDTH, FT_SIZE_REQUEST_TYPE_NOMINAL, h, if(), and w.

Referenced by FT_Request_Size(), and tt_face_set_sbit_strike().

ft_module_get_service ( FT_Module  module,
const char *  service_id 
)

Definition at line 4087 of file ftobjs.c.

References FT_ModuleRec_::clazz, FT_ASSERT, FT_Module_Class_::get_interface, FT_LibraryRec_::modules, NULL, FT_LibraryRec_::num_modules, and result().

Referenced by FT_Get_TrueType_Engine_Type().

FT_New_GlyphSlot ( FT_Face  face,
FT_GlyphSlot aslot 
)

Definition at line 372 of file ftobjs.c.

References FT_DriverRec_::clazz, error, FT_GlyphSlotRec_::face, FT_ALLOC, FT_FREE, ft_glyphslot_done(), ft_glyphslot_init(), FT_TRACE4, FT_ModuleRec_::memory, FT_GlyphSlotRec_::next, FT_DriverRec_::root, and FT_Driver_ClassRec_::slot_object_size.

Referenced by FT_Open_Face(), and T42_GlyphSlot_Init().

FT_New_Memory ( void   ) 

Definition at line 467 of file ftsystem.c.

References ft_alloc(), ft_free(), ft_realloc(), ft_smalloc, NULL, and FT_MemoryRec_::user.

FT_Render_Glyph_Internal ( FT_Library  library,
FT_GlyphSlot  slot,
FT_Render_Mode  render_mode 
)

Definition at line 3778 of file ftobjs.c.

References FT_Bool, FT_ERROR_BASE, FT_GLYPH_FORMAT_BITMAP, FT_GLYPH_FORMAT_OUTLINE, FT_Lookup_Renderer(), FT_Set_Renderer(), NULL, FT_RendererRec_::render, and update().

Referenced by FT_Glyph_To_Bitmap(), and FT_Render_Glyph().

FT_Request_Metrics ( FT_Face  face,
FT_Size_Request  req 
)

Definition at line 2521 of file ftobjs.c.

References FT_DivFix(), FT_IS_SCALABLE, FT_MulDiv(), FT_MulFix(), ft_recompute_scaled_metrics(), FT_REQUEST_HEIGHT, FT_REQUEST_WIDTH, FT_SIZE_REQUEST_TYPE_BBOX, FT_SIZE_REQUEST_TYPE_CELL, FT_SIZE_REQUEST_TYPE_MAX, FT_SIZE_REQUEST_TYPE_NOMINAL, FT_SIZE_REQUEST_TYPE_REAL_DIM, FT_SIZE_REQUEST_TYPE_SCALES, FT_ZERO, h, RooFitShortHand::L(), metrics(), and w.

Referenced by cff_size_request(), cid_size_request(), FT_Request_Size(), T1_Size_Request(), and tt_size_request().

FT_Select_Metrics ( FT_Face  face,
FT_ULong  strike_index 
)

Definition at line 2486 of file ftobjs.c.

References bsize, FT_DivFix(), FT_IS_SCALABLE, ft_recompute_scaled_metrics(), RooFitShortHand::L(), and metrics().

Referenced by BDF_Size_Select(), FNT_Size_Select(), FT_Select_Size(), and PCF_Size_Select().

ft_synthesize_vertical_metrics ( FT_Glyph_Metrics metrics,
FT_Pos  advance 
)

Definition at line 2426 of file ftobjs.c.

References FT_Pos, and height.

Referenced by BDF_Glyph_Load(), cff_slot_load(), cid_slot_load_glyph(), FNT_Load_Glyph(), PCF_Glyph_Load(), and T1_Load_Glyph().


Generated on Tue Jul 5 15:58:20 2011 for ROOT_528-00b_version by  doxygen 1.5.1