Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii committed Dec 16, 2023
1 parent 135e4bc commit 77a83dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Graphics/Fonts/font_database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -687,13 +687,13 @@ font_database_load_suffixes () {
tree t= block_to_scheme_tree (s);
for (int i= 0; i < N (t); i++)
if (is_func (t[i], TUPLE, 2)) {
// if (&ftab == &font_table)
tree family_style= t[i][0];
tree files = t[i][1];
for (int j= 0; j < N (files); j++) {
url file_name= url (files[j][0]->label);
string base_name= basename (file_name);
string suf = suffix (file_name);
if (is_empty (suf)) continue;
if (font_suffixes->contains (base_name)) {
array<string> sufs= font_suffixes[base_name];
if (!contains (suf, sufs)) {
Expand Down
3 changes: 3 additions & 0 deletions src/Plugins/Freetype/tt_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ tt_font_find_sub (string name) {
if (!is_none (u)) return u;
}
else {
debug_fonts << "Font " << name << " does not exist in font database" << LF;
debug_fonts << "Please report it to us if it is a ttf/ttc/otf font!" << LF;
debug_fonts << "Locating it as " * name * ".pfb, might be slow :(" << LF;
// If the font is not in font database
// It must not be a ttf/ttc/otf/tfm font
u= tt_locate_pfb (name);
Expand Down

0 comments on commit 77a83dd

Please sign in to comment.