Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initSystemFonts: avoid the 'Material Icons *' fonts for monospace. #248

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion crengine/src/private/lvfreetypefontman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,8 @@ bool LVFreeTypeFontManager::initSystemFonts() {
css_font_family_t fontFamily = css_ff_sans_serif;
lString32 face32((const char *)family);
face32.lowercase();
if ( spacing==FC_MONO )
// Avoid using the 'Material Icons *' fonts for monospace.
if ( spacing==FC_MONO && face32.pos("icons") == 0 )
fontFamily = css_ff_monospace;
else if (face32.pos("sans") >= 0)
fontFamily = css_ff_sans_serif;
Expand Down