Skip to content

Commit a2532bd

Browse files
committed
return comment
1 parent 907360e commit a2532bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shared-module/lvfontio/OnDiskFont.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,8 @@ int16_t common_hal_lvfontio_ondiskfont_cache_glyph(lvfontio_ondiskfont_t *self,
591591
// Glyph is already cached, increment reference count(s).
592592
self->reference_counts[existing_slot]++;
593593

594+
// Check if this is a full-width character by looking for a second slot
595+
// with the same codepoint right after this one
594596
bool cached_is_full_width = existing_slot + 1 < self->max_glyphs &&
595597
self->codepoints[existing_slot + 1] == codepoint;
596598

0 commit comments

Comments
 (0)