summaryrefslogtreecommitdiff
path: root/src/gui/font.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/font.h')
-rw-r--r--src/gui/font.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/font.h b/src/gui/font.h
index 2aff8b1a..d965b418 100644
--- a/src/gui/font.h
+++ b/src/gui/font.h
@@ -38,6 +38,10 @@ int ui_font_raster(UIFont *f, float px, int32_t cp, 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);
+
void ui_font_free(UIFont *f);
#ifdef __cplusplus