|
gpforge
An advanced bitmap font editor
|
BDF import, and BDF export. More...
#include "font.h"Go to the source code of this file.
Functions | |
| struct gpf_font * | gpf_bdf_read (const char *path, char *err, size_t err_len) |
| Reads a BDF font. | |
| int | gpf_bdf_write (struct gpf_font *font, enum gpf_variant_id id, FILE *f, char *err, size_t err_len) |
| Writes a BDF font. | |
BDF import, and BDF export.
Definition in file format_bdf.h.
| struct gpf_font * gpf_bdf_read | ( | const char * | path, |
| char * | err, | ||
| size_t | err_len ) |
Reads a BDF font.
| path | A path to the BDF font file. |
| err | A buffer to write an error into. |
| err_len | The size of the err buffer. |
Definition at line 333 of file format_bdf.c.
References gpf_family_meta::ascent, gpf_family_meta::default_glyph, gpf_family_meta::descent, gpf_family_meta::family, gpf_font_new(), GPF_MONO, GPF_REGULAR, gpf_font::meta, gpf_family_meta::size, and gpf_variant::spacing_mono.
| int gpf_bdf_write | ( | struct gpf_font * | font, |
| enum gpf_variant_id | id, | ||
| FILE * | f, | ||
| char * | err, | ||
| size_t | err_len ) |
Writes a BDF font.
Writes one variant of the font. A BDF file is one face, so which variant it is is the caller's decision, and the face is the resolved one.
| font | A font to be exported to BDF. |
| id | A variant id to be exported to BDF, e.g. GPF_BOLD. |
| f | A FILE to write the BDF font to. |
| err | A buffer to write an error into. |
| err_len | The size of the err buffer. |
Definition at line 621 of file format_bdf.c.
References gpf_family_meta::ascent, gpf_family_meta::default_glyph, gpf_family_meta::descent, gpf_family_meta::family, gpf_resolved::glyph, GPF_BOLD, GPF_BOLD_MONO, GPF_MONO, GPF_NAME_MAX, gpf_resolve(), gpf_resolved_clear(), gpf_variant::id, gpf_family_meta::license, gpf_font::meta, gpf_family_meta::size, gpf_variant::spacing_mono, and gpf_font::variants.