Skip to content

Commit dc93a19

Browse files
authored
Merge pull request #1078 from pimoroni/patch-af-unicode
PicoVector: Fix find_glyph char to uint16_t.
2 parents 21ec6a2 + fd21d61 commit dc93a19

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)