Ticket #46536: dont-warn-missing-fallback-fonts.patch

File dont-warn-missing-fallback-fonts.patch, 774 bytes (added by RJVB (René Bertin), 10 years ago)
  • qtbase/src/platformsupport/fontdatabases/mac/

    old new  
    446446    QCFType<CTFontDescriptorRef> fontDescriptor = (CTFontDescriptorRef) CTFontDescriptorCreateWithNameAndSize((CFStringRef)psName, 12.0);
    447447    QCFString familyName = (CFStringRef) CTFontDescriptorCopyAttribute(fontDescriptor, kCTFontFamilyNameAttribute);
    448448    QString name = QCFString::toQString(familyName);
     449#ifdef QT_DEBUG
    449450    if (name.isEmpty())
    450451        qWarning() << "QCoreTextFontDatabase: Failed to resolve family name for PostScript name " << QCFString::toQString((CFStringRef)psName);
     452#endif
    451453
    452454    return name;
    453455}