Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Functions
ftobjs.c File Reference
#include <ft2build.h>

Go to the source code of this file.

Macros

#define GRID_FIT_METRICS
 
#define FT_COMPONENT   trace_objs
 
#define FREETYPE_VER_FIXED
 

Functions

 ft_service_list_lookup (FT_ServiceDesc service_descriptors, const char *service_id)
 
 ft_validator_init (FT_Validator valid, const FT_Byte *base, const FT_Byte *limit, FT_ValidationLevel level)
 
 ft_validator_run (FT_Validator valid)
 
 ft_validator_error (FT_Validator valid, FT_Error error)
 
 FT_Stream_New (FT_Library library, const FT_Open_Args *args, FT_Stream *astream)
 
 FT_Stream_Free (FT_Stream stream, FT_Int external)
 
 ft_glyphslot_free_bitmap (FT_GlyphSlot slot)
 
 ft_glyphslot_set_bitmap (FT_GlyphSlot slot, FT_Byte *buffer)
 
 ft_glyphslot_alloc_bitmap (FT_GlyphSlot slot, FT_ULong size)
 
 FT_New_GlyphSlot (FT_Face face, FT_GlyphSlot *aslot)
 
 FT_Done_GlyphSlot (FT_GlyphSlot slot)
 
 FT_Set_Transform (FT_Face face, FT_Matrix *matrix, FT_Vector *delta)
 
 FT_Load_Glyph (FT_Face face, FT_UInt glyph_index, FT_Int32 load_flags)
 
 FT_Load_Char (FT_Face face, FT_ULong char_code, FT_Int32 load_flags)
 
 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_Open_Face (FT_Library library, const FT_Open_Args *args, FT_Long face_index, FT_Face *aface)
 
 FT_Attach_File (FT_Face face, const char *filepathname)
 
 FT_Attach_Stream (FT_Face face, FT_Open_Args *parameters)
 
 FT_Reference_Face (FT_Face face)
 
 FT_Done_Face (FT_Face face)
 
 FT_New_Size (FT_Face face, FT_Size *asize)
 
 FT_Done_Size (FT_Size size)
 
 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_Select_Metrics (FT_Face face, FT_ULong strike_index)
 
 FT_Request_Metrics (FT_Face face, FT_Size_Request req)
 
 FT_Select_Size (FT_Face face, FT_Int strike_index)
 
 FT_Request_Size (FT_Face face, FT_Size_Request req)
 
 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_Pixel_Sizes (FT_Face face, FT_UInt pixel_width, FT_UInt pixel_height)
 
 FT_Get_Kerning (FT_Face face, FT_UInt left_glyph, FT_UInt right_glyph, FT_UInt kern_mode, FT_Vector *akerning)
 
 FT_Get_Track_Kerning (FT_Face face, FT_Fixed point_size, FT_Int degree, FT_Fixed *akerning)
 
 FT_Select_Charmap (FT_Face face, FT_Encoding encoding)
 
 FT_Set_Charmap (FT_Face face, FT_CharMap charmap)
 
 FT_Get_Charmap_Index (FT_CharMap charmap)
 
 FT_CMap_Done (FT_CMap cmap)
 
 FT_CMap_New (FT_CMap_Class clazz, FT_Pointer init_data, FT_CharMap charmap, FT_CMap *acmap)
 
 FT_Get_Char_Index (FT_Face face, FT_ULong charcode)
 
 FT_Get_First_Char (FT_Face face, FT_UInt *agindex)
 
 FT_Get_Next_Char (FT_Face face, FT_ULong charcode, FT_UInt *agindex)
 
 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_Face_GetCharsOfVariant (FT_Face face, FT_ULong variantSelector)
 
 FT_Get_Name_Index (FT_Face face, FT_String *glyph_name)
 
 FT_Get_Glyph_Name (FT_Face face, FT_UInt glyph_index, FT_Pointer buffer, FT_UInt buffer_max)
 
 FT_Get_Postscript_Name (FT_Face face)
 
 FT_Get_Sfnt_Table (FT_Face face, FT_Sfnt_Tag tag)
 
 FT_Load_Sfnt_Table (FT_Face face, FT_ULong tag, FT_Long offset, FT_Byte *buffer, FT_ULong *length)
 
 FT_Sfnt_Table_Info (FT_Face face, FT_UInt table_index, FT_ULong *tag, FT_ULong *length)
 
 FT_Get_CMap_Language_ID (FT_CharMap charmap)
 
 FT_Get_CMap_Format (FT_CharMap charmap)
 
 FT_Activate_Size (FT_Size size)
 
 FT_Lookup_Renderer (FT_Library library, FT_Glyph_Format format, FT_ListNode *node)
 
 FT_Get_Renderer (FT_Library library, FT_Glyph_Format format)
 
 FT_Set_Renderer (FT_Library library, FT_Renderer renderer, FT_UInt num_params, FT_Parameter *parameters)
 
 FT_Render_Glyph_Internal (FT_Library library, FT_GlyphSlot slot, FT_Render_Mode render_mode)
 
 FT_Render_Glyph (FT_GlyphSlot slot, FT_Render_Mode render_mode)
 
 FT_Add_Module (FT_Library library, const FT_Module_Class *clazz)
 
 FT_Get_Module (FT_Library library, const char *module_name)
 
 FT_Get_Module_Interface (FT_Library library, const char *mod_name)
 
 ft_module_get_service (FT_Module module, const char *service_id)
 
 FT_Remove_Module (FT_Library library, FT_Module module)
 
FT_Error ft_property_do (FT_Library library, const FT_String *module_name, const FT_String *property_name, void *value, FT_Bool set)
 
FT_Error FT_Property_Set (FT_Library library, const FT_String *module_name, const FT_String *property_name, const void *value)
 
FT_Error FT_Property_Get (FT_Library library, const FT_String *module_name, const FT_String *property_name, void *value)
 
 FT_Reference_Library (FT_Library library)
 
 FT_New_Library (FT_Memory memory, FT_Library *alibrary)
 
 FT_Library_Version (FT_Library library, FT_Int *amajor, FT_Int *aminor, FT_Int *apatch)
 
 FT_Done_Library (FT_Library library)
 
 FT_Set_Debug_Hook (FT_Library library, FT_UInt hook_index, FT_DebugHook_Func debug_hook)
 
 FT_Get_TrueType_Engine_Type (FT_Library library)
 
 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)
 

Macro Definition Documentation

◆ FREETYPE_VER_FIXED

#define FREETYPE_VER_FIXED
Value:
( ( (FT_Long)FREETYPE_MAJOR << 16 ) | \
FREETYPE_MINOR )
signed long FT_Long
Definition: fttypes.h:238
#define FREETYPE_MAJOR
Definition: freetype.h:3883

Referenced by FT_Add_Module().

◆ FT_COMPONENT

#define FT_COMPONENT   trace_objs

Definition at line 229 of file ftobjs.c.

◆ GRID_FIT_METRICS

#define GRID_FIT_METRICS

Definition at line 54 of file ftobjs.c.

Function Documentation

◆ FT_Activate_Size()

FT_Activate_Size ( FT_Size  size)

◆ FT_Add_Module()

FT_Add_Module ( FT_Library  library,
const FT_Module_Class clazz 
)

◆ FT_Attach_File()

FT_Attach_File ( FT_Face  face,
const char *  filepathname 
)

◆ FT_Attach_Stream()

FT_Attach_Stream ( FT_Face  face,
FT_Open_Args parameters 
)

◆ FT_CMap_Done()

FT_CMap_Done ( FT_CMap  cmap)

◆ FT_CMap_New()

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

◆ FT_Done_Face()

FT_Done_Face ( FT_Face  face)

◆ FT_Done_GlyphSlot()

FT_Done_GlyphSlot ( FT_GlyphSlot  slot)

◆ FT_Done_Library()

FT_Done_Library ( FT_Library  library)

◆ FT_Done_Size()

FT_Done_Size ( FT_Size  size)

◆ FT_Face_GetCharsOfVariant()

FT_Face_GetCharsOfVariant ( FT_Face  face,
FT_ULong  variantSelector 
)

Definition at line 3527 of file ftobjs.c.

References NULL.

◆ FT_Face_GetCharVariantIndex()

FT_Face_GetCharVariantIndex ( FT_Face  face,
FT_ULong  charcode,
FT_ULong  variantSelector 
)

Definition at line 3382 of file ftobjs.c.

References FT_FaceRec_::charmap, and FT_CharMapRec_::encoding.

◆ FT_Face_GetCharVariantIsDefault()

FT_Face_GetCharVariantIsDefault ( FT_Face  face,
FT_ULong  charcode,
FT_ULong  variantSelector 
)

Definition at line 3425 of file ftobjs.c.

◆ FT_Face_GetVariantSelectors()

FT_Face_GetVariantSelectors ( FT_Face  face)

Definition at line 3466 of file ftobjs.c.

References NULL.

◆ FT_Face_GetVariantsOfChar()

FT_Face_GetVariantsOfChar ( FT_Face  face,
FT_ULong  charcode 
)

Definition at line 3493 of file ftobjs.c.

References NULL.

◆ FT_Get_Char_Index()

FT_Get_Char_Index ( FT_Face  face,
FT_ULong  charcode 
)

◆ FT_Get_Charmap_Index()

FT_Get_Charmap_Index ( FT_CharMap  charmap)

Definition at line 3159 of file ftobjs.c.

References FT_ASSERT, FT_ERROR, i, and FT_FaceRec_::num_charmaps.

◆ FT_Get_CMap_Format()

FT_Get_CMap_Format ( FT_CharMap  charmap)

Definition at line 3742 of file ftobjs.c.

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

Referenced by FT_Set_Charmap().

◆ FT_Get_CMap_Language_ID()

FT_Get_CMap_Language_ID ( FT_CharMap  charmap)

Definition at line 3718 of file ftobjs.c.

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

◆ FT_Get_First_Char()

FT_Get_First_Char ( FT_Face  face,
FT_UInt agindex 
)

◆ FT_Get_Glyph_Name()

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

◆ FT_Get_Kerning()

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_Get_Module ( FT_Library  library,
const char *  module_name 
)

◆ FT_Get_Module_Interface()

FT_Get_Module_Interface ( FT_Library  library,
const char *  mod_name 
)

◆ FT_Get_Name_Index()

FT_Get_Name_Index ( FT_Face  face,
FT_String glyph_name 
)

Definition at line 3562 of file ftobjs.c.

References FT_EXPORT_DEF, FT_FACE_LOOKUP_SERVICE, and FT_HAS_GLYPH_NAMES.

◆ FT_Get_Next_Char()

FT_Get_Next_Char ( FT_Face  face,
FT_ULong  charcode,
FT_UInt agindex 
)

◆ FT_Get_Postscript_Name()

FT_Get_Postscript_Name ( FT_Face  face)

Definition at line 3622 of file ftobjs.c.

References FT_EXPORT_DEF, FT_FACE_LOOKUP_SERVICE, and NULL.

◆ FT_Get_Renderer()

FT_Get_Renderer ( FT_Library  library,
FT_Glyph_Format  format 
)

Definition at line 3946 of file ftobjs.c.

References FT_EXPORT_DEF, and FT_Lookup_Renderer().

◆ FT_Get_Sfnt_Table()

FT_Get_Sfnt_Table ( FT_Face  face,
FT_Sfnt_Tag  tag 
)

Definition at line 3651 of file ftobjs.c.

References FT_EXPORT_DEF, FT_FACE_FIND_SERVICE, FT_IS_SFNT, and NULL.

Referenced by FT_Get_FSType_Flags().

◆ FT_Get_SubGlyph_Info()

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_Get_Track_Kerning ( FT_Face  face,
FT_Fixed  point_size,
FT_Int  degree,
FT_Fixed akerning 
)

Definition at line 3035 of file ftobjs.c.

References error, FT_Err_Ok, FT_EXPORT_DEF, FT_FACE_FIND_SERVICE, and FT_THROW().

◆ FT_Get_TrueType_Engine_Type()

FT_Get_TrueType_Engine_Type ( FT_Library  library)

◆ ft_glyphslot_alloc_bitmap()

ft_glyphslot_alloc_bitmap ( FT_GlyphSlot  slot,
FT_ULong  size 
)

Definition at line 306 of file ftobjs.c.

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

Referenced by PCF_Glyph_Load().

◆ ft_glyphslot_free_bitmap()

ft_glyphslot_free_bitmap ( FT_GlyphSlot  slot)

Definition at line 274 of file ftobjs.c.

References FT_BASE_DEF, FT_FACE_MEMORY, FT_FREE, FT_GLYPH_OWN_BITMAP, and NULL.

Referenced by ft_glyphslot_set_bitmap().

◆ ft_glyphslot_set_bitmap()

ft_glyphslot_set_bitmap ( FT_GlyphSlot  slot,
FT_Byte buffer 
)

Definition at line 294 of file ftobjs.c.

References FT_ASSERT, FT_BASE_DEF, FT_GLYPH_OWN_BITMAP, and ft_glyphslot_free_bitmap().

Referenced by BDF_Glyph_Load().

◆ FT_Library_Version()

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

◆ FT_Load_Char()

FT_Load_Char ( FT_Face  face,
FT_ULong  char_code,
FT_Int32  load_flags 
)

Definition at line 820 of file ftobjs.c.

References FT_Get_Char_Index(), FT_Load_Glyph(), and FT_THROW().

◆ FT_Load_Glyph()

FT_Load_Glyph ( FT_Face  face,
FT_UInt  glyph_index,
FT_Int32  load_flags 
)

◆ FT_Load_Sfnt_Table()

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

Definition at line 3672 of file ftobjs.c.

References FT_EXPORT_DEF, FT_FACE_FIND_SERVICE, FT_IS_SFNT, FT_THROW(), and NULL.

◆ FT_Lookup_Renderer()

FT_Lookup_Renderer ( FT_Library  library,
FT_Glyph_Format  format,
FT_ListNode node 
)

◆ FT_Match_Size()

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

◆ ft_module_get_service()

ft_module_get_service ( FT_Module  module,
const char *  service_id 
)

◆ FT_New_Face()

FT_New_Face ( FT_Library  library,
const char *  pathname,
FT_Long  face_index,
FT_Face aface 
)

◆ FT_New_GlyphSlot()

FT_New_GlyphSlot ( FT_Face  face,
FT_GlyphSlot aslot 
)

◆ FT_New_Library()

FT_New_Library ( FT_Memory  memory,
FT_Library alibrary 
)

◆ FT_New_Memory_Face()

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_New_Size ( FT_Face  face,
FT_Size asize 
)

◆ FT_Open_Face()

FT_Open_Face ( FT_Library  library,
const FT_Open_Args args,
FT_Long  face_index,
FT_Face aface 
)

◆ ft_property_do()

FT_Error ft_property_do ( FT_Library  library,
const FT_String module_name,
const FT_String property_name,
void value,
FT_Bool  set 
)

◆ FT_Property_Get()

FT_Error FT_Property_Get ( FT_Library  library,
const FT_String module_name,
const FT_String property_name,
void value 
)

Definition at line 4536 of file ftobjs.c.

References FALSE, FT_EXPORT_DEF, and ft_property_do().

◆ FT_Property_Set()

FT_Error FT_Property_Set ( FT_Library  library,
const FT_String module_name,
const FT_String property_name,
const void value 
)

Definition at line 4520 of file ftobjs.c.

References ft_property_do(), and TRUE.

◆ FT_Reference_Face()

FT_Reference_Face ( FT_Face  face)

◆ FT_Reference_Library()

FT_Reference_Library ( FT_Library  library)

Definition at line 4565 of file ftobjs.c.

References FT_Err_Ok, FT_EXPORT_DEF, and FT_LibraryRec_::refcount.

◆ FT_Remove_Module()

FT_Remove_Module ( FT_Library  library,
FT_Module  module 
)

Definition at line 4398 of file ftobjs.c.

References FT_THROW(), FT_LibraryRec_::modules, and FT_LibraryRec_::num_modules.

Referenced by FT_Add_Module(), and FT_Done_Library().

◆ FT_Render_Glyph()

FT_Render_Glyph ( FT_GlyphSlot  slot,
FT_Render_Mode  render_mode 
)

◆ FT_Render_Glyph_Internal()

FT_Render_Glyph_Internal ( FT_Library  library,
FT_GlyphSlot  slot,
FT_Render_Mode  render_mode 
)

◆ FT_Request_Metrics()

FT_Request_Metrics ( FT_Face  face,
FT_Size_Request  req 
)

◆ FT_Request_Size()

FT_Request_Size ( FT_Face  face,
FT_Size_Request  req 
)

◆ FT_Select_Charmap()

FT_Select_Charmap ( FT_Face  face,
FT_Encoding  encoding 
)

Definition at line 3066 of file ftobjs.c.

References FT_THROW().

Referenced by af_latin2_metrics_init(), af_latin_metrics_init(), and FTC_CMapCache_Lookup().

◆ FT_Select_Metrics()

FT_Select_Metrics ( FT_Face  face,
FT_ULong  strike_index 
)

◆ FT_Select_Size()

FT_Select_Size ( FT_Face  face,
FT_Int  strike_index 
)

◆ ft_service_list_lookup()

ft_service_list_lookup ( FT_ServiceDesc  service_descriptors,
const char *  service_id 
)

◆ FT_Set_Char_Size()

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_Set_Charmap ( FT_Face  face,
FT_CharMap  charmap 
)

◆ FT_Set_Debug_Hook()

FT_Set_Debug_Hook ( FT_Library  library,
FT_UInt  hook_index,
FT_DebugHook_Func  debug_hook 
)

Definition at line 4777 of file ftobjs.c.

References FT_LibraryRec_::debug_hooks, FT_EXPORT_DEF, and sizeof().

◆ FT_Set_Pixel_Sizes()

FT_Set_Pixel_Sizes ( FT_Face  face,
FT_UInt  pixel_width,
FT_UInt  pixel_height 
)

◆ FT_Set_Renderer()

FT_Set_Renderer ( FT_Library  library,
FT_Renderer  renderer,
FT_UInt  num_params,
FT_Parameter parameters 
)

◆ FT_Set_Transform()

FT_Set_Transform ( FT_Face  face,
FT_Matrix matrix,
FT_Vector delta 
)

Definition at line 477 of file ftobjs.c.

References FT_Face_InternalRec_::transform_flags.

◆ FT_Sfnt_Table_Info()

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

Definition at line 3695 of file ftobjs.c.

References FT_EXPORT_DEF, FT_FACE_FIND_SERVICE, FT_IS_SFNT, FT_THROW(), and NULL.

◆ FT_Stream_Free()

FT_Stream_Free ( FT_Stream  stream,
FT_Int  external 
)

Definition at line 206 of file ftobjs.c.

References FT_FREE, FT_Stream_Close(), and FT_StreamRec_::memory.

Referenced by FT_Attach_Stream(), and FT_New_Memory_Face().

◆ FT_Stream_New()

FT_Stream_New ( FT_Library  library,
const FT_Open_Args args,
FT_Stream astream 
)

◆ ft_synthesize_vertical_metrics()

ft_synthesize_vertical_metrics ( FT_Glyph_Metrics metrics,
FT_Pos  advance 
)

Definition at line 2542 of file ftobjs.c.

References FT_Pos.

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

◆ ft_validator_error()

ft_validator_error ( FT_Validator  valid,
FT_Error  error 
)

Definition at line 105 of file ftobjs.c.

References error, FT_BASE_DEF, ft_jmp_buf, and ft_longjmp.

◆ ft_validator_init()

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

Definition at line 82 of file ftobjs.c.

References FT_BASE_DEF, and FT_Err_Ok.

Referenced by tt_face_build_cmaps().

◆ ft_validator_run()

ft_validator_run ( FT_Validator  valid)

Definition at line 95 of file ftobjs.c.

References FT_BASE_DEF, and FT_UNUSED.