summaryrefslogtreecommitdiff
path: root/src/libsystemd-terminal/unifont.h
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-10-02 19:47:21 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2014-10-03 15:57:00 +0200
commit61d0326a5b1c11a8f2e8e31ec9093e81daa26588 (patch)
tree0a875cbd7d0b7c18f7b90c9aa804b2f7d375a727 /src/libsystemd-terminal/unifont.h
parentcb51a41fa632790ea839aa126844dfc2d74eb341 (diff)
terminal/unifont: add built-in fallback glyph
In case we cannot render a glyph, we want a fallback we can display instead. If we rely on the font itself to provide the fallback character, we have nothing to display if that character is not available. Therefore, add a static fallback that we can use at any time.
Diffstat (limited to 'src/libsystemd-terminal/unifont.h')
-rw-r--r--src/libsystemd-terminal/unifont.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsystemd-terminal/unifont.h b/src/libsystemd-terminal/unifont.h
index 0ded61472f..30527cb3fa 100644
--- a/src/libsystemd-terminal/unifont.h
+++ b/src/libsystemd-terminal/unifont.h
@@ -54,3 +54,4 @@ 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);
+void unifont_fallback(unifont_glyph *out);