Data Fields

hpgs_font_st Struct Reference

A truetype font. More...

#include <hpgsfont.h>

Data Fields

hpgs_istreamis
hpgs_font_header header
hpgs_font_head_data head_data
hpgs_font_hhea_data hhea_data
hpgs_font_maxp_data maxp_data
hpgs_font_longHorMetricshmtx_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_pairkern_data
size_t kern_data_sz
int * glyph_cache_positions
size_t n_cached_glyphs
hpgs_font_glyph_dataglyph_cache
hpgs_mutex_t mutex
size_t nref

Detailed Description

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.


Field Documentation

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 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().

The size of the kern table.

The loca table.

Referenced by hpgs_destroy_font().

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().

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().


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines