9#ifndef GPFORGE_RESOLVE_H
10#define GPFORGE_RESOLVE_H
The in-memory font model.
gpf_variant_id
Font face variant.
const char * gpf_provenance_name(enum gpf_provenance prov)
Returns provenance name.
void gpf_font_simplify(struct gpf_font *font)
Simplifies a font.
gpf_entry_form
The smallest form an entry can be written in on save.
@ GPF_ENTRY_METRICS
The ink is the parent's, only numbers differ.
@ GPF_ENTRY_INK
The ink differs, it has to be saved.
@ GPF_ENTRY_NONE
Identical to what the variant would derive, no entry needed.
int gpf_resolve_derived(struct gpf_font *font, enum gpf_variant_id id, uint32_t code, struct gpf_resolved *res)
Resolves a derived glyph variant metric and ink.
gpf_measure
The family metrics that are measured off the glyphs.
@ GPF_MEASURE_CH_WIDTH
The advance of the '0' glyph.
@ GPF_MEASURE_CAP_HEIGHT
The top of the 'H' ink above the baseline.
@ GPF_MEASURE_X_HEIGHT
The top of the 'x' ink above the baseline.
void gpf_resolved_clear(struct gpf_resolved *self)
Clears the resolved glyph.
int gpf_resolve(struct gpf_font *font, enum gpf_variant_id id, uint32_t code, struct gpf_resolved *res)
Resolves a glyph variant metric and ink.
gpf_provenance
Glyph provenance.
@ GPF_PROV_EMBOLDENED
The parent's ink, emboldened.
@ GPF_PROV_COMPOSED
Built from a base glyph and an accent.
@ GPF_PROV_BOLD_MONO
Bold taking a hand fixed glyph from bold-mono.
@ GPF_PROV_INHERITED
The parent's ink, the metrics may still be overridden.
@ GPF_PROV_STORED
The ink is stored in the variant itself.
uint32_t code
Unicode code point.
A resolved glyph and where it was drawn from.
enum gpf_variant_id ink_from
The variant the ink came from.
enum gpf_provenance prov
Where the glyph came from.
struct gpf_glyph glyph
Freshly allocated glyph with copied/generated ink.