All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ftobjs.c File Reference
#include <ft2build.h>
#include <FT_LIST_H>
#include <FT_OUTLINE_H>
#include <FT_TRUETYPE_IDS_H>
#include <FT_SERVICE_SFNT_H>

Go to the source code of this file.


#define FT_COMPONENT   trace_objs


static void destroy_charmaps (FT_Face face, FT_Memory memory)
static void Destroy_Driver (FT_Driver driver)
static void destroy_face (FT_Memory memory, FT_Face face, FT_Driver driver)
static void Destroy_Module (FT_Module module)
static void destroy_size (FT_Memory memory, FT_Size size, FT_Driver driver)
static FT_Error find_unicode_charmap (FT_Face face)
static FT_CharMap find_variant_selector_charmap (FT_Face face)
 FT_Activate_Size (FT_Size size)
 FT_Add_Module (FT_Library library, const FT_Module_Class *clazz)
static FT_Error ft_add_renderer (FT_Module module)
 FT_Attach_File (FT_Face face, const char *filepathname)
 FT_Attach_Stream (FT_Face face, FT_Open_Args *parameters)
 FT_CMap_Done (FT_CMap cmap)
static void ft_cmap_done_internal (FT_CMap cmap)
 FT_CMap_New (FT_CMap_Class clazz, FT_Pointer init_data, FT_CharMap charmap, FT_CMap *acmap)
 FT_Done_Face (FT_Face face)
 FT_Done_GlyphSlot (FT_GlyphSlot slot)
 FT_Done_Library (FT_Library library)
 FT_Done_Size (FT_Size size)
 FT_Face_GetCharsOfVariant (FT_Face face, FT_ULong variantSelector)
 FT_Face_GetCharVariantIndex (FT_Face face, FT_ULong charcode, FT_ULong variantSelector)
 FT_Face_GetCharVariantIsDefault (FT_Face face, FT_ULong charcode, FT_ULong variantSelector)
 FT_Face_GetVariantSelectors (FT_Face face)
 FT_Face_GetVariantsOfChar (FT_Face face, FT_ULong charcode)
 FT_Get_Char_Index (FT_Face face, FT_ULong charcode)
 FT_Get_Charmap_Index (FT_CharMap charmap)
 FT_Get_CMap_Format (FT_CharMap charmap)
 FT_Get_CMap_Language_ID (FT_CharMap charmap)
 FT_Get_First_Char (FT_Face face, FT_UInt *agindex)
 FT_Get_Glyph_Name (FT_Face face, FT_UInt glyph_index, FT_Pointer buffer, FT_UInt buffer_max)
 FT_Get_Kerning (FT_Face face, FT_UInt left_glyph, FT_UInt right_glyph, FT_UInt kern_mode, FT_Vector *akerning)
 FT_Get_Module (FT_Library library, const char *module_name)
 FT_Get_Module_Interface (FT_Library library, const char *mod_name)
 FT_Get_Name_Index (FT_Face face, FT_String *glyph_name)
 FT_Get_Next_Char (FT_Face face, FT_ULong charcode, FT_UInt *agindex)
 FT_Get_Postscript_Name (FT_Face face)
 FT_Get_Renderer (FT_Library library, FT_Glyph_Format format)
 FT_Get_Sfnt_Table (FT_Face face, FT_Sfnt_Tag tag)
 FT_Get_SubGlyph_Info (FT_GlyphSlot glyph, FT_UInt sub_index, FT_Int *p_index, FT_UInt *p_flags, FT_Int *p_arg1, FT_Int *p_arg2, FT_Matrix *p_transform)
 FT_Get_Track_Kerning (FT_Face face, FT_Fixed point_size, FT_Int degree, FT_Fixed *akerning)
 FT_Get_TrueType_Engine_Type (FT_Library library)
 ft_glyphslot_alloc_bitmap (FT_GlyphSlot slot, FT_ULong size)
static void ft_glyphslot_clear (FT_GlyphSlot slot)
static void ft_glyphslot_done (FT_GlyphSlot slot)
 ft_glyphslot_free_bitmap (FT_GlyphSlot slot)
static void ft_glyphslot_grid_fit_metrics (FT_GlyphSlot slot, FT_Bool vertical)
static FT_Error ft_glyphslot_init (FT_GlyphSlot slot)
 ft_glyphslot_set_bitmap (FT_GlyphSlot slot, FT_Byte *buffer)
 FT_Library_Version (FT_Library library, FT_Int *amajor, FT_Int *aminor, FT_Int *apatch)
 FT_Load_Char (FT_Face face, FT_ULong char_code, FT_Int32 load_flags)
 FT_Load_Glyph (FT_Face face, FT_UInt glyph_index, FT_Int32 load_flags)
 FT_Load_Sfnt_Table (FT_Face face, FT_ULong tag, FT_Long offset, FT_Byte *buffer, FT_ULong *length)
static FT_Renderer ft_lookup_glyph_renderer (FT_GlyphSlot slot)
 FT_Lookup_Renderer (FT_Library library, FT_Glyph_Format format, FT_ListNode *node)
 FT_Match_Size (FT_Face face, FT_Size_Request req, FT_Bool ignore_width, FT_ULong *size_index)
 ft_module_get_service (FT_Module module, const char *service_id)
 FT_New_Face (FT_Library library, const char *pathname, FT_Long face_index, FT_Face *aface)
 FT_New_GlyphSlot (FT_Face face, FT_GlyphSlot *aslot)
 FT_New_Library (FT_Memory memory, FT_Library *alibrary)
 FT_New_Memory_Face (FT_Library library, const FT_Byte *file_base, FT_Long file_size, FT_Long face_index, FT_Face *aface)
 FT_New_Size (FT_Face face, FT_Size *asize)
 FT_Open_Face (FT_Library library, const FT_Open_Args *args, FT_Long face_index, FT_Face *aface)
static void ft_recompute_scaled_metrics (FT_Face face, FT_Size_Metrics *metrics)
 FT_Reference_Face (FT_Face face)
 FT_Reference_Library (FT_Library library)
 FT_Remove_Module (FT_Library library, FT_Module module)
static void ft_remove_renderer (FT_Module module)
 FT_Render_Glyph (FT_GlyphSlot slot, FT_Render_Mode render_mode)
 FT_Render_Glyph_Internal (FT_Library library, FT_GlyphSlot slot, FT_Render_Mode render_mode)
 FT_Request_Metrics (FT_Face face, FT_Size_Request req)
 FT_Request_Size (FT_Face face, FT_Size_Request req)
 FT_Select_Charmap (FT_Face face, FT_Encoding encoding)
 FT_Select_Metrics (FT_Face face, FT_ULong strike_index)
 FT_Select_Size (FT_Face face, FT_Int strike_index)
 ft_service_list_lookup (FT_ServiceDesc service_descriptors, const char *service_id)
 FT_Set_Char_Size (FT_Face face, FT_F26Dot6 char_width, FT_F26Dot6 char_height, FT_UInt horz_resolution, FT_UInt vert_resolution)
 FT_Set_Charmap (FT_Face face, FT_CharMap charmap)
static void ft_set_current_renderer (FT_Library library)
 FT_Set_Debug_Hook (FT_Library library, FT_UInt hook_index, FT_DebugHook_Func debug_hook)
 FT_Set_Pixel_Sizes (FT_Face face, FT_UInt pixel_width, FT_UInt pixel_height)
 FT_Set_Renderer (FT_Library library, FT_Renderer renderer, FT_UInt num_params, FT_Parameter *parameters)
 FT_Set_Transform (FT_Face face, FT_Matrix *matrix, FT_Vector *delta)
 FT_Sfnt_Table_Info (FT_Face face, FT_UInt table_index, FT_ULong *tag, FT_ULong *length)
 FT_Stream_Free (FT_Stream stream, FT_Int external)
 FT_Stream_New (FT_Library library, const FT_Open_Args *args, FT_Stream *astream)
 ft_synthesize_vertical_metrics (FT_Glyph_Metrics *metrics, FT_Pos advance)
 ft_validator_error (FT_Validator valid, FT_Error error)
 ft_validator_init (FT_Validator valid, const FT_Byte *base, const FT_Byte *limit, FT_ValidationLevel level)
 ft_validator_run (FT_Validator valid)
static FT_Error open_face (FT_Driver driver, FT_Stream stream, FT_Long face_index, FT_Int num_params, FT_Parameter *params, FT_Face *aface)

Macro Definition Documentation

( ( (FT_Long)FREETYPE_MAJOR << 16 ) | \
Definition: freetype.h:3836
signed long FT_Long
Definition: fttypes.h:238
Definition: freetype.h:3835

Referenced by FT_Add_Module().

#define FT_COMPONENT   trace_objs

Definition at line 218 of file ftobjs.c.


Definition at line 43 of file ftobjs.c.

Function Documentation

static void destroy_charmaps ( FT_Face  face,
FT_Memory  memory 
static void destroy_size ( FT_Memory  memory,
FT_Size  size,
FT_Driver  driver 
FT_Attach_File ( FT_Face  face,
const char *  filepathname 
static void ft_cmap_done_internal ( FT_CMap  cmap)
FT_Face_GetCharsOfVariant ( FT_Face  face,
FT_ULong  variantSelector 
FT_Face_GetCharVariantIndex ( FT_Face  face,
FT_ULong  charcode,
FT_ULong  variantSelector 
FT_Face_GetCharVariantIsDefault ( FT_Face  face,
FT_ULong  charcode,
FT_ULong  variantSelector 
FT_Face_GetVariantSelectors ( FT_Face  face)
FT_Face_GetVariantsOfChar ( FT_Face  face,
FT_ULong  charcode 
FT_Get_Charmap_Index ( FT_CharMap  charmap)

Definition at line 3147 of file ftobjs.c.


FT_Get_CMap_Format ( FT_CharMap  charmap)

Definition at line 3730 of file ftobjs.c.

References cmap_info, TT_CMapInfo_::format, FT_FACE_FIND_SERVICE, and NULL.

Referenced by find_variant_selector_charmap(), and FT_Set_Charmap().

FT_Get_CMap_Language_ID ( FT_CharMap  charmap)

Definition at line 3706 of file ftobjs.c.

References cmap_info, FT_FACE_FIND_SERVICE, TT_CMapInfo_::language, and NULL.

FT_Get_First_Char ( FT_Face  face,
FT_UInt agindex 

Definition at line 3315 of file ftobjs.c.

References FT_Get_Char_Index(), and FT_Get_Next_Char().

FT_Get_Glyph_Name ( FT_Face  face,
FT_UInt  glyph_index,
FT_Pointer  buffer,
FT_UInt  buffer_max 

Definition at line 3576 of file ftobjs.c.

References error, FT_Err_Invalid_Argument, FT_FACE_LOOKUP_SERVICE, and FT_HAS_GLYPH_NAMES.

Referenced by tt_check_single_notdef().

FT_Get_Kerning ( FT_Face  face,
FT_UInt  left_glyph,
FT_UInt  right_glyph,
FT_UInt  kern_mode,
FT_Vector akerning 
FT_Get_Module_Interface ( FT_Library  library,
const char *  mod_name 
FT_Get_Name_Index ( FT_Face  face,
FT_String glyph_name 

Definition at line 3550 of file ftobjs.c.


FT_Get_Next_Char ( FT_Face  face,
FT_ULong  charcode,
FT_UInt agindex 
FT_Get_Postscript_Name ( FT_Face  face)

Definition at line 3610 of file ftobjs.c.


FT_Get_Renderer ( FT_Library  library,
FT_Glyph_Format  format 

Definition at line 3934 of file ftobjs.c.

References FT_Lookup_Renderer().

FT_Get_Sfnt_Table ( FT_Face  face,
FT_Sfnt_Tag  tag 

Definition at line 3639 of file ftobjs.c.


Referenced by FT_Get_FSType_Flags().

FT_Get_SubGlyph_Info ( FT_GlyphSlot  glyph,
FT_UInt  sub_index,
FT_Int p_index,
FT_UInt p_flags,
FT_Int p_arg1,
FT_Int p_arg2,
FT_Matrix p_transform 
FT_Get_Track_Kerning ( FT_Face  face,
FT_Fixed  point_size,
FT_Int  degree,
FT_Fixed akerning 

Definition at line 3023 of file ftobjs.c.

References error, FT_Err_Invalid_Argument, FT_Err_Ok, and FT_FACE_FIND_SERVICE.

FT_Get_TrueType_Engine_Type ( FT_Library  library)
ft_glyphslot_alloc_bitmap ( FT_GlyphSlot  slot,
FT_ULong  size 

Definition at line 295 of file ftobjs.c.


Referenced by PCF_Glyph_Load(), and tt_sbit_decoder_alloc_bitmap().

ft_glyphslot_free_bitmap ( FT_GlyphSlot  slot)
static void ft_glyphslot_grid_fit_metrics ( FT_GlyphSlot  slot,
FT_Bool  vertical 

Definition at line 518 of file ftobjs.c.

References FT_PIX_CEIL, FT_PIX_FLOOR, FT_PIX_ROUND, FT_Pos, and FT_GlyphSlotRec_::metrics.

Referenced by FT_Load_Glyph().

ft_glyphslot_set_bitmap ( FT_GlyphSlot  slot,
FT_Byte buffer 

Definition at line 283 of file ftobjs.c.

References FT_ASSERT, FT_GLYPH_OWN_BITMAP, and ft_glyphslot_free_bitmap().

Referenced by BDF_Glyph_Load().

FT_Library_Version ( FT_Library  library,
FT_Int amajor,
FT_Int aminor,
FT_Int apatch 

Definition at line 4470 of file ftobjs.c.

FT_Load_Char ( FT_Face  face,
FT_ULong  char_code,
FT_Int32  load_flags 

Definition at line 809 of file ftobjs.c.

References FT_Get_Char_Index(), and FT_Load_Glyph().

FT_Load_Glyph ( FT_Face  face,
FT_UInt  glyph_index,
FT_Int32  load_flags 

Definition at line 563 of file ftobjs.c.

References FT_GlyphSlotRec_::advance, FT_LibraryRec_::auto_hinter, FT_ModuleRec_::clazz, FT_RendererRec_::clazz, FT_DriverRec_::clazz, error, FALSE, FT_GlyphSlotRec_::format, FT_Bool, FT_BOOL, FT_DRIVER_HAS_HINTER, FT_DRIVER_IS_SCALABLE, FT_DRIVER_USES_OUTLINES, FT_GLYPH_FORMAT_OUTLINE, ft_glyphslot_clear(), ft_glyphslot_grid_fit_metrics(), FT_HAS_FIXED_SIZES, FT_IS_SCALABLE, FT_IS_SFNT, FT_IS_TRICKY, FT_LOAD_FORCE_AUTOHINT, FT_LOAD_IGNORE_TRANSFORM, FT_LOAD_LINEAR_DESIGN, FT_LOAD_MONOCHROME, FT_LOAD_NO_AUTOHINT, FT_LOAD_NO_BITMAP, FT_LOAD_NO_HINTING, FT_LOAD_NO_RECURSE, FT_LOAD_NO_SCALE, FT_LOAD_RENDER, FT_LOAD_SBITS_ONLY, FT_LOAD_TARGET_MODE, FT_LOAD_VERTICAL_LAYOUT, ft_lookup_glyph_renderer(), FT_MulDiv(), FT_Outline_Check(), FT_Outline_Transform(), FT_Outline_Translate(), FT_Render_Glyph(), FT_RENDER_MODE_LIGHT, FT_RENDER_MODE_MONO, FT_RENDER_MODE_NORMAL, FT_TRACE5, FT_Vector_Transform(), library, FT_ModuleRec_::library, FT_GlyphSlotRec_::linearHoriAdvance, FT_GlyphSlotRec_::linearVertAdvance, FT_AutoHinter_ServiceRec_::load_glyph, FT_Driver_ClassRec_::load_glyph, TT_FaceRec_::max_profile, TT_MaxProfile_::maxSizeOfInstructions, FT_GlyphSlotRec_::metrics, FT_Module_Class_::module_interface, TT_FaceRec_::num_locations, FT_GlyphSlotRec_::outline, FT_DriverRec_::root, FT_Face_InternalRec_::transform_flags, FT_Renderer_Class_::transform_glyph, TRUE, FT_Vector_::x, FT_Size_Metrics_::x_scale, FT_Vector_::y, and FT_Size_Metrics_::y_scale.

Referenced by af_latin2_metrics_init_blues(), af_latin2_metrics_init_widths(), af_latin_metrics_init_blues(), af_latin_metrics_init_widths(), af_loader_load_g(), FT_Get_Advances(), FT_Load_Char(), ftc_basic_family_load_bitmap(), ftc_basic_family_load_glyph(), gxv_ctlPoint_validate(), gxv_prop_zero_advance_validate(), and TestFace().

FT_Load_Sfnt_Table ( FT_Face  face,
FT_ULong  tag,
FT_Long  offset,
FT_Byte buffer,
FT_ULong length 

Definition at line 3660 of file ftobjs.c.


Referenced by gxv_load_table(), and otv_load_table().

ft_module_get_service ( FT_Module  module,
const char *  service_id 
FT_New_Face ( FT_Library  library,
const char *  pathname,
FT_Long  face_index,
FT_Face aface 
FT_New_Memory_Face ( FT_Library  library,
const FT_Byte file_base,
FT_Long  file_size,
FT_Long  face_index,
FT_Face aface 
FT_Reference_Face ( FT_Face  face)

Definition at line 2318 of file ftobjs.c.

References FT_Err_Ok.

FT_Reference_Library ( FT_Library  library)

Definition at line 4401 of file ftobjs.c.

References FT_Err_Ok.

FT_Remove_Module ( FT_Library  library,
FT_Module  module 

Definition at line 4346 of file ftobjs.c.

References Destroy_Module(), and FT_Err_Ok.

Referenced by FT_Add_Module(), and FT_Done_Library().

FT_Render_Glyph ( FT_GlyphSlot  slot,
FT_Render_Mode  render_mode 

Definition at line 4054 of file ftobjs.c.

References FT_Err_Invalid_Argument, FT_FACE_LIBRARY, FT_Render_Glyph_Internal(), and library.

Referenced by FT_Load_Glyph(), and TestFace().

FT_Render_Glyph_Internal ( FT_Library  library,
FT_GlyphSlot  slot,
FT_Render_Mode  render_mode 
static void ft_set_current_renderer ( FT_Library  library)
FT_Set_Debug_Hook ( FT_Library  library,
FT_UInt  hook_index,
FT_DebugHook_Func  debug_hook 

Definition at line 4613 of file ftobjs.c.

References sizeof().

FT_Set_Renderer ( FT_Library  library,
FT_Renderer  renderer,
FT_UInt  num_params,
FT_Parameter parameters 
FT_Set_Transform ( FT_Face  face,
FT_Matrix matrix,
FT_Vector delta 

Definition at line 466 of file ftobjs.c.

References FT_Face_InternalRec_::transform_flags.

FT_Sfnt_Table_Info ( FT_Face  face,
FT_UInt  table_index,
FT_ULong tag,
FT_ULong length 

Definition at line 3683 of file ftobjs.c.


FT_Stream_Free ( FT_Stream  stream,
FT_Int  external 

Definition at line 195 of file ftobjs.c.

References FT_FREE, and FT_Stream_Close().

Referenced by destroy_face(), FT_Attach_Stream(), and FT_Open_Face().

ft_synthesize_vertical_metrics ( FT_Glyph_Metrics metrics,
FT_Pos  advance 
ft_validator_error ( FT_Validator  valid,
FT_Error  error 

Definition at line 94 of file ftobjs.c.

References error, ft_jmp_buf, and ft_longjmp.

ft_validator_init ( FT_Validator  valid,
const FT_Byte base,
const FT_Byte limit,
FT_ValidationLevel  level 

Definition at line 71 of file ftobjs.c.

References FT_Err_Ok.

Referenced by classic_kern_validate(), otv_validate(), and tt_face_build_cmaps().

ft_validator_run ( FT_Validator  valid)

Definition at line 84 of file ftobjs.c.

References FT_UNUSED.