Skip to content

Commit 8560dfc

Browse files
authored
Also load TTC font files
1 parent 62c4a5a commit 8560dfc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gen_tile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ static void load_fonts(const char *font_dir, int recurse)
169169
continue;
170170
}
171171
p = strrchr(path, '.');
172-
if (p && (!strcmp(p, ".ttf") || !strcmp(p, ".otf"))) {
172+
if (p && (!strcmp(p, ".ttf") || !strcmp(p, ".otf") || !strcmp(p, ".ttc"))) {
173173
syslog(LOG_DEBUG, "DEBUG: Loading font: %s", path);
174174
freetype_engine::register_font(path);
175175
}

0 commit comments

Comments
 (0)