diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-02 03:52:53 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-02 03:52:53 +0300 |
commit | db4804690b84985b62941833175dd6b540d4cb0f (patch) | |
tree | b92ddc6716dcf68785539fd18caf9169cfef6c87 /source/blender/blenfont/BLF_api.h | |
parent | e7ce9b9bb82321ec6d4d5daa8105c19bd9f8f0eb (diff) |
BLF: pass code-point to BLF_has_glyph
Avoid BLF having to be concerned with decoding the string
(which can fail).
Also remove redundant extra zero byte from strings.
Diffstat (limited to 'source/blender/blenfont/BLF_api.h')
-rw-r--r-- | source/blender/blenfont/BLF_api.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenfont/BLF_api.h b/source/blender/blenfont/BLF_api.h index 359ec9cc49e..448bb0d621a 100644 --- a/source/blender/blenfont/BLF_api.h +++ b/source/blender/blenfont/BLF_api.h @@ -53,8 +53,8 @@ int BLF_load_mem_unique(const char *name, const unsigned char *mem, int mem_size void BLF_unload(const char *name) ATTR_NONNULL(); void BLF_unload_id(int fontid); -/* Check if font supports a particular glyph */ -bool BLF_has_glyph(int fontid, const char *utf8); +/* Check if font supports a particular glyph. */ +bool BLF_has_glyph(int fontid, unsigned int unicode); /* Attach a file with metrics information from memory. */ void BLF_metrics_attach(int fontid, unsigned char *mem, int mem_size); |