-
Notifications
You must be signed in to change notification settings - Fork 0
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
Change: Support side-by-side fallback FontCaches instead of hierarchi… #7
base: master
Are you sure you want to change the base?
Conversation
// for (auto const &pair : font_mapping) { | ||
// if (pair.second->fc == nullptr || pair.second->fc->IsBuiltInFont()) return nullptr; | ||
// } |
Check notice
Code scanning / CodeQL
Commented-out code Note
@@ -767,7 +767,7 @@ | |||
this->SetWidgetDisabledState(WID_GO_GUI_FONT_AA, _fcsettings.prefer_sprite); | |||
this->SetDirty(); | |||
|
|||
InitFontCache(false); | |||
// InitFontCache(false); |
Check notice
Code scanning / CodeQL
Commented-out code Note
|
||
bool missing = callback->FindMissingGlyphs(); | ||
Debug(fontcache, 1, "Font \"{}\" misses{} glyphs", (char *)file, missing ? "" : " no"); | ||
for (FontSize fs = FS_BEGIN; fs != FS_END; fs++) { |
Check notice
Code scanning / CodeQL
Declaration hides variable Note
line 128
df143b1
to
676cfa9
Compare
if (this->level & 1) c = SwapRtlPairedCharacters(c); | ||
this->glyphs.emplace_back(this->font->fc->MapCharToGlyph(c)); | ||
this->glyph_to_char.push_back(i); | ||
if (Utf16IsLeadSurrogate(*(buff + i))) ++i; |
Check notice
Code scanning / CodeQL
For loop variable changed in body Note
loop
…cal. The text layouter system can now support using different fonts for different glyphs, including mixing scalable and sprite glyphs.
676cfa9
to
536734e
Compare
This detaches sprite font glyph mappings from sprite fonts.
536734e
to
5c1f9ee
Compare
…cal.
The text layouter system can now support using different fonts for different glyphs, including mixing scalable and sprite glyphs.
Motivation / Problem
Description
Limitations
Checklist for review
Some things are not automated, and forgotten often. This list is a reminder for the reviewers.