Skip to content

Commit 4d92dcf

Browse files
committed
text-freetype2: Pre-cache Cyrillic glyphs
Add Cyrillic uppercase and lowercase characters to cache_standard_glyphs alongside the existing ASCII Latin set, so they are available on first render without relying on on-demand caching.
1 parent db0fc1e commit 4d92dcf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

plugins/text-freetype2/text-functionality.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,9 @@ void cache_standard_glyphs(struct ft2_source *srcdata)
205205

206206
cache_glyphs(srcdata, L"abcdefghijklmnopqrstuvwxyz"
207207
L"ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"
208-
L"!@#$%^&*()-_=+,<.>/?\\|[]{}`~ \'\"\0");
208+
L"!@#$%^&*()-_=+,<.>/?\\|[]{}`~ \'\""
209+
L"абвгдеёжзийклмнопрстуфхцчшщъыьэюя"
210+
L"АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ\0");
209211
}
210212

211213
FT_Render_Mode get_render_mode(struct ft2_source *srcdata)

0 commit comments

Comments
 (0)