summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2021-08-08 04:25:31 +0100
committerJohn-Mark Bell <jmb@netsurf-browser.org>2021-08-08 04:25:31 +0100
commit247a8f1c34b8ffcf3d6072dbb621ea2a19052874 (patch)
treefd82c8a901dcbcfa3e324d0aa0416d35c38cd665 /include
parent9bd774ec26a7a97019210b6779105f58cb29788b (diff)
downloadlibrufl-247a8f1c34b8ffcf3d6072dbb621ea2a19052874.tar.gz
librufl-247a8f1c34b8ffcf3d6072dbb621ea2a19052874.tar.bz2
Use UCS-4 for rendering and display 6-digit replacement characters.
As we introduce support for discovering and rendering astral characters, ensure that we pass UCS-4 to the relevant Font Manager APIs and extend our replacement hex code generation to emit 6 digits for codepoints outside the Basic Multilingual Plane. This has necessitated a change to the API of the callback function provided to rufl_paint_callback(). Where, previously, a 16 bit UCS-2 string was exposed, we now expose UCS-4.
Diffstat (limited to 'include')
-rw-r--r--include/rufl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rufl.h b/include/rufl.h
index 767022e..0164df8 100644
--- a/include/rufl.h
+++ b/include/rufl.h
@@ -124,7 +124,7 @@ rufl_code rufl_split(const char *font_family, rufl_style font_style,
/** Type of callback function for rufl_paint_callback(). */
typedef void (*rufl_callback_t)(void *context,
const char *font_name, unsigned int font_size,
- const char *s8, unsigned short *s16, unsigned int n,
+ const char *s8, unsigned int *s32, unsigned int n,
int x, int y);