mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 20:19:38 +00:00
Re-enable runtime font rendering if a font handler is assigned, clean up some font handler things.
This commit is contained in:
@@ -106,6 +106,16 @@ namespace PortabilityLayer
|
||||
return font;
|
||||
}
|
||||
|
||||
void FontFamily::UnloadVariation(int variation)
|
||||
{
|
||||
FontSpec &spec = m_fontSpecs[variation];
|
||||
if (spec.m_font)
|
||||
{
|
||||
spec.m_font->Destroy();
|
||||
spec.m_font = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
PortabilityLayer::FontHacks FontFamily::GetHacksForVariation(int variation) const
|
||||
{
|
||||
return m_fontSpecs[variation].m_hacks;
|
||||
|
||||
Reference in New Issue
Block a user