File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,10 @@ By default, `str` is expected to be a `\0` terminated ASCII string.
91
91
This means bytes ` 0x80-0xFF ` are treated as individual characters, even in programming languages where strings are normally UTF-8 encoded.
92
92
No terminating ` \0 ` is needed in those languages.
93
93
In languages where all strings are UTF-16, ` str ` must only contain characters up to U+00FF and no ` \0 ` is needed.
94
+
95
+ The text drawing functions in WASM-4's internals and bindings are called ` textUtf8 ` and ` textUtf16 ` for UTF-8 and UTF-16 respectively,
96
+ but these names are misnomers and don't actually use UTF-8 or UTF-16 encodings.
97
+ If you encounter these functions, instead treat them according to the explanation above.
94
98
:::
95
99
96
100
## Sound
You can’t perform that action at this time.
0 commit comments