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:
Allan Sandfeld Jensen 2016-08-02 16:29:56 +02:00 committed by Allan Sandfeld Jensen
parent f38a957789
commit 0cec01190f

View File

@ -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 {