|
gpforge
An advanced bitmap font editor
|
The lint checks. More...
#include "font.h"Go to the source code of this file.
Data Structures | |
| struct | gpf_lint_finding |
| A linter finding. More... | |
Enumerations | |
| enum | gpf_lint_severity { GPF_LINT_ERROR , GPF_LINT_WARN } |
| Linter severity. More... | |
Functions | |
| struct gpf_lint_finding * | gpf_lint (struct gpf_font *font) |
| Runs linter on a font. | |
| int | gpf_lint_glyph (struct gpf_font *font, enum gpf_variant_id id, uint32_t code, struct gpf_lint_finding *out) |
| Runs a linter for a single glyph. | |
| const char * | gpf_lint_severity_name (enum gpf_lint_severity sev) |
| Returns severity name. | |
The lint checks.
Linter checks for the glyphs. E.g. ink that leaves a monospace cell, an advance that disagrees with the variant, a glyph the base variant has not got.
Definition in file lint.h.
| enum gpf_lint_severity |
| struct gpf_lint_finding * gpf_lint | ( | struct gpf_font * | font | ) |
Runs linter on a font.
Every finding in the font, as a gp_vec sorted by variant and then by codepoint. Free it with gp_vec_free().
| font | A font to run linter for. |
Definition at line 244 of file lint.c.
References GPF_VARIANTS.
| int gpf_lint_glyph | ( | struct gpf_font * | font, |
| enum gpf_variant_id | id, | ||
| uint32_t | code, | ||
| struct gpf_lint_finding * | out ) |
Runs a linter for a single glyph.
The first finding for one glyph, or non zero when it has none.
| font | A font to run the linter for. |
| id | A glyph variant to run the linter for. |
| code | A unicode code point of the glyph. |
| out | Where to store the finding, if there was one. |
| const char * gpf_lint_severity_name | ( | enum gpf_lint_severity | sev | ) |
Returns severity name.
| sev | A severity level. |
Definition at line 288 of file lint.c.
References GPF_LINT_ERROR, GPF_LINT_WARN, and gpf_lint_finding::sev.