qfontenginemultifontconfig.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/platformsupport/fontdatabases/fontconfig/qfontenginemultifontconfig.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5QFontEngineMultiFontConfig::QFontEngineMultiFontConfig(QFontEngine *fe, int script)-
6 : QFontEngineMulti(fe, script)-
7{-
8}
executed 781 times by 123 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
781
9-
10QFontEngineMultiFontConfig::~QFontEngineMultiFontConfig()-
11{-
12 for (QForeachContainer<typename QtPrivate::remove_reference<decltype(cachedMatchPatterns)>::type> _container_((cachedMatchPatterns)); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1) for (FcPattern *pattern = *_container_.i; _container_.control; _container_.control = 0) {-
13 if (pattern
patternDescription
TRUEevaluated 369 times by 10 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_QTextLayout
  • tst_qcomplextext - unknown status
  • tst_qfontdialog - unknown status
  • tst_qlabel - unknown status
  • tst_qtextlayout - unknown status
  • tst_qtextscriptengine - unknown status
FALSEevaluated 1009 times by 10 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_QTextLayout
  • tst_qcomplextext - unknown status
  • tst_qfontdialog - unknown status
  • tst_qlabel - unknown status
  • tst_qtextlayout - unknown status
  • tst_qtextscriptengine - unknown status
)
369-1009
14 FcPatternDestroy(pattern);
executed 369 times by 10 tests: FcPatternDestroy(pattern);
Executed by:
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_QTextLayout
  • tst_qcomplextext - unknown status
  • tst_qfontdialog - unknown status
  • tst_qlabel - unknown status
  • tst_qtextlayout - unknown status
  • tst_qtextscriptengine - unknown status
369
15 }
executed 1378 times by 10 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_QTextLayout
  • tst_qcomplextext - unknown status
  • tst_qfontdialog - unknown status
  • tst_qlabel - unknown status
  • tst_qtextlayout - unknown status
  • tst_qtextscriptengine - unknown status
1378
16}
executed 775 times by 127 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QFontCache
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QPainter
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • ...
775
17-
18bool QFontEngineMultiFontConfig::shouldLoadFontEngineForCharacter(int at, uint ucs4) const-
19{-
20 bool charSetHasChar = true;-
21 FcPattern *matchPattern = getMatchPatternForFallback(at - 1);-
22 if (matchPattern != 0
matchPattern != 0Description
TRUEevaluated 7659647 times by 8 tests
Evaluated by:
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QTextLayout
  • tst_QTextScriptEngine
FALSEnever evaluated
) {
0-7659647
23 FcCharSet *charSet;-
24 FcPatternGetCharSet(matchPattern, "charset", 0, &charSet);-
25 charSetHasChar = FcCharSetHasChar(charSet, ucs4);-
26 }
executed 7659647 times by 8 tests: end of block
Executed by:
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QTextLayout
  • tst_QTextScriptEngine
7659647
27-
28 return
executed 7659647 times by 8 tests: return charSetHasChar;
Executed by:
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QTextLayout
  • tst_QTextScriptEngine
charSetHasChar;
executed 7659647 times by 8 tests: return charSetHasChar;
Executed by:
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QTextLayout
  • tst_QTextScriptEngine
7659647
29}-
30-
31-
32FcPattern * QFontEngineMultiFontConfig::getMatchPatternForFallback(int fallBackIndex) const-
33{-
34 ((!(fallBackIndex < fallbackFamilyCount())) ? qt_assert("fallBackIndex < fallbackFamilyCount()",__FILE__,75) : qt_noop());-
35 if (fallbackFamilyCount() > cachedMatchPatterns.size()
fallbackFamily...atterns.size()Description
TRUEevaluated 27 times by 8 tests
Evaluated by:
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QTextLayout
  • tst_QTextScriptEngine
FALSEevaluated 7659620 times by 6 tests
Evaluated by:
  • tst_QComplexText
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QTextLayout
  • tst_QTextScriptEngine
)
27-7659620
36 cachedMatchPatterns.resize(fallbackFamilyCount());
executed 27 times by 8 tests: cachedMatchPatterns.resize(fallbackFamilyCount());
Executed by:
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QTextLayout
  • tst_QTextScriptEngine
27
37 FcPattern *ret = cachedMatchPatterns.at(fallBackIndex);-
38 if (ret
retDescription
TRUEevaluated 7659278 times by 5 tests
Evaluated by:
  • tst_QComplexText
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QTextLayout
  • tst_QTextScriptEngine
FALSEevaluated 369 times by 8 tests
Evaluated by:
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QTextLayout
  • tst_QTextScriptEngine
)
369-7659278
39 return
executed 7659278 times by 5 tests: return ret;
Executed by:
  • tst_QComplexText
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QTextLayout
  • tst_QTextScriptEngine
ret;
executed 7659278 times by 5 tests: return ret;
Executed by:
  • tst_QComplexText
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QTextLayout
  • tst_QTextScriptEngine
7659278
40 FcPattern *requestPattern = FcPatternCreate();-
41 FcValue value;-
42 value.type = FcTypeString;-
43 QByteArray cs = fallbackFamilyAt(fallBackIndex).toUtf8();-
44 value.u.s = reinterpret_cast<const FcChar8 *>(cs.data());-
45 FcPatternAdd(requestPattern, "family", value, true);-
46 FcResult result;-
47 ret = FcFontMatch(0, requestPattern, &result);-
48 cachedMatchPatterns.insert(fallBackIndex, ret);-
49 FcPatternDestroy(requestPattern);-
50 return
executed 369 times by 8 tests: return ret;
Executed by:
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QTextLayout
  • tst_QTextScriptEngine
ret;
executed 369 times by 8 tests: return ret;
Executed by:
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QTextLayout
  • tst_QTextScriptEngine
369
51}-
52-
53-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9