Skip to content

Commit fd21d61

Browse files
committed
PicoVector: Fix find_glyph char to uint16_t.
Allow find_glyph to find 16-bit unicode codepoints (icons, yay!).
1 parent 21ec6a2 commit fd21d61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/pico_vector/alright-fonts.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ uint8_t num_of_utf8_continuation_bytes(const char *text, const char *end) {
241241
return cont;
242242
}
243243

244-
af_glyph_t *find_glyph(af_face_t *face, char c) {
244+
af_glyph_t *find_glyph(af_face_t *face, uint16_t c) {
245245
for(int i = 0; i < face->glyph_count; i++) {
246246
if(face->glyphs[i].codepoint == c) {
247247
return &face->glyphs[i];

0 commit comments

Comments
 (0)