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 77a83dd commit 9c62494
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Plugins/Freetype/tt_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,17 +187,15 @@ tt_font_find_sub (string name) {
int num_of_fonts= N (tt_font_locations);
if (num_of_fonts == 0) tt_locate_all ();

u= tt_fast_locate (name);
if (!is_none (u)) return u;
return tt_fast_locate (name);
}
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);
return u;
return tt_locate_pfb (name);
}
}

Expand Down

0 comments on commit 9c62494

Please sign in to comment.