#include <ft2build.h>#include "bdf.h"#include "bdfdrivr.h"#include "bdferror.h"Go to the source code of this file.
| #define FT_COMPONENT trace_bdfdriver |
Definition at line 50 of file bdfdrivr.c.
| typedef struct BDF_CMapRec_ * BDF_CMap |
| typedef struct BDF_CMapRec_ BDF_CMapRec |
Definition at line 90 of file bdfdrivr.c.
References BDF_CMapRec_::encodings, max, min, BDF_CMapRec_::num_encodings, and result().
Definition at line 129 of file bdfdrivr.c.
References BDF_CMapRec_::encodings, FT_TRACE1, max, min, BDF_CMapRec_::num_encodings, and result().
| bdf_cmap_done | ( | FT_CMap | bdfcmap | ) |
Definition at line 79 of file bdfdrivr.c.
References BDF_CMapRec_::encodings, NULL, and BDF_CMapRec_::num_encodings.
| bdf_cmap_init | ( | FT_CMap | bdfcmap, | |
| FT_Pointer | init_data | |||
| ) |
Definition at line 63 of file bdfdrivr.c.
References BDF_CMapRec_::encodings, FT_CMAP_FACE, FT_UNUSED, and BDF_CMapRec_::num_encodings.
| bdf_driver_requester | ( | FT_Module | module, | |
| const char * | name | |||
| ) |
Definition at line 824 of file bdfdrivr.c.
References bdf_services, ft_service_list_lookup(), and FT_UNUSED.
| BDF_Face_Done | ( | FT_Face | bdfface | ) |
Definition at line 311 of file bdfdrivr.c.
References bdf_free_font(), FT_FACE_MEMORY, FT_FREE, and FT_TRACE4.
| BDF_Face_Init | ( | FT_Stream | stream, | |
| FT_Face | bdfface, | |||
| FT_Int | face_index, | |||
| FT_Int | num_params, | |||
| FT_Parameter * | params | |||
| ) |
Definition at line 340 of file bdfdrivr.c.
References bdf_property_t_::atom, BDF_ATOM, bdf_cmap_class, bdf_get_font_property(), bdf_interpret_style(), bdf_load_font(), BDF_PROPORTIONAL, bsize, bdf_options_t_::correct_metrics, bdf_font_t_::default_char, bdf_glyph_t_::encoding, FT_CharMapRec_::encoding, FT_CharMapRec_::encoding_id, error, FT_CharMapRec_::face, bdf_font_t_::font_ascent, bdf_font_t_::font_descent, bdf_options_t_::font_spacing, bdf_property_t_::format, FT_Bool, FT_CMap_New(), FT_ENCODING_ADOBE_STANDARD, FT_ENCODING_NONE, FT_ENCODING_UNICODE, FT_FACE, FT_FACE_FLAG_FAST_GLYPHS, FT_FACE_FLAG_FIXED_SIZES, FT_FACE_FLAG_FIXED_WIDTH, FT_FACE_FLAG_HORIZONTAL, FT_FACE_MEMORY, FT_MEM_ZERO, FT_NEW_ARRAY, FT_Pos, ft_strcmp, FT_STRDUP, FT_STREAM_SEEK, FT_TRACE1, FT_TRACE2, FT_TRACE4, FT_UINT_MAX, FT_UNUSED, bdf_font_t_::glyphs, bdf_font_t_::glyphs_size, bdf_font_t_::glyphs_used, if(), bdf_options_t_::keep_comments, bdf_options_t_::keep_unencoded, RooFitShortHand::L(), bdf_property_t_::l, n, NULL, FT_CharMapRec_::platform_id, s, bdf_font_t_::unencoded_size, bdf_font_t_::unencoded_used, and bdf_property_t_::value.
| static FT_Error bdf_get_bdf_property | ( | BDF_Face | face, | |
| const char * | prop_name, | |||
| BDF_PropertyRec * | aproperty | |||
| ) | [static] |
Definition at line 740 of file bdfdrivr.c.
References BDF_PropertyRec_::atom, bdf_property_t_::atom, BDF_ATOM, BDF_CARDINAL, bdf_get_font_property(), BDF_INTEGER, BDF_PROPERTY_TYPE_ATOM, BDF_PROPERTY_TYPE_CARDINAL, BDF_PROPERTY_TYPE_INTEGER, BDF_PropertyRec_::cardinal, bdf_property_t_::format, FT_ASSERT, FT_TRACE1, if(), BDF_PropertyRec_::integer, bdf_property_t_::l, BDF_PropertyRec_::type, BDF_PropertyRec_::u, bdf_property_t_::ul, and bdf_property_t_::value.
| static FT_Error bdf_get_charset_id | ( | BDF_Face | face, | |
| const char ** | acharset_encoding, | |||
| const char ** | acharset_registry | |||
| ) | [static] |
Definition at line 791 of file bdfdrivr.c.
| BDF_Glyph_Load | ( | FT_GlyphSlot | slot, | |
| FT_Size | size, | |||
| FT_UInt | glyph_index, | |||
| FT_Int32 | load_flags | |||
| ) |
Definition at line 653 of file bdfdrivr.c.
References bdf_bbx_t_::ascent, bdf_font_t_::bbx, bdf_glyph_t_::bbx, BDF_FaceRec_::bdffont, bdf_glyph_t_::bitmap, bdf_font_t_::bpp, bdf_glyph_t_::bpr, BDF_FaceRec_::default_glyph, bdf_glyph_t_::dwidth, error, FT_FACE, FT_GLYPH_FORMAT_BITMAP, ft_glyphslot_set_bitmap(), FT_PIXEL_MODE_GRAY, FT_PIXEL_MODE_GRAY2, FT_PIXEL_MODE_GRAY4, FT_PIXEL_MODE_MONO, FT_SIZE_FACE, ft_synthesize_vertical_metrics(), FT_TRACE1, FT_UNUSED, bdf_font_t_::glyphs, bdf_bbx_t_::height, int, FT_Bitmap_::num_grays, FT_Bitmap_::pitch, FT_Bitmap_::pixel_mode, FT_Bitmap_::rows, FT_Bitmap_::width, bdf_bbx_t_::width, and bdf_bbx_t_::x_offset.
Definition at line 198 of file bdfdrivr.c.
References bdf_property_t_::atom, BDF_ATOM, bdf_get_font_property(), BDF_FaceRec_::bdffont, error, bdf_property_t_::format, FT_ALLOC, FT_FACE, ft_memcpy, ft_strlen, FT_STYLE_FLAG_BOLD, FT_STYLE_FLAG_ITALIC, len, NULL, s, size_t, and bdf_property_t_::value.
Referenced by BDF_Face_Init().
| BDF_Size_Request | ( | FT_Size | size, | |
| FT_Size_Request | req | |||
| ) |
Definition at line 613 of file bdfdrivr.c.
References BDF_Size_Select(), bsize, error, bdf_font_t_::font_ascent, bdf_font_t_::font_descent, FT_REQUEST_HEIGHT, FT_SIZE_REQUEST_TYPE_NOMINAL, FT_SIZE_REQUEST_TYPE_REAL_DIM, and height.
Definition at line 596 of file bdfdrivr.c.
References bdf_font_t_::bbx, bdf_font_t_::font_ascent, bdf_font_t_::font_descent, FT_Select_Metrics(), and bdf_bbx_t_::width.
Referenced by BDF_Size_Request().
| FT_CALLBACK_TABLE_DEF const FT_CMap_ClassRec bdf_cmap_class |
Initial value:
{
sizeof ( BDF_CMapRec ),
bdf_cmap_init,
bdf_cmap_done,
bdf_cmap_char_index,
bdf_cmap_char_next,
NULL, NULL, NULL, NULL, NULL
}
Definition at line 185 of file bdfdrivr.c.
Referenced by BDF_Face_Init().
| FT_CALLBACK_TABLE_DEF const FT_Driver_ClassRec bdf_driver_class |
Definition at line 835 of file bdfdrivr.c.
const FT_Service_BDFRec bdf_service_bdf [static] |
Initial value:
Definition at line 802 of file bdfdrivr.c.
const FT_ServiceDescRec bdf_services[] [static] |
Initial value:
{
{ FT_SERVICE_ID_BDF, &bdf_service_bdf },
{ FT_SERVICE_ID_XF86_NAME, FT_XF86_FORMAT_BDF },
{ NULL, NULL }
}
Definition at line 815 of file bdfdrivr.c.
Referenced by bdf_driver_requester().
1.5.1