zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ttsbit0.c File Reference
#include <ft2build.h>
#include <FT_INTERNAL_DEBUG_H>
#include <FT_INTERNAL_STREAM_H>
#include <FT_TRUETYPE_TAGS_H>
#include "ttsbit.h"
#include "sferrors.h"

Go to the source code of this file.

Macros

#define FT_COMPONENT   trace_ttsbit
 

Typedefs

typedef struct TT_SBitDecoderRec_ * TT_SBitDecoder
 
typedef FT_Error(* TT_SBitDecoder_LoadFunc )(TT_SBitDecoder decoder, FT_Byte *p, FT_Byte *plimit, FT_Int x_pos, FT_Int y_pos)
 
typedef struct TT_SBitDecoderRec_ TT_SBitDecoderRec
 

Functions

 tt_face_free_eblc (TT_Face face)
 
 tt_face_load_eblc (TT_Face face, FT_Stream stream)
 
 tt_face_load_sbit_image (TT_Face face, FT_ULong strike_index, FT_UInt glyph_index, FT_UInt load_flags, FT_Stream stream, FT_Bitmap *map, TT_SBit_MetricsRec *metrics)
 
 tt_face_load_strike_metrics (TT_Face face, FT_ULong strike_index, FT_Size_Metrics *metrics)
 
 tt_face_set_sbit_strike (TT_Face face, FT_Size_Request req, FT_ULong *astrike_index)
 
static FT_Error tt_sbit_decoder_alloc_bitmap (TT_SBitDecoder decoder)
 
static void tt_sbit_decoder_done (TT_SBitDecoder decoder)
 
static FT_Error tt_sbit_decoder_init (TT_SBitDecoder decoder, TT_Face face, FT_ULong strike_index, TT_SBit_MetricsRec *metrics)
 
static FT_Error tt_sbit_decoder_load_bit_aligned (TT_SBitDecoder decoder, FT_Byte *p, FT_Byte *limit, FT_Int x_pos, FT_Int y_pos)
 
static FT_Error tt_sbit_decoder_load_bitmap (TT_SBitDecoder decoder, FT_UInt glyph_format, FT_ULong glyph_start, FT_ULong glyph_size, FT_Int x_pos, FT_Int y_pos)
 
static FT_Error tt_sbit_decoder_load_byte_aligned (TT_SBitDecoder decoder, FT_Byte *p, FT_Byte *limit, FT_Int x_pos, FT_Int y_pos)
 
static FT_Error tt_sbit_decoder_load_compound (TT_SBitDecoder decoder, FT_Byte *p, FT_Byte *limit, FT_Int x_pos, FT_Int y_pos)
 
static FT_Error tt_sbit_decoder_load_image (TT_SBitDecoder decoder, FT_UInt glyph_index, FT_Int x_pos, FT_Int y_pos)
 
static FT_Error tt_sbit_decoder_load_metrics (TT_SBitDecoder decoder, FT_Byte **pp, FT_Byte *limit, FT_Bool big)
 

Macro Definition Documentation

#define FT_COMPONENT   trace_ttsbit

Definition at line 39 of file ttsbit0.c.

Typedef Documentation

typedef struct TT_SBitDecoderRec_ * TT_SBitDecoder
typedef FT_Error(* TT_SBitDecoder_LoadFunc)(TT_SBitDecoder decoder, FT_Byte *p, FT_Byte *plimit, FT_Int x_pos, FT_Int y_pos)

Definition at line 362 of file ttsbit0.c.

typedef struct TT_SBitDecoderRec_ TT_SBitDecoderRec

Function Documentation

tt_face_free_eblc ( TT_Face  face)

Definition at line 110 of file ttsbit0.c.

References FT_FRAME_RELEASE.

tt_face_load_eblc ( TT_Face  face,
FT_Stream  stream 
)
tt_face_load_sbit_image ( TT_Face  face,
FT_ULong  strike_index,
FT_UInt  glyph_index,
FT_UInt  load_flags,
FT_Stream  stream,
FT_Bitmap map,
TT_SBit_MetricsRec metrics 
)
tt_face_load_strike_metrics ( TT_Face  face,
FT_ULong  strike_index,
FT_Size_Metrics metrics 
)

Definition at line 131 of file ttsbit0.c.

tt_face_set_sbit_strike ( TT_Face  face,
FT_Size_Request  req,
FT_ULong astrike_index 
)

Definition at line 122 of file ttsbit0.c.

References FT_Match_Size().

static void tt_sbit_decoder_done ( TT_SBitDecoder  decoder)
static

Definition at line 243 of file ttsbit0.c.

References FT_UNUSED.

Referenced by tt_face_load_sbit_image().

static FT_Error tt_sbit_decoder_load_bit_aligned ( TT_SBitDecoder  decoder,
FT_Byte p,
FT_Byte limit,
FT_Int  x_pos,
FT_Int  y_pos 
)
static
static FT_Error tt_sbit_decoder_load_bitmap ( TT_SBitDecoder  decoder,
FT_UInt  glyph_format,
FT_ULong  glyph_start,
FT_ULong  glyph_size,
FT_Int  x_pos,
FT_Int  y_pos 
)
static
static FT_Error tt_sbit_decoder_load_byte_aligned ( TT_SBitDecoder  decoder,
FT_Byte p,
FT_Byte limit,
FT_Int  x_pos,
FT_Int  y_pos 
)
static
static FT_Error tt_sbit_decoder_load_compound ( TT_SBitDecoder  decoder,
FT_Byte p,
FT_Byte limit,
FT_Int  x_pos,
FT_Int  y_pos 
)
static
static FT_Error tt_sbit_decoder_load_image ( TT_SBitDecoder  decoder,
FT_UInt  glyph_index,
FT_Int  x_pos,
FT_Int  y_pos 
)
static