summaryrefslogtreecommitdiff
path: root/src/libsystemd-terminal/unifont.h
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-10-01 11:24:08 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2014-10-02 08:40:43 +0200
commitfa9653457302c106f8d47060ef3dda2b4c8038a8 (patch)
treedc9e6d240de9153717b63c77b661baf58892c5ee /src/libsystemd-terminal/unifont.h
parentc2977e5cb874e696994bcb93b8148f52c315b901 (diff)
terminal: add unifont_get_width/height()
Allow unifont users to retrieve the width and height of unifont glyphs. In version 1 this is hard-coded as 8/16, but may be changed in the future.
Diffstat (limited to 'src/libsystemd-terminal/unifont.h')
-rw-r--r--src/libsystemd-terminal/unifont.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd-terminal/unifont.h b/src/libsystemd-terminal/unifont.h
index c39512d2c6..0ded61472f 100644
--- a/src/libsystemd-terminal/unifont.h
+++ b/src/libsystemd-terminal/unifont.h
@@ -50,5 +50,7 @@ unifont *unifont_unref(unifont *u);
DEFINE_TRIVIAL_CLEANUP_FUNC(unifont*, unifont_unref);
+unsigned int unifont_get_width(unifont *u);
+unsigned int unifont_get_height(unifont *u);
unsigned int unifont_get_stride(unifont *u);
int unifont_lookup(unifont *u, unifont_glyph *out, uint32_t ucs4);