Fix registered style name of sub-families
An old line redefined the altStyleName variable causing sub-families to be registered with their language-name as their style-name. Change-Id: I8c21ad556f53ffd62f8ef9b326fb9431eea1d857 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
This commit is contained in:
parent
f38a957789
commit
0cec01190f
@ -493,7 +493,6 @@ static void populateFromPattern(FcPattern *pattern)
|
||||
altFamilyNameLang = familyNameLang;
|
||||
|
||||
if (familyNameLang == altFamilyNameLang && altStyleName != styleName) {
|
||||
const QString altStyleName = QString::fromUtf8((const char *)value);
|
||||
FontFile *altFontFile = new FontFile(*fontFile);
|
||||
QPlatformFontDatabase::registerFont(altFamilyName, altStyleName, QLatin1String((const char *)foundry_value),weight,style,stretch,antialias,scalable,pixel_size,fixedPitch,writingSystems,altFontFile);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user