#include <ft2build.h>
#include "ttsbit.h"
#include "sferrors.h"
Go to the source code of this file.
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 |
tt_face_free_eblc | ( | TT_Face | face | ) |
Definition at line 43 of file ttsbit0.c.
References error, FT_ERROR, FT_FRAME_EXTRACT, FT_FRAME_RELEASE, FT_NEXT_ULONG, FT_TRACE3, p, TTAG_bloc, TTAG_EBLC, and version.
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 | |||
) |
Definition at line 985 of file ttsbit0.c.
References error, FT_UNUSED, tt_sbit_decoder_done(), tt_sbit_decoder_init(), and tt_sbit_decoder_load_image().
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] |
Definition at line 250 of file ttsbit0.c.
References TT_SBitDecoderRec_::bit_depth, TT_SBitDecoderRec_::bitmap, TT_SBitDecoderRec_::bitmap_allocated, error, TT_SBitDecoderRec_::face, ft_glyphslot_alloc_bitmap(), FT_PIXEL_MODE_GRAY, FT_PIXEL_MODE_GRAY2, FT_PIXEL_MODE_GRAY4, FT_PIXEL_MODE_MONO, FT_FaceRec_::glyph, TT_SBit_MetricsRec_::height, height, int, TT_SBitDecoderRec_::metrics, TT_SBitDecoderRec_::metrics_loaded, FT_Bitmap_::pitch, FT_Bitmap_::pixel_mode, TT_FaceRec_::root, FT_Bitmap_::rows, size, FT_Bitmap_::width, TT_SBit_MetricsRec_::width, and width.
Referenced by tt_sbit_decoder_load_bit_aligned(), tt_sbit_decoder_load_byte_aligned(), and tt_sbit_decoder_load_compound().
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_init | ( | TT_SBitDecoder | decoder, | |
TT_Face | face, | |||
FT_ULong | strike_index, | |||
TT_SBit_MetricsRec * | metrics | |||
) | [static] |
Definition at line 182 of file ttsbit0.c.
References TT_SBitDecoderRec_::bit_depth, TT_SBitDecoderRec_::bitmap, TT_SBitDecoderRec_::bitmap_allocated, TT_SBitDecoderRec_::ebdt_size, TT_SBitDecoderRec_::ebdt_start, TT_SBitDecoderRec_::eblc_base, TT_SBitDecoderRec_::eblc_limit, error, TT_SBitDecoderRec_::face, FT_NEXT_ULONG, FT_STREAM_POS, metrics(), TT_SBitDecoderRec_::metrics, TT_SBitDecoderRec_::metrics_loaded, p, TT_SBitDecoderRec_::stream, PC3::stream(), TT_SBitDecoderRec_::strike_index_array, TT_SBitDecoderRec_::strike_index_count, TTAG_bdat, and TTAG_EBDT.
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] |
Definition at line 508 of file ttsbit0.c.
References TT_SBitDecoderRec_::bitmap, TT_SBitDecoderRec_::bitmap_allocated, FT_Bitmap_::buffer, error, h, TT_SBit_MetricsRec_::height, height, line, TT_SBitDecoderRec_::metrics, nbits, FT_Bitmap_::pitch, FT_Bitmap_::rows, tt_sbit_decoder_alloc_bitmap(), w, FT_Bitmap_::width, TT_SBit_MetricsRec_::width, width, and write.
Referenced by tt_sbit_decoder_load_bitmap().
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] |
Definition at line 695 of file ttsbit0.c.
References data, TT_SBitDecoderRec_::ebdt_size, TT_SBitDecoderRec_::ebdt_start, error, FT_FRAME_EXTRACT, FT_FRAME_RELEASE, FT_STREAM_SEEK, p, TT_SBitDecoderRec_::stream, PC3::stream(), tt_sbit_decoder_load_bit_aligned(), tt_sbit_decoder_load_byte_aligned(), tt_sbit_decoder_load_compound(), and tt_sbit_decoder_load_metrics().
Referenced by tt_sbit_decoder_load_image().
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] |
Definition at line 370 of file ttsbit0.c.
References TT_SBitDecoderRec_::bitmap, TT_SBitDecoderRec_::bitmap_allocated, FT_Bitmap_::buffer, error, h, TT_SBit_MetricsRec_::height, height, line, TT_SBitDecoderRec_::metrics, FT_Bitmap_::pitch, FT_Bitmap_::rows, tt_sbit_decoder_alloc_bitmap(), w, FT_Bitmap_::width, TT_SBit_MetricsRec_::width, width, and write.
Referenced by tt_sbit_decoder_load_bitmap().
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] |
Definition at line 631 of file ttsbit0.c.
References TT_SBitDecoderRec_::bitmap, TT_SBitDecoderRec_::bitmap_allocated, error, FT_NEXT_BYTE, FT_NEXT_USHORT, TT_SBit_MetricsRec_::height, TT_SBit_MetricsRec_::horiAdvance, TT_SBit_MetricsRec_::horiBearingX, TT_SBit_MetricsRec_::horiBearingY, TT_SBitDecoderRec_::metrics, FT_Bitmap_::rows, tt_sbit_decoder_alloc_bitmap(), tt_sbit_decoder_load_image(), TT_SBit_MetricsRec_::vertAdvance, TT_SBit_MetricsRec_::vertBearingX, TT_SBit_MetricsRec_::vertBearingY, FT_Bitmap_::width, and TT_SBit_MetricsRec_::width.
Referenced by tt_sbit_decoder_load_bitmap().
static FT_Error tt_sbit_decoder_load_image | ( | TT_SBitDecoder | decoder, | |
FT_UInt | glyph_index, | |||
FT_Int | x_pos, | |||
FT_Int | y_pos | |||
) | [static] |
Definition at line 789 of file ttsbit0.c.
References TT_SBitDecoderRec_::eblc_base, TT_SBitDecoderRec_::eblc_limit, FT_NEXT_ULONG, FT_NEXT_USHORT, FT_PEEK_USHORT, p, start, TT_SBitDecoderRec_::strike_index_array, TT_SBitDecoderRec_::strike_index_count, tt_sbit_decoder_load_bitmap(), and tt_sbit_decoder_load_metrics().
Referenced by tt_face_load_sbit_image(), and tt_sbit_decoder_load_compound().
static FT_Error tt_sbit_decoder_load_metrics | ( | TT_SBitDecoder | decoder, | |
FT_Byte ** | pp, | |||
FT_Byte * | limit, | |||
FT_Bool | big | |||
) | [static] |
Definition at line 315 of file ttsbit0.c.
References metrics(), TT_SBitDecoderRec_::metrics, TT_SBitDecoderRec_::metrics_loaded, and p.
Referenced by tt_sbit_decoder_load_bitmap(), and tt_sbit_decoder_load_image().