A truetype font. More...
#include <hpgsfont.h>
Data Fields | |
hpgs_istream * | is |
hpgs_font_header | header |
hpgs_font_head_data | head_data |
hpgs_font_hhea_data | hhea_data |
hpgs_font_maxp_data | maxp_data |
hpgs_font_longHorMetrics * | hmtx_data |
uint32_t * | loca_data |
size_t | loca_data_sz |
hpgs_font_cmap_data | cmap_data |
hpgs_font_post_data | post_data |
hpgs_font_kern_pair * | kern_data |
size_t | kern_data_sz |
int * | glyph_cache_positions |
size_t | n_cached_glyphs |
hpgs_font_glyph_data * | glyph_cache |
hpgs_mutex_t | mutex |
size_t | nref |
A truetype font.
This structure holds all details for operating on a truetype font file. The font file is kept open by the font object during it's lifetime, since we operate on the font file like on a database.
The cmap table.
Referenced by hpgs_destroy_font().
The cached glyphs. This array has a dimension of maxp_data.numGlyphs.
Referenced by hpgs_destroy_font().
The position of an individual glyph in glyph_cache
or -1, if the glyph has not been cached yet. This array has a dimension of maxp_data.numGlyphs
Referenced by hpgs_destroy_font().
The head table.
Referenced by hpgs_font_decompose_utf8(), hpgs_font_get_ascent(), hpgs_font_get_descent(), hpgs_font_get_glyph_metrics(), hpgs_font_get_line_gap(), and hpgs_font_get_utf8_metrics().
The hhea table.
Referenced by hpgs_font_get_ascent(), hpgs_font_get_descent(), and hpgs_font_get_line_gap().
The hmtx table. This array has a dimension of maxp_data.numGlyphs.
Referenced by hpgs_destroy_font(), hpgs_font_decompose_utf8(), hpgs_font_get_glyph_metrics(), and hpgs_font_get_utf8_metrics().
The input stream to operate on.
Referenced by hpgs_destroy_font().
size_t hpgs_font_st::kern_data_sz |
The size of the kern table.
uint32_t* hpgs_font_st::loca_data |
The loca table.
Referenced by hpgs_destroy_font().
size_t hpgs_font_st::loca_data_sz |
The size of the loca table.
The maxp table.
Referenced by hpgs_font_get_glyph_count(), and hpgs_font_get_glyph_metrics().
hpgs_mutex_t hpgs_font_st::mutex |
The mutex to protec glyph access and reference counting.
Referenced by hpgs_destroy_font(), and hpgs_find_font().
The number of actually cached glyphs.
Referenced by hpgs_destroy_font().
size_t hpgs_font_st::nref |
The reference count.
Referenced by hpgs_destroy_font(), and hpgs_find_font().
The post table.
Referenced by hpgs_destroy_font(), and hpgs_font_get_glyph_name().