Add synthetic bold hack to better support Geneva CY

This commit is contained in:
elasota
2021-04-16 00:25:30 -04:00
parent 141f840888
commit 3d3f839801
5 changed files with 221 additions and 13 deletions

View File

@@ -140,15 +140,7 @@ namespace PortabilityLayer
*outVariationFlags = ms_fontPresets[preset].m_variationFlags;
if (outAA)
{
bool aa = ms_fontPresets[preset].m_aa;
FontFamilyID_t fontFamily = ms_fontPresets[preset].m_familyID;
if (m_hasPreinstalledFonts && (fontFamily == FontFamilyIDs::kApplication || fontFamily == FontFamilyIDs::kSystem))
*outAA = false;
else
*outAA = aa;
}
*outAA = ms_fontPresets[preset].m_aa;
if (outFamilyID)
{