diff options
-rw-r--r-- | src/font.c | 12 | ||||
-rw-r--r-- | src/font.h | 6 |
2 files changed, 18 insertions, 0 deletions
@@ -54,3 +54,15 @@ font_find(const char *name) } return (struct font *) fonts[0]; } + +int +font_get_width(struct font *font) +{ + return font->desc.width; +} + +int +font_get_height(struct font *font) +{ + return font->desc.height; +} @@ -29,4 +29,10 @@ struct font * font_find(const char *name) __attribute__((pure)); +int +font_get_width(struct font *font) __attribute__((pure)); + +int +font_get_height(struct font *font) __attribute__((pure)); + #endif /* FONT_H */ |