diff options
Diffstat (limited to 'src/gui/font.h')
| -rw-r--r-- | src/gui/font.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/font.h b/src/gui/font.h index d965b418..4410bb7c 100644 --- a/src/gui/font.h +++ b/src/gui/font.h @@ -33,14 +33,16 @@ void ui_font_cell_metrics(UIFont *f, float px, int32_t *cell_w, int32_t *cell_h, // Rasterize `cp` into `out` as a hinted grayscale cell mask (`stride` bytes per // row). The origin is the baseline `ascent` pixels from the top. Pixels outside // the glyph are zero. Missing codepoints render the face's .notdef glyph. +// `bold` emboldens the outline before rendering (synthetic bold, same advance). // Returns 1 when the glyph produced coverage, 0 for blank/error. -int ui_font_raster(UIFont *f, float px, int32_t cp, uint8_t *out, +int ui_font_raster(UIFont *f, float px, int32_t cp, int bold, uint8_t *out, int32_t stride, int32_t cell_w, int32_t cell_h, int32_t ascent); // Center bitmap ink bounds, independent of advance and baseline bearings. -int ui_font_raster_centered(UIFont *f, float px, int32_t cp, uint8_t *out, - int32_t stride, int32_t width, int32_t height); +int ui_font_raster_centered(UIFont *f, float px, int32_t cp, int bold, + uint8_t *out, int32_t stride, int32_t width, + int32_t height); void ui_font_free(UIFont *f); |
