![]() | ![]() | ![]() | [Insert name here] Reference Manual | ![]() |
---|
afm-font-database —
struct AfmFontChar; struct AfmFontInfo; struct AfmFontDatabase; struct AfmFontExtents; AfmFontDatabase* afm_font_database_global (void); AfmFontInfo* afm_font_database_peek_info (AfmFontDatabase *db, PangoFontDescription *description); void afm_font_info_get_extents (AfmFontInfo *info, double point_size, const char *text, gssize len, AfmFontExtents *extents_out); void afm_font_database_destroy (AfmFontDatabase *db); AfmFontDatabase* afm_font_database_parse_files (unsigned n_filenames, char **filenames);
struct AfmFontChar { gunichar unicode; double width; double glyph_x, glyph_y; double glyph_width, glyph_height; };
struct AfmFontInfo { char *font_name; double x_height, ascender; double width; double descender; /* a positive value */ unsigned n_chars; AfmFontChar *chars; /* sorted by unicode value */ /* TODO: kerning pairs */ };
struct AfmFontExtents { double logical_width, logical_height; double glyph_x, glyph_y; double glyph_width, glyph_height; };
AfmFontInfo* afm_font_database_peek_info (AfmFontDatabase *db, PangoFontDescription *description);
db: | |
description: | |
Returns : |
void afm_font_info_get_extents (AfmFontInfo *info, double point_size, const char *text, gssize len, AfmFontExtents *extents_out);
info: | |
point_size: | |
text: | |
len: | |
extents_out: |
<< GraphfView3D | gc-cache >> |