Merge pull request #1078 from pimoroni/patch-af-unicode

PicoVector: Fix find_glyph char to uint16_t.
pull/1081/head
Philip Howard 2025-05-22 16:36:02 +01:00 zatwierdzone przez GitHub
commit dc93a19848
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -241,7 +241,7 @@ uint8_t num_of_utf8_continuation_bytes(const char *text, const char *end) {
return cont;
}
af_glyph_t *find_glyph(af_face_t *face, char c) {
af_glyph_t *find_glyph(af_face_t *face, uint16_t c) {
for(int i = 0; i < face->glyph_count; i++) {
if(face->glyphs[i].codepoint == c) {
return &face->glyphs[i];