|
gpforge
An advanced bitmap font editor
|
Compiles a gfxprim font face from an in-memory gpf font. More...
Go to the source code of this file.
Functions | |
| gp_font_face * | gpf_face_build (struct gpf_font *font, enum gpf_variant_id id) |
| Builds a gfxprim font face from one variant of a gpf_font. | |
| void | gpf_face_free (gp_font_face *self) |
| Frees a font face. | |
Compiles a gfxprim font face from an in-memory gpf font.
Compiles a resolved variant into a gfxprim font face, so that the preview is drawn by gfxprim itself and is exactly what a consumer would render.
Definition in file face.h.
| gp_font_face * gpf_face_build | ( | struct gpf_font * | font, |
| enum gpf_variant_id | id ) |
Builds a gfxprim font face from one variant of a gpf_font.
| font | A font. |
| id | A font variant to build, e.g. GPF_BOLD. |
Definition at line 114 of file face.c.
References gpf_family_meta::ascent, gpf_family_meta::cap_height, gpf_family_meta::ch_width, gpf_family_meta::descent, gpf_family_meta::em, gpf_family_meta::family, GPF_BOLD, GPF_BOLD_MONO, gpf_font_codes(), GPF_MONO, gpf_family_meta::line_gap, gpf_font::meta, gpf_family_meta::overline_pos, gpf_family_meta::overline_thickness, gpf_family_meta::strike_pos, gpf_family_meta::strike_thickness, gpf_family_meta::underline_pos, gpf_family_meta::underline_thickness, and gpf_family_meta::x_height.