mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 16:58:38 +09:00
Issue #2191 - Remove as much old fontconfig support as needed for Harfbuzz update.
Based on Mozilla bugs 1119128, 1285533, and 1421964. gfx.font_rendering.fontconfig.fontlist.enabled is no longer available. gfxFontconfigUtils.h still exists, and will be removed in another commit. Just need more research on bug 1385029. Tag #1862
This commit is contained in:
parent
3c3456cc61
commit
b5d5963a4f
17 changed files with 37 additions and 3966 deletions
|
|
@ -926,32 +926,6 @@ gfxUserFontSet::AddUserFontEntry(const nsAString& aFamilyName,
|
|||
}
|
||||
}
|
||||
|
||||
gfxUserFontEntry*
|
||||
gfxUserFontSet::FindUserFontEntryAndLoad(gfxFontFamily* aFamily,
|
||||
const gfxFontStyle& aFontStyle,
|
||||
bool& aNeedsBold,
|
||||
bool& aWaitForUserFont)
|
||||
{
|
||||
aWaitForUserFont = false;
|
||||
gfxFontEntry* fe = aFamily->FindFontForStyle(aFontStyle, aNeedsBold);
|
||||
NS_ASSERTION(!fe || fe->mIsUserFontContainer,
|
||||
"should only have userfont entries in userfont families");
|
||||
if (!fe) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
gfxUserFontEntry* userFontEntry = static_cast<gfxUserFontEntry*>(fe);
|
||||
|
||||
// start the load if it hasn't been loaded
|
||||
userFontEntry->Load();
|
||||
if (userFontEntry->GetPlatformFontEntry()) {
|
||||
return userFontEntry;
|
||||
}
|
||||
|
||||
aWaitForUserFont = userFontEntry->WaitForUserFont();
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void
|
||||
gfxUserFontSet::IncrementGeneration(bool aIsRebuild)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue