#include "pfrgload.h"
#include "pfrsbit.h"
#include "pfrload.h"
#include "pfrerror.h"
Go to the source code of this file.
Defines | |
#define | FT_COMPONENT trace_pfr |
Functions | |
pfr_glyph_init (PFR_Glyph glyph, FT_GlyphLoader loader) | |
pfr_glyph_done (PFR_Glyph glyph) | |
static void | pfr_glyph_close_contour (PFR_Glyph glyph) |
static void | pfr_glyph_start (PFR_Glyph glyph) |
static FT_Error | pfr_glyph_line_to (PFR_Glyph glyph, FT_Vector *to) |
static FT_Error | pfr_glyph_curve_to (PFR_Glyph glyph, FT_Vector *control1, FT_Vector *control2, FT_Vector *to) |
static FT_Error | pfr_glyph_move_to (PFR_Glyph glyph, FT_Vector *to) |
static void | pfr_glyph_end (PFR_Glyph glyph) |
static FT_Error | pfr_glyph_load_simple (PFR_Glyph glyph, FT_Byte *p, FT_Byte *limit) |
static FT_Error | pfr_glyph_load_compound (PFR_Glyph glyph, FT_Byte *p, FT_Byte *limit) |
static FT_Error | pfr_glyph_load_rec (PFR_Glyph glyph, FT_Stream stream, FT_ULong gps_offset, FT_ULong offset, FT_ULong size) |
pfr_glyph_load (PFR_Glyph glyph, FT_Stream stream, FT_ULong gps_offset, FT_ULong offset, FT_ULong size) |
#define FT_COMPONENT trace_pfr |
Definition at line 27 of file pfrgload.c.
static void pfr_glyph_close_contour | ( | PFR_Glyph | glyph | ) | [static] |
Definition at line 79 of file pfrgload.c.
References FT_Outline_::contours, PFR_GlyphRec_::loader, FT_Outline_::n_contours, FT_Outline_::n_points, p1(), p2(), PFR_GlyphRec_::path_begun, FT_Outline_::points, and short.
Referenced by pfr_glyph_end(), and pfr_glyph_move_to().
static FT_Error pfr_glyph_curve_to | ( | PFR_Glyph | glyph, | |
FT_Vector * | control1, | |||
FT_Vector * | control2, | |||
FT_Vector * | to | |||
) | [static] |
Definition at line 161 of file pfrgload.c.
References error, FT_CURVE_TAG_CUBIC, FT_CURVE_TAG_ON, FT_ERROR, FT_GLYPHLOADER_CHECK_POINTS, PFR_GlyphRec_::loader, FT_Outline_::n_points, PFR_GlyphRec_::path_begun, FT_Outline_::points, and FT_Outline_::tags.
Referenced by pfr_glyph_load_simple().
pfr_glyph_done | ( | PFR_Glyph | glyph | ) |
static void pfr_glyph_end | ( | PFR_Glyph | glyph | ) | [static] |
Definition at line 226 of file pfrgload.c.
References FT_GlyphLoader_Add(), PFR_GlyphRec_::loader, and pfr_glyph_close_contour().
Referenced by pfr_glyph_load_simple().
pfr_glyph_init | ( | PFR_Glyph | glyph, | |
FT_GlyphLoader | loader | |||
) |
Definition at line 40 of file pfrgload.c.
References FT_GlyphLoader_Rewind(), and FT_ZERO.
Referenced by pfr_slot_init().
Definition at line 127 of file pfrgload.c.
References error, FT_CURVE_TAG_ON, FT_ERROR, FT_GLYPHLOADER_CHECK_POINTS, PFR_GlyphRec_::loader, n, FT_Outline_::n_points, PFR_GlyphRec_::path_begun, FT_Outline_::points, and FT_Outline_::tags.
Referenced by pfr_glyph_load_simple(), and pfr_glyph_move_to().
pfr_glyph_load | ( | PFR_Glyph | glyph, | |
FT_Stream | stream, | |||
FT_ULong | gps_offset, | |||
FT_ULong | offset, | |||
FT_ULong | size | |||
) |
Definition at line 812 of file pfrgload.c.
References FT_GlyphLoader_Rewind(), and pfr_glyph_load_rec().
Referenced by pfr_slot_load().
Definition at line 557 of file pfrgload.c.
References error, flags, FT_ERROR, FT_RENEW_ARRAY, PFR_SubGlyphRec_::gps_offset, PFR_SubGlyphRec_::gps_size, i, RooFitShortHand::L(), PFR_GlyphRec_::loader, PFR_GlyphRec_::max_subs, PFR_GlyphRec_::num_subs, PFR_CHECK, pfr_extra_items_skip(), PFR_GLYPH_EXTRA_ITEMS, PFR_GLYPH_IS_COMPOUND, PFR_NEXT_BYTE, PFR_NEXT_INT8, PFR_NEXT_LONG, PFR_NEXT_SHORT, PFR_NEXT_USHORT, PFR_SUBGLYPH_2BYTE_SIZE, PFR_SUBGLYPH_3BYTE_OFFSET, PFR_SUBGLYPH_XSCALE, PFR_SUBGLYPH_YSCALE, PFR_GlyphRec_::subs, PFR_SubGlyphRec_::x_delta, PFR_SubGlyphRec_::x_scale, PFR_SubGlyphRec_::y_delta, and PFR_SubGlyphRec_::y_scale.
Referenced by pfr_glyph_load_rec().
static FT_Error pfr_glyph_load_rec | ( | PFR_Glyph | glyph, | |
FT_Stream | stream, | |||
FT_ULong | gps_offset, | |||
FT_ULong | offset, | |||
FT_ULong | size | |||
) | [static] |
Definition at line 709 of file pfrgload.c.
References error, FT_FRAME_ENTER, FT_FRAME_EXIT, FT_MulFix(), FT_STREAM_SEEK, PFR_SubGlyphRec_::gps_offset, PFR_SubGlyphRec_::gps_size, i, if(), PFR_GlyphRec_::loader, n, FT_Outline_::n_points, PFR_GlyphRec_::num_subs, p, PFR_GLYPH_IS_COMPOUND, pfr_glyph_load_compound(), pfr_glyph_load_simple(), FT_Outline_::points, PC3::stream(), PFR_GlyphRec_::subs, FT_Vector_::x, x10000L, PFR_SubGlyphRec_::x_delta, PFR_SubGlyphRec_::x_scale, FT_Vector_::y, PFR_SubGlyphRec_::y_delta, and PFR_SubGlyphRec_::y_scale.
Referenced by pfr_glyph_load().
Definition at line 247 of file pfrgload.c.
References error, flags, FT_ERROR, FT_PAD_CEIL, FT_RENEW_ARRAY, FT_TRACE6, FT_TRACE7, i, PFR_GlyphRec_::loader, mask, PFR_GlyphRec_::max_xy_control, n, PFR_CHECK, pfr_extra_items_skip(), PFR_GLYPH_1BYTE_XYCOUNT, pfr_glyph_curve_to(), pfr_glyph_end(), PFR_GLYPH_EXTRA_ITEMS, PFR_GLYPH_IS_COMPOUND, pfr_glyph_line_to(), pfr_glyph_move_to(), pfr_glyph_start(), PFR_GLYPH_XCOUNT, PFR_GLYPH_YCOUNT, PFR_NEXT_BYTE, PFR_NEXT_INT8, PFR_NEXT_SHORT, FT_Vector_::x, x, PFR_GlyphRec_::x_control, FT_Vector_::y, and PFR_GlyphRec_::y_control.
Referenced by pfr_glyph_load_rec().
Definition at line 202 of file pfrgload.c.
References error, FT_GLYPHLOADER_CHECK_POINTS, PFR_GlyphRec_::loader, PFR_GlyphRec_::path_begun, pfr_glyph_close_contour(), and pfr_glyph_line_to().
Referenced by pfr_glyph_load_simple().
static void pfr_glyph_start | ( | PFR_Glyph | glyph | ) | [static] |
Definition at line 120 of file pfrgload.c.
References PFR_GlyphRec_::path_begun.
Referenced by pfr_glyph_load_simple().