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
pfrload.c File Reference
#include "pfrload.h"
#include "pfrerror.h"

Go to the source code of this file.

Macros

#define FT_COMPONENT   trace_pfr
 
#define FT_STRUCTURE   PFR_HeaderRec
 

Functions

 pfr_extra_items_skip (FT_Byte **pp, FT_Byte *limit)
 
 pfr_extra_items_parse (FT_Byte **pp, FT_Byte *limit, PFR_ExtraItem item_list, FT_Pointer item_data)
 
 pfr_header_load (PFR_Header header, FT_Stream stream)
 
 pfr_header_check (PFR_Header header)
 
 pfr_log_font_count (FT_Stream stream, FT_UInt32 section_offset, FT_UInt *acount)
 
 pfr_log_font_load (PFR_LogFont log_font, FT_Stream stream, FT_UInt idx, FT_UInt32 section_offset, FT_Bool size_increment)
 
 pfr_extra_item_load_bitmap_info (FT_Byte *p, FT_Byte *limit, PFR_PhyFont phy_font)
 
 pfr_extra_item_load_font_id (FT_Byte *p, FT_Byte *limit, PFR_PhyFont phy_font)
 
 pfr_extra_item_load_stem_snaps (FT_Byte *p, FT_Byte *limit, PFR_PhyFont phy_font)
 
 pfr_extra_item_load_kerning_pairs (FT_Byte *p, FT_Byte *limit, PFR_PhyFont phy_font)
 
 pfr_phy_font_done (PFR_PhyFont phy_font, FT_Memory memory)
 
 pfr_phy_font_load (PFR_PhyFont phy_font, FT_Stream stream, FT_UInt32 offset, FT_UInt32 size)
 

Macro Definition Documentation

◆ FT_COMPONENT

#define FT_COMPONENT   trace_pfr

Definition at line 26 of file pfrload.c.

◆ FT_STRUCTURE

#define FT_STRUCTURE   PFR_HeaderRec

Function Documentation

◆ pfr_extra_item_load_bitmap_info()

pfr_extra_item_load_bitmap_info ( FT_Byte p,
FT_Byte limit,
PFR_PhyFont  phy_font 
)

◆ pfr_extra_item_load_font_id()

pfr_extra_item_load_font_id ( FT_Byte p,
FT_Byte limit,
PFR_PhyFont  phy_font 
)

Definition at line 448 of file pfrload.c.

References error, FT_ALLOC, FT_CALLBACK_DEF, FT_Err_Ok, FT_MEM_COPY, and NULL.

◆ pfr_extra_item_load_kerning_pairs()

pfr_extra_item_load_kerning_pairs ( FT_Byte p,
FT_Byte limit,
PFR_PhyFont  phy_font 
)

◆ pfr_extra_item_load_stem_snaps()

pfr_extra_item_load_stem_snaps ( FT_Byte p,
FT_Byte limit,
PFR_PhyFont  phy_font 
)

◆ pfr_extra_items_parse()

pfr_extra_items_parse ( FT_Byte **  pp,
FT_Byte limit,
PFR_ExtraItem  item_list,
FT_Pointer  item_data 
)

◆ pfr_extra_items_skip()

pfr_extra_items_skip ( FT_Byte **  pp,
FT_Byte limit 
)

Definition at line 39 of file pfrload.c.

References FT_LOCAL_DEF, NULL, and pfr_extra_items_parse().

Referenced by pfr_log_font_load().

◆ pfr_header_check()

pfr_header_check ( PFR_Header  header)

Definition at line 173 of file pfrload.c.

References FT_Bool, and FT_LOCAL_DEF.

Referenced by pfr_face_init().

◆ pfr_header_load()

pfr_header_load ( PFR_Header  header,
FT_Stream  stream 
)

Definition at line 153 of file pfrload.c.

References error, FT_Bool, FT_LOCAL_DEF, FT_STREAM_READ_FIELDS, and FT_STREAM_SEEK.

Referenced by pfr_face_init().

◆ pfr_log_font_count()

pfr_log_font_count ( FT_Stream  stream,
FT_UInt32  section_offset,
FT_UInt acount 
)

Definition at line 200 of file pfrload.c.

References error, FT_LOCAL_DEF, FT_READ_USHORT, and FT_STREAM_SEEK.

Referenced by pfr_face_init().

◆ pfr_log_font_load()

pfr_log_font_load ( PFR_LogFont  log_font,
FT_Stream  stream,
FT_UInt  idx,
FT_UInt32  section_offset,
FT_Bool  size_increment 
)

◆ pfr_phy_font_done()

pfr_phy_font_done ( PFR_PhyFont  phy_font,
FT_Memory  memory 
)

Definition at line 668 of file pfrload.c.

References FT_FREE, FT_LOCAL_DEF, PFR_KernItemRec_::next, and NULL.

Referenced by pfr_face_done().

◆ pfr_phy_font_load()

pfr_phy_font_load ( PFR_PhyFont  phy_font,
FT_Stream  stream,
FT_UInt32  offset,
FT_UInt32  size 
)