Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | #include "qdir.h" | - |
41 | #include "qmetatype.h" | - |
42 | #include "qtextstream.h" | - |
43 | #include "qvariant.h" | - |
44 | #include "qfontengine_ft_p.h" | - |
45 | #include "private/qimage_p.h" | - |
46 | #include <private/qstringiterator_p.h> | - |
47 | | - |
48 | #ifndef QT_NO_FREETYPE | - |
49 | | - |
50 | #include "qfile.h" | - |
51 | #include "qfileinfo.h" | - |
52 | #include <qscopedvaluerollback.h> | - |
53 | #include "qthreadstorage.h" | - |
54 | #include <qmath.h> | - |
55 | #include <qendian.h> | - |
56 | | - |
57 | #include <ft2build.h> | - |
58 | #include FT_FREETYPE_H | - |
59 | #include FT_OUTLINE_H | - |
60 | #include FT_SYNTHESIS_H | - |
61 | #include FT_TRUETYPE_TABLES_H | - |
62 | #include FT_TYPE1_TABLES_H | - |
63 | #include FT_GLYPH_H | - |
64 | | - |
65 | #if defined(FT_LCD_FILTER_H) | - |
66 | #include FT_LCD_FILTER_H | - |
67 | #endif | - |
68 | | - |
69 | #if defined(FT_CONFIG_OPTIONS_H) | - |
70 | #include FT_CONFIG_OPTIONS_H | - |
71 | #endif | - |
72 | | - |
73 | #if defined(FT_LCD_FILTER_H) | - |
74 | #define QT_USE_FREETYPE_LCDFILTER | - |
75 | #endif | - |
76 | | - |
77 | #ifdef QT_LINUXBASE | - |
78 | #include FT_ERRORS_H | - |
79 | #endif | - |
80 | | - |
81 | #if !defined(QT_MAX_CACHED_GLYPH_SIZE) | - |
82 | # define QT_MAX_CACHED_GLYPH_SIZE 64 | - |
83 | #endif | - |
84 | | - |
85 | QT_BEGIN_NAMESPACE | - |
86 | | - |
87 | #define FLOOR(x) ((x) & -64) | - |
88 | #define CEIL(x) (((x)+63) & -64) | - |
89 | #define TRUNC(x) ((x) >> 6) | - |
90 | #define ROUND(x) (((x)+32) & -64) | - |
91 | | - |
92 | static bool ft_getSfntTable(void *user_data, uint tag, uchar *buffer, uint *length) | - |
93 | { | - |
94 | FT_Face face = (FT_Face)user_data; | - |
95 | | - |
96 | bool result = false; | - |
97 | if (FT_IS_SFNT(face)) {TRUE | evaluated 2034 times by 111 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| FALSE | evaluated 83 times by 4 testsEvaluated by:- tst_QAccessibility
- tst_QFontDialog
- tst_QFontMetrics
- tst_QTextLayout
|
| 83-2034 |
98 | FT_ULong len = *length; | - |
99 | result = FT_Load_Sfnt_Table(face, tag, 0, buffer, &len) == FT_Err_Ok; | - |
100 | *length = len; | - |
101 | Q_ASSERT(!result || int(*length) > 0); | - |
102 | }executed 2034 times by 111 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 2034 |
103 | | - |
104 | return result;executed 2117 times by 111 tests: return result; 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 2117 |
105 | } | - |
106 | | - |
107 | static QFontEngineFT::Glyph emptyGlyph = {0, 0, 0, 0, 0, 0, 0, 0}; | - |
108 | | - |
109 | static const QFontEngine::HintStyle ftInitialDefaultHintStyle = | - |
110 | #ifdef Q_OS_WIN | - |
111 | QFontEngineFT::HintFull; | - |
112 | #else | - |
113 | QFontEngineFT::HintNone; | - |
114 | #endif | - |
115 | | - |
116 | | - |
117 | | - |
118 | class QtFreetypeData | - |
119 | { | - |
120 | public: | - |
121 | QtFreetypeData() | - |
122 | : library(0) | - |
123 | { }executed 136 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
- ...
| 136 |
124 | ~QtFreetypeData(); | - |
125 | | - |
126 | FT_Library library; | - |
127 | QHash<QFontEngine::FaceId, QFreetypeFace *> faces; | - |
128 | }; | - |
129 | | - |
130 | QtFreetypeData::~QtFreetypeData() | - |
131 | { | - |
132 | for (QHash<QFontEngine::FaceId, QFreetypeFace *>::ConstIterator iter = faces.cbegin(); iter != faces.cend(); ++iter)TRUE | evaluated 8 times by 8 testsEvaluated by:- tst_QPainter
- tst_qabstractitemview - unknown status
- tst_qdoublespinbox - unknown status
- tst_qfontdialog - unknown status
- tst_qfontmetrics - unknown status
- tst_qgraphicsitem - unknown status
- tst_qitemdelegate - unknown status
- tst_qlistwidget - unknown status
| FALSE | evaluated 135 times by 124 testsEvaluated by:- tst_QApplication
- tst_QPainter
- 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
- tst_qcomplextext - unknown status
- tst_qcssparser - unknown status
- tst_qdatawidgetmapper - unknown status
- tst_qdatetimeedit - unknown status
- tst_qdialog - unknown status
- tst_qdialogbuttonbox - unknown status
- tst_qdockwidget - unknown status
- ...
|
| 8-135 |
133 | iter.value()->cleanup();executed 8 times by 8 tests: iter.value()->cleanup(); Executed by:- tst_QPainter
- tst_qabstractitemview - unknown status
- tst_qdoublespinbox - unknown status
- tst_qfontdialog - unknown status
- tst_qfontmetrics - unknown status
- tst_qgraphicsitem - unknown status
- tst_qitemdelegate - unknown status
- tst_qlistwidget - unknown status
| 8 |
134 | faces.clear(); | - |
135 | FT_Done_FreeType(library); | - |
136 | library = 0; | - |
137 | }executed 135 times by 124 tests: end of block Executed by:- tst_QApplication
- tst_QPainter
- 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
- tst_qcomplextext - unknown status
- tst_qcssparser - unknown status
- tst_qdatawidgetmapper - unknown status
- tst_qdatetimeedit - unknown status
- tst_qdialog - unknown status
- tst_qdialogbuttonbox - unknown status
- tst_qdockwidget - unknown status
- ...
| 135 |
138 | | - |
139 | #ifdef QT_NO_THREAD | - |
140 | Q_GLOBAL_STATIC(QtFreetypeData, theFreetypeData) | - |
141 | | - |
142 | QtFreetypeData *qt_getFreetypeData() | - |
143 | { | - |
144 | return theFreetypeData(); | - |
145 | } | - |
146 | #else | - |
147 | Q_GLOBAL_STATIC(QThreadStorage<QtFreetypeData *>, theFreetypeData)executed 124 times by 122 tests: end of block Executed by:- 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
- tst_qcomplextext - unknown status
- tst_qcssparser - unknown status
- tst_qdatawidgetmapper - unknown status
- tst_qdatetimeedit - unknown status
- tst_qdialog - unknown status
- tst_qdialogbuttonbox - unknown status
- tst_qdockwidget - unknown status
- tst_qdoublespinbox - unknown status
- tst_qerrormessage - unknown status
- ...
executed 124 times by 122 tests: guard.store(QtGlobalStatic::Destroyed); Executed by:- 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
- tst_qcomplextext - unknown status
- tst_qcssparser - unknown status
- tst_qdatawidgetmapper - unknown status
- tst_qdatetimeedit - unknown status
- tst_qdialog - unknown status
- tst_qdialogbuttonbox - unknown status
- tst_qdockwidget - unknown status
- tst_qdoublespinbox - unknown status
- tst_qerrormessage - unknown status
- ...
executed 3736 times by 238 tests: return &holder.value; 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
- ...
TRUE | evaluated 124 times by 122 testsEvaluated by:- 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
- tst_qcomplextext - unknown status
- tst_qcssparser - unknown status
- tst_qdatawidgetmapper - unknown status
- tst_qdatetimeedit - unknown status
- tst_qdialog - unknown status
- tst_qdialogbuttonbox - unknown status
- tst_qdockwidget - unknown status
- tst_qdoublespinbox - unknown status
- tst_qerrormessage - unknown status
- ...
| FALSE | never evaluated |
| 0-3736 |
148 | | - |
149 | QtFreetypeData *qt_getFreetypeData() | - |
150 | { | - |
151 | QtFreetypeData *&freetypeData = theFreetypeData()->localData(); | - |
152 | if (!freetypeData)TRUE | evaluated 136 times by 123 testsEvaluated 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
- ...
| FALSE | evaluated 3600 times by 168 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCssParser
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFont
- tst_QFontCache
- tst_QFontComboBox
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemView
- ...
|
| 136-3600 |
153 | freetypeData = new QtFreetypeData;executed 136 times by 123 tests: freetypeData = new QtFreetypeData; 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
- ...
| 136 |
154 | return freetypeData;executed 3736 times by 238 tests: return freetypeData; 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
- ...
| 3736 |
155 | } | - |
156 | #endif | - |
157 | | - |
158 | FT_Library qt_getFreetype() | - |
159 | { | - |
160 | QtFreetypeData *freetypeData = qt_getFreetypeData(); | - |
161 | if (!freetypeData->library)TRUE | evaluated 21 times by 5 testsEvaluated by:- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QRawFont
| FALSE | evaluated 23 times by 5 testsEvaluated by:- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QRawFont
|
| 21-23 |
162 | FT_Init_FreeType(&freetypeData->library);executed 21 times by 5 tests: FT_Init_FreeType(&freetypeData->library); Executed by:- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QRawFont
| 21 |
163 | return freetypeData->library;executed 44 times by 5 tests: return freetypeData->library; Executed by:- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QRawFont
| 44 |
164 | } | - |
165 | | - |
166 | int QFreetypeFace::fsType() const | - |
167 | { | - |
168 | int fsType = 0; | - |
169 | TT_OS2 *os2 = (TT_OS2 *)FT_Get_Sfnt_Table(face, ft_sfnt_os2); | - |
170 | if (os2)TRUE | evaluated 1962 times by 123 testsEvaluated 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
- ...
| FALSE | evaluated 75 times by 6 testsEvaluated by:- tst_QAccessibility
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFontMetrics
- tst_QLabel
- tst_QTextLayout
|
| 75-1962 |
171 | fsType = os2->fsType;executed 1962 times by 123 tests: fsType = os2->fsType; 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
- ...
| 1962 |
172 | return fsType;executed 2037 times by 123 tests: return fsType; 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
- ...
| 2037 |
173 | } | - |
174 | | - |
175 | int QFreetypeFace::getPointInOutline(glyph_t glyph, int flags, quint32 point, QFixed *xpos, QFixed *ypos, quint32 *nPoints) | - |
176 | { | - |
177 | if (int error = FT_Load_Glyph(face, glyph, flags))TRUE | never evaluated | FALSE | never evaluated |
| 0 |
178 | return error; never executed: return error; | 0 |
179 | | - |
180 | if (face->glyph->format != FT_GLYPH_FORMAT_OUTLINE)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
181 | return Err_Invalid_SubTable; never executed: return Err_Invalid_SubTable; | 0 |
182 | | - |
183 | *nPoints = face->glyph->outline.n_points; | - |
184 | if (!(*nPoints))TRUE | never evaluated | FALSE | never evaluated |
| 0 |
185 | return Err_Ok; never executed: return Err_Ok; | 0 |
186 | | - |
187 | if (point > *nPoints)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
188 | return Err_Invalid_SubTable; never executed: return Err_Invalid_SubTable; | 0 |
189 | | - |
190 | *xpos = QFixed::fromFixed(face->glyph->outline.points[point].x); | - |
191 | *ypos = QFixed::fromFixed(face->glyph->outline.points[point].y); | - |
192 | | - |
193 | return Err_Ok; never executed: return Err_Ok; | 0 |
194 | } | - |
195 | | - |
196 | bool QFreetypeFace::isScalableBitmap() const | - |
197 | { | - |
198 | #ifdef FT_HAS_COLOR | - |
199 | return !FT_IS_SCALABLE(face) && FT_HAS_COLOR(face);executed 319436 times by 115 tests: return !( face->face_flags & ( 1L << 0 ) ) && ( face->face_flags & ( 1L << 14 ) ); 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
- ...
| 319436 |
200 | #else | - |
201 | return false; | - |
202 | #endif | - |
203 | } | - |
204 | | - |
205 | extern QByteArray qt_fontdata_from_index(int); | - |
206 | | - |
207 | | - |
208 | | - |
209 | | - |
210 | | - |
211 | | - |
212 | | - |
213 | | - |
214 | QFreetypeFace *QFreetypeFace::getFace(const QFontEngine::FaceId &face_id, | - |
215 | const QByteArray &fontData) | - |
216 | { | - |
217 | if (face_id.filename.isEmpty() && fontData.isEmpty())TRUE | evaluated 1250 times by 1 test | FALSE | evaluated 785 times by 123 testsEvaluated 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
- ...
|
TRUE | never evaluated | FALSE | evaluated 1250 times by 1 test |
| 0-1250 |
218 | return 0; never executed: return 0; | 0 |
219 | | - |
220 | QtFreetypeData *freetypeData = qt_getFreetypeData(); | - |
221 | if (!freetypeData->library)TRUE | evaluated 1353 times by 122 testsEvaluated 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
- ...
| FALSE | evaluated 682 times by 50 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCssParser
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFont
- tst_QFontCache
- tst_QFontComboBox
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemView
- tst_QLabel
- ...
|
| 682-1353 |
222 | FT_Init_FreeType(&freetypeData->library);executed 1353 times by 122 tests: FT_Init_FreeType(&freetypeData->library); 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
- ...
| 1353 |
223 | | - |
224 | QFreetypeFace *freetype = freetypeData->faces.value(face_id, 0); | - |
225 | if (freetype) {TRUE | evaluated 367 times by 24 testsEvaluated by:- tst_QAbstractItemView
- tst_QComboBox
- tst_QFont
- tst_QFontCache
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QMenu
- tst_QPainter
- tst_QPlainTextEdit
- tst_QRawFont
- tst_QStaticText
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextLayout
- tst_QToolTip
- tst_QTreeWidget
- tst_QWizard
| FALSE | evaluated 1668 times by 123 testsEvaluated 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
- ...
|
| 367-1668 |
226 | freetype->ref.ref(); | - |
227 | } else {executed 367 times by 24 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QComboBox
- tst_QFont
- tst_QFontCache
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QMenu
- tst_QPainter
- tst_QPlainTextEdit
- tst_QRawFont
- tst_QStaticText
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextLayout
- tst_QToolTip
- tst_QTreeWidget
- tst_QWizard
| 367 |
228 | QScopedPointer<QFreetypeFace> newFreetype(new QFreetypeFace); | - |
229 | FT_Face face; | - |
230 | if (!face_id.filename.isEmpty()) {TRUE | evaluated 418 times by 123 testsEvaluated 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
- ...
| FALSE | evaluated 1250 times by 1 test |
| 418-1250 |
231 | QString fileName = QFile::decodeName(face_id.filename); | - |
232 | if (face_id.filename.startsWith(":qmemoryfonts/")) {TRUE | never evaluated | FALSE | evaluated 418 times by 123 testsEvaluated 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
- ...
|
| 0-418 |
233 | | - |
234 | QByteArray idx = face_id.filename; | - |
235 | idx.remove(0, 14); | - |
236 | bool ok = false; | - |
237 | newFreetype->fontData = qt_fontdata_from_index(idx.toInt(&ok)); | - |
238 | if (!ok)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
239 | newFreetype->fontData = QByteArray(); never executed: newFreetype->fontData = QByteArray(); | 0 |
240 | } else if (!QFileInfo(fileName).isNativePath()) { never executed: end of block TRUE | evaluated 21 times by 4 testsEvaluated by:- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QRawFont
| FALSE | evaluated 397 times by 123 testsEvaluated 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
- ...
|
| 0-397 |
241 | QFile file(fileName); | - |
242 | if (!file.open(QIODevice::ReadOnly)) {TRUE | never evaluated | FALSE | evaluated 21 times by 4 testsEvaluated by:- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QRawFont
|
| 0-21 |
243 | return 0; never executed: return 0; | 0 |
244 | } | - |
245 | newFreetype->fontData = file.readAll(); | - |
246 | }executed 21 times by 4 tests: end of block Executed by:- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QRawFont
| 21 |
247 | } else {executed 418 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
- ...
| 418 |
248 | newFreetype->fontData = fontData; | - |
249 | }executed 1250 times by 1 test: end of block | 1250 |
250 | if (!newFreetype->fontData.isEmpty()) {TRUE | evaluated 1271 times by 4 testsEvaluated by:- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QRawFont
| FALSE | evaluated 397 times by 123 testsEvaluated 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
- ...
|
| 397-1271 |
251 | if (FT_New_Memory_Face(freetypeData->library, (const FT_Byte *)newFreetype->fontData.constData(), newFreetype->fontData.size(), face_id.index, &face)) {TRUE | evaluated 2 times by 1 test | FALSE | evaluated 1269 times by 4 testsEvaluated by:- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QRawFont
|
| 2-1269 |
252 | return 0;executed 2 times by 1 test: return 0; | 2 |
253 | } | - |
254 | } else if (FT_New_Face(freetypeData->library, face_id.filename, face_id.index, &face)) {executed 1269 times by 4 tests: end of block Executed by:- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QRawFont
TRUE | never evaluated | FALSE | evaluated 397 times by 123 testsEvaluated 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
- ...
|
| 0-1269 |
255 | return 0; never executed: return 0; | 0 |
256 | } | - |
257 | newFreetype->face = face; | - |
258 | | - |
259 | newFreetype->ref.store(1); | - |
260 | newFreetype->xsize = 0; | - |
261 | newFreetype->ysize = 0; | - |
262 | newFreetype->matrix.xx = 0x10000; | - |
263 | newFreetype->matrix.yy = 0x10000; | - |
264 | newFreetype->matrix.xy = 0; | - |
265 | newFreetype->matrix.yx = 0; | - |
266 | newFreetype->unicode_map = 0; | - |
267 | newFreetype->symbol_map = 0; | - |
268 | | - |
269 | memset(newFreetype->cmapCache, 0, sizeof(newFreetype->cmapCache)); | - |
270 | | - |
271 | for (int i = 0; i < newFreetype->face->num_charmaps; ++i) {TRUE | evaluated 6588 times by 123 testsEvaluated 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
- ...
| FALSE | evaluated 1666 times by 123 testsEvaluated 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
- ...
|
| 1666-6588 |
272 | FT_CharMap cm = newFreetype->face->charmaps[i]; | - |
273 | switch(cm->encoding) { | - |
274 | case FT_ENCODING_UNICODE:executed 4969 times by 123 tests: case FT_ENCODING_UNICODE: 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
- ...
| 4969 |
275 | newFreetype->unicode_map = cm; | - |
276 | break;executed 4969 times by 123 tests: break; 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
- ...
| 4969 |
277 | case FT_ENCODING_APPLE_ROMAN:executed 1543 times by 123 tests: case FT_ENCODING_APPLE_ROMAN: 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
- ...
| 1543 |
278 | case FT_ENCODING_ADOBE_LATIN_1: never executed: case FT_ENCODING_ADOBE_LATIN_1: | 0 |
279 | if (!newFreetype->unicode_map || newFreetype->unicode_map->encoding != FT_ENCODING_UNICODE)TRUE | evaluated 11 times by 3 testsEvaluated by:- tst_QFontComboBox
- tst_QFontDialog
- tst_QFontMetrics
| FALSE | evaluated 1532 times by 123 testsEvaluated 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
- ...
|
TRUE | never evaluated | FALSE | evaluated 1532 times by 123 testsEvaluated 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
- ...
|
| 0-1532 |
280 | newFreetype->unicode_map = cm;executed 11 times by 3 tests: newFreetype->unicode_map = cm; Executed by:- tst_QFontComboBox
- tst_QFontDialog
- tst_QFontMetrics
| 11 |
281 | break;executed 1543 times by 123 tests: break; 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
- ...
| 1543 |
282 | case FT_ENCODING_ADOBE_CUSTOM:executed 6 times by 3 tests: case FT_ENCODING_ADOBE_CUSTOM: Executed by:- tst_QFontComboBox
- tst_QFontDialog
- tst_QFontMetrics
| 6 |
283 | case FT_ENCODING_MS_SYMBOL: never executed: case FT_ENCODING_MS_SYMBOL: | 0 |
284 | if (!newFreetype->symbol_map)TRUE | evaluated 6 times by 3 testsEvaluated by:- tst_QFontComboBox
- tst_QFontDialog
- tst_QFontMetrics
| FALSE | never evaluated |
| 0-6 |
285 | newFreetype->symbol_map = cm;executed 6 times by 3 tests: newFreetype->symbol_map = cm; Executed by:- tst_QFontComboBox
- tst_QFontDialog
- tst_QFontMetrics
| 6 |
286 | break;executed 6 times by 3 tests: break; Executed by:- tst_QFontComboBox
- tst_QFontDialog
- tst_QFontMetrics
| 6 |
287 | default:executed 70 times by 6 tests: default: Executed by:- tst_QAccessibility
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFontMetrics
- tst_QLabel
- tst_QTextLayout
| 70 |
288 | break;executed 70 times by 6 tests: break; Executed by:- tst_QAccessibility
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFontMetrics
- tst_QLabel
- tst_QTextLayout
| 70 |
289 | } | - |
290 | } | - |
291 | | - |
292 | if (!FT_IS_SCALABLE(newFreetype->face) && newFreetype->face->num_fixed_sizes == 1)TRUE | never evaluated | FALSE | evaluated 1666 times by 123 testsEvaluated 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
- ...
|
TRUE | never evaluated | FALSE | never evaluated |
| 0-1666 |
293 | FT_Set_Char_Size(face, newFreetype->face->available_sizes[0].x_ppem, newFreetype->face->available_sizes[0].y_ppem, 0, 0); never executed: FT_Set_Char_Size(face, newFreetype->face->available_sizes[0].x_ppem, newFreetype->face->available_sizes[0].y_ppem, 0, 0); | 0 |
294 | | - |
295 | FT_Set_Charmap(newFreetype->face, newFreetype->unicode_map); | - |
296 | QT_TRY { | - |
297 | freetypeData->faces.insert(face_id, newFreetype.data()); | - |
298 | } QT_CATCH(...) {executed 1666 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
- ...
dead code: { newFreetype.take()->release(face_id); qt_noop(); } | - |
299 | newFreetype.take()->release(face_id); dead code: { newFreetype.take()->release(face_id); qt_noop(); } | - |
300 | dead code: { newFreetype.take()->release(face_id); qt_noop(); } | - |
301 | QT_RETHROW; dead code: { newFreetype.take()->release(face_id); qt_noop(); } | - |
302 | } dead code: { newFreetype.take()->release(face_id); qt_noop(); } | - |
303 | freetype = newFreetype.take(); | - |
304 | }executed 1666 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
- ...
| 1666 |
305 | return freetype;executed 2033 times by 123 tests: return freetype; 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
- ...
| 2033 |
306 | } | - |
307 | | - |
308 | void QFreetypeFace::cleanup() | - |
309 | { | - |
310 | hbFace.reset(); | - |
311 | FT_Done_Face(face); | - |
312 | face = 0; | - |
313 | }executed 1665 times by 129 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
- ...
| 1665 |
314 | | - |
315 | void QFreetypeFace::release(const QFontEngine::FaceId &face_id) | - |
316 | { | - |
317 | if (!ref.deref()) {TRUE | evaluated 1660 times by 126 testsEvaluated 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
- ...
| FALSE | evaluated 371 times by 26 testsEvaluated by:- tst_QFontCache
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QRawFont
- tst_qabstractitemview - unknown status
- tst_qcombobox - unknown status
- tst_qfont - unknown status
- tst_qfontcombobox - unknown status
- tst_qfontdialog - unknown status
- tst_qgraphicsitem - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qgridlayout - unknown status
- tst_qmenu - unknown status
- tst_qpainter - unknown status
- tst_qplaintextedit - unknown status
- tst_qrawfont - unknown status
- tst_qstatictext - unknown status
- tst_qstyle - unknown status
- tst_qstylesheetstyle - unknown status
- tst_qtextdocumentlayout - unknown status
- tst_qtextedit - unknown status
- tst_qtextlayout - unknown status
- tst_qtooltip - unknown status
- tst_qtreewidget - unknown status
- ...
|
| 371-1660 |
318 | if (face) {TRUE | evaluated 1657 times by 125 testsEvaluated by:- tst_QApplication
- tst_QFontCache
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- 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
- tst_qcomplextext - unknown status
- ...
| FALSE | evaluated 3 times by 3 testsEvaluated by:- tst_QPainter
- tst_qfontdialog - unknown status
- tst_qfontmetrics - unknown status
|
| 3-1657 |
319 | QtFreetypeData *freetypeData = qt_getFreetypeData(); | - |
320 | | - |
321 | cleanup(); | - |
322 | | - |
323 | if (freetypeData->faces.contains(face_id))TRUE | evaluated 1657 times by 125 testsEvaluated by:- tst_QApplication
- tst_QFontCache
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- 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
- tst_qcomplextext - unknown status
- ...
| FALSE | never evaluated |
| 0-1657 |
324 | freetypeData->faces.take(face_id);executed 1657 times by 125 tests: freetypeData->faces.take(face_id); Executed by:- tst_QApplication
- tst_QFontCache
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- 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
- tst_qcomplextext - unknown status
- ...
| 1657 |
325 | | - |
326 | if (freetypeData->faces.isEmpty()) {TRUE | evaluated 1365 times by 120 testsEvaluated by:- tst_QApplication
- tst_QFontCache
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QRawFont
- tst_languagechange - unknown status
- tst_qabstractbutton - 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
- tst_qcomplextext - unknown status
- tst_qcssparser - unknown status
- tst_qdatawidgetmapper - unknown status
- ...
| FALSE | evaluated 292 times by 48 testsEvaluated by:- tst_QFontCache
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QRawFont
- tst_QTextLayout
- tst_languagechange - unknown status
- tst_qabstractitemview - unknown status
- tst_qaccessibility - unknown status
- tst_qcalendarwidget - unknown status
- tst_qcombobox - unknown status
- tst_qcommandlinkbutton - unknown status
- tst_qcssparser - unknown status
- tst_qdatetimeedit - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qfilesystemmodel - unknown status
- tst_qfont - unknown status
- tst_qfontcombobox - unknown status
- tst_qfontdialog - unknown status
- tst_qfontmetrics - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qheaderview - unknown status
- tst_qitemdelegate - unknown status
- ...
|
| 292-1365 |
327 | FT_Done_FreeType(freetypeData->library); | - |
328 | freetypeData->library = 0; | - |
329 | }executed 1365 times by 120 tests: end of block Executed by:- tst_QApplication
- tst_QFontCache
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QRawFont
- tst_languagechange - unknown status
- tst_qabstractbutton - 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
- tst_qcomplextext - unknown status
- tst_qcssparser - unknown status
- tst_qdatawidgetmapper - unknown status
- ...
| 1365 |
330 | }executed 1657 times by 125 tests: end of block Executed by:- tst_QApplication
- tst_QFontCache
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- 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
- tst_qcomplextext - unknown status
- ...
| 1657 |
331 | | - |
332 | delete this; | - |
333 | }executed 1660 times by 126 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
- ...
| 1660 |
334 | }executed 2031 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
- ...
| 2031 |
335 | | - |
336 | | - |
337 | void QFreetypeFace::computeSize(const QFontDef &fontDef, int *xsize, int *ysize, bool *outline_drawing, QFixed *scalableBitmapScaleFactor) | - |
338 | { | - |
339 | *ysize = qRound(fontDef.pixelSize * 64); | - |
340 | *xsize = *ysize * fontDef.stretch / 100; | - |
341 | *scalableBitmapScaleFactor = 1; | - |
342 | *outline_drawing = false; | - |
343 | | - |
344 | if (!(face->face_flags & FT_FACE_FLAG_SCALABLE)) {TRUE | never evaluated | FALSE | evaluated 2037 times by 123 testsEvaluated 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
- ...
|
| 0-2037 |
345 | int best = 0; | - |
346 | if (!isScalableBitmap()) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
347 | | - |
348 | | - |
349 | | - |
350 | | - |
351 | for (int i = 1; i < face->num_fixed_sizes; i++) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
352 | if (qAbs(*ysize - face->available_sizes[i].y_ppem) <TRUE | never evaluated | FALSE | never evaluated |
| 0 |
353 | qAbs(*ysize - face->available_sizes[best].y_ppem) ||TRUE | never evaluated | FALSE | never evaluated |
| 0 |
354 | (qAbs(*ysize - face->available_sizes[i].y_ppem) ==TRUE | never evaluated | FALSE | never evaluated |
| 0 |
355 | qAbs(*ysize - face->available_sizes[best].y_ppem) &&TRUE | never evaluated | FALSE | never evaluated |
| 0 |
356 | qAbs(*xsize - face->available_sizes[i].x_ppem) <TRUE | never evaluated | FALSE | never evaluated |
| 0 |
357 | qAbs(*xsize - face->available_sizes[best].x_ppem))) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
358 | best = i; | - |
359 | } never executed: end of block | 0 |
360 | } never executed: end of block | 0 |
361 | } else { never executed: end of block | 0 |
362 | | - |
363 | for (int i = 1; i < face->num_fixed_sizes; i++) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
364 | if (face->available_sizes[i].y_ppem < *ysize) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
365 | if (face->available_sizes[i].y_ppem > face->available_sizes[best].y_ppem)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
366 | best = i; never executed: best = i; | 0 |
367 | } else if (face->available_sizes[best].y_ppem < *ysize) { never executed: end of block TRUE | never evaluated | FALSE | never evaluated |
| 0 |
368 | best = i; | - |
369 | } else if (face->available_sizes[i].y_ppem < face->available_sizes[best].y_ppem) { never executed: end of block TRUE | never evaluated | FALSE | never evaluated |
| 0 |
370 | best = i; | - |
371 | } never executed: end of block | 0 |
372 | } never executed: end of block | 0 |
373 | } never executed: end of block | 0 |
374 | | - |
375 | | - |
376 | | - |
377 | if (FT_Select_Size(face, best) == 0) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
378 | if (isScalableBitmap())TRUE | never evaluated | FALSE | never evaluated |
| 0 |
379 | *scalableBitmapScaleFactor = QFixed::fromReal((qreal)fontDef.pixelSize / face->available_sizes[best].height); never executed: *scalableBitmapScaleFactor = QFixed::fromReal((qreal)fontDef.pixelSize / face->available_sizes[best].height); | 0 |
380 | *xsize = face->available_sizes[best].x_ppem; | - |
381 | *ysize = face->available_sizes[best].y_ppem; | - |
382 | } else { never executed: end of block | 0 |
383 | *xsize = *ysize = 0; | - |
384 | } never executed: end of block | 0 |
385 | } else { | - |
386 | *outline_drawing = (*xsize > (QT_MAX_CACHED_GLYPH_SIZE<<6) || *ysize > (QT_MAX_CACHED_GLYPH_SIZE<<6));TRUE | evaluated 84 times by 5 testsEvaluated by:- tst_QFontDatabase
- tst_QFontDialog
- tst_QPainter
- tst_QTextLayout
- tst_QToolTip
| FALSE | evaluated 1953 times by 123 testsEvaluated 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
- ...
|
TRUE | never evaluated | FALSE | evaluated 1953 times by 123 testsEvaluated 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
- ...
|
| 0-1953 |
387 | }executed 2037 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
- ...
| 2037 |
388 | } | - |
389 | | - |
390 | QFontEngine::Properties QFreetypeFace::properties() const | - |
391 | { | - |
392 | QFontEngine::Properties p; | - |
393 | p.postscriptName = FT_Get_Postscript_Name(face); | - |
394 | PS_FontInfoRec font_info; | - |
395 | if (FT_Get_PS_Font_Info(face, &font_info) == 0)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
396 | p.copyright = font_info.notice; never executed: p.copyright = font_info.notice; | 0 |
397 | if (FT_IS_SCALABLE(face)) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
398 | p.ascent = face->ascender; | - |
399 | p.descent = -face->descender; | - |
400 | p.leading = face->height - face->ascender + face->descender; | - |
401 | p.emSquare = face->units_per_EM; | - |
402 | p.boundingBox = QRectF(face->bbox.xMin, -face->bbox.yMax, | - |
403 | face->bbox.xMax - face->bbox.xMin, | - |
404 | face->bbox.yMax - face->bbox.yMin); | - |
405 | } else { never executed: end of block | 0 |
406 | p.ascent = QFixed::fromFixed(face->size->metrics.ascender); | - |
407 | p.descent = QFixed::fromFixed(-face->size->metrics.descender); | - |
408 | p.leading = QFixed::fromFixed(face->size->metrics.height - face->size->metrics.ascender + face->size->metrics.descender); | - |
409 | p.emSquare = face->size->metrics.y_ppem; | - |
410 | | - |
411 | p.boundingBox = QRectF(0, -p.ascent.toReal(), | - |
412 | face->size->metrics.max_advance/64, (p.ascent + p.descent).toReal() ); | - |
413 | } never executed: end of block | 0 |
414 | p.italicAngle = 0; | - |
415 | p.capHeight = p.ascent; | - |
416 | p.lineWidth = face->underline_thickness; | - |
417 | return p; never executed: return p; | 0 |
418 | } | - |
419 | | - |
420 | bool QFreetypeFace::getSfntTable(uint tag, uchar *buffer, uint *length) const | - |
421 | { | - |
422 | return ft_getSfntTable(face, tag, buffer, length); never executed: return ft_getSfntTable(face, tag, buffer, length); | 0 |
423 | } | - |
424 | | - |
425 | | - |
426 | | - |
427 | | - |
428 | | - |
429 | | - |
430 | | - |
431 | | - |
432 | | - |
433 | | - |
434 | static void scaleOutline(FT_Face face, FT_GlyphSlot g, FT_Fixed x_scale, FT_Fixed y_scale) | - |
435 | { | - |
436 | x_scale = FT_MulDiv(x_scale, 1 << 10, face->units_per_EM); | - |
437 | y_scale = FT_MulDiv(y_scale, 1 << 10, face->units_per_EM); | - |
438 | FT_Vector *p = g->outline.points; | - |
439 | const FT_Vector *e = p + g->outline.n_points; | - |
440 | while (p < e) {TRUE | evaluated 3260 times by 6 testsEvaluated by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| FALSE | evaluated 163 times by 6 testsEvaluated by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
|
| 163-3260 |
441 | p->x = FT_MulFix(p->x, x_scale); | - |
442 | p->y = FT_MulFix(p->y, y_scale); | - |
443 | ++p; | - |
444 | }executed 3260 times by 6 tests: end of block Executed by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| 3260 |
445 | }executed 163 times by 6 tests: end of block Executed by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| 163 |
446 | | - |
447 | #define GLYPH2PATH_DEBUG QT_NO_QDEBUG_MACRO // qDebug | - |
448 | void QFreetypeFace::addGlyphToPath(FT_Face face, FT_GlyphSlot g, const QFixedPoint &point, QPainterPath *path, FT_Fixed x_scale, FT_Fixed y_scale) | - |
449 | { | - |
450 | const qreal factor = 1/64.; | - |
451 | scaleOutline(face, g, x_scale, y_scale); | - |
452 | | - |
453 | QPointF cp = point.toPointF(); | - |
454 | | - |
455 | | - |
456 | int i = 0; | - |
457 | for (int j = 0; j < g->outline.n_contours; ++j) {TRUE | evaluated 216 times by 6 testsEvaluated by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| FALSE | evaluated 163 times by 6 testsEvaluated by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
|
| 163-216 |
458 | int last_point = g->outline.contours[j]; | - |
459 | GLYPH2PATH_DEBUG() << "contour:" << i << "to" << last_point; dead code: QMessageLogger().noDebug() << "contour:" << i << "to" << last_point; | - |
460 | QPointF start = QPointF(g->outline.points[i].x*factor, -g->outline.points[i].y*factor); | - |
461 | if (!(g->outline.tags[i] & 1)) { TRUE | never evaluated | FALSE | evaluated 216 times by 6 testsEvaluated by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
|
| 0-216 |
462 | if (!(g->outline.tags[last_point] & 1)) { TRUE | never evaluated | FALSE | never evaluated |
| 0 |
463 | GLYPH2PATH_DEBUG() << " start and end point are not on curve"; dead code: QMessageLogger().noDebug() << " start and end point are not on curve"; | - |
464 | start = (QPointF(g->outline.points[last_point].x*factor, | - |
465 | -g->outline.points[last_point].y*factor) + start) / 2.0; | - |
466 | } else { never executed: end of block | 0 |
467 | GLYPH2PATH_DEBUG() << " end point is on curve, start is not"; dead code: QMessageLogger().noDebug() << " end point is on curve, start is not"; | - |
468 | start = QPointF(g->outline.points[last_point].x*factor, | - |
469 | -g->outline.points[last_point].y*factor); | - |
470 | } never executed: end of block | 0 |
471 | --i; | - |
472 | } never executed: end of block | 0 |
473 | start += cp; | - |
474 | GLYPH2PATH_DEBUG() << " start at" << start; dead code: QMessageLogger().noDebug() << " start at" << start; | - |
475 | | - |
476 | path->moveTo(start); | - |
477 | QPointF c[4]; | - |
478 | c[0] = start; | - |
479 | int n = 1; | - |
480 | while (i < last_point) {TRUE | evaluated 3818 times by 6 testsEvaluated by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| FALSE | evaluated 216 times by 6 testsEvaluated by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
|
| 216-3818 |
481 | ++i; | - |
482 | c[n] = cp + QPointF(g->outline.points[i].x*factor, -g->outline.points[i].y*factor); | - |
483 | GLYPH2PATH_DEBUG() << " " << i << c[n] << "tag =" << (int)g->outline.tags[i] dead code: QMessageLogger().noDebug() << " " << i << c[n] << "tag =" << (int)g->outline.tags[i] << ": on curve =" << (bool)(g->outline.tags[i] & 1); | - |
484 | << ": on curve =" << (bool)(g->outline.tags[i] & 1); dead code: QMessageLogger().noDebug() << " " << i << c[n] << "tag =" << (int)g->outline.tags[i] << ": on curve =" << (bool)(g->outline.tags[i] & 1); | - |
485 | ++n; | - |
486 | switch (g->outline.tags[i] & 3) { | - |
487 | case 2: never executed: case 2: | 0 |
488 | | - |
489 | if (n < 4)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
490 | continue; never executed: continue; | 0 |
491 | c[3] = (c[3] + c[2])/2; | - |
492 | --i; | - |
493 | break; never executed: break; | 0 |
494 | case 0:executed 2322 times by 6 tests: case 0: Executed by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| 2322 |
495 | | - |
496 | if (n < 3)TRUE | evaluated 1548 times by 6 testsEvaluated by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| FALSE | evaluated 774 times by 6 testsEvaluated by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
|
| 774-1548 |
497 | continue;executed 1548 times by 6 tests: continue; Executed by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| 1548 |
498 | c[3] = (c[1] + c[2])/2; | - |
499 | c[2] = (2*c[1] + c[3])/3; | - |
500 | c[1] = (2*c[1] + c[0])/3; | - |
501 | --i; | - |
502 | break;executed 774 times by 6 tests: break; Executed by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| 774 |
503 | case 1:executed 1496 times by 6 tests: case 1: Executed by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| 1496 |
504 | case 3: never executed: case 3: | 0 |
505 | if (n == 2) {TRUE | evaluated 834 times by 6 testsEvaluated by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| FALSE | evaluated 662 times by 6 testsEvaluated by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
|
| 662-834 |
506 | GLYPH2PATH_DEBUG() << " lineTo" << c[1]; dead code: QMessageLogger().noDebug() << " lineTo" << c[1]; | - |
507 | path->lineTo(c[1]); | - |
508 | c[0] = c[1]; | - |
509 | n = 1; | - |
510 | continue;executed 834 times by 6 tests: continue; Executed by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| 834 |
511 | } else if (n == 3) {TRUE | evaluated 662 times by 6 testsEvaluated by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| FALSE | never evaluated |
| 0-662 |
512 | c[3] = c[2]; | - |
513 | c[2] = (2*c[1] + c[3])/3; | - |
514 | c[1] = (2*c[1] + c[0])/3; | - |
515 | }executed 662 times by 6 tests: end of block Executed by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| 662 |
516 | break;executed 662 times by 6 tests: break; Executed by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| 662 |
517 | } | - |
518 | GLYPH2PATH_DEBUG() << " cubicTo" << c[1] << c[2] << c[3]; dead code: QMessageLogger().noDebug() << " cubicTo" << c[1] << c[2] << c[3]; | - |
519 | path->cubicTo(c[1], c[2], c[3]); | - |
520 | c[0] = c[3]; | - |
521 | n = 1; | - |
522 | }executed 1436 times by 6 tests: end of block Executed by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| 1436 |
523 | | - |
524 | if (n == 1) {TRUE | evaluated 104 times by 6 testsEvaluated by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| FALSE | evaluated 112 times by 5 testsEvaluated by:- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
|
| 104-112 |
525 | GLYPH2PATH_DEBUG() << " closeSubpath"; dead code: QMessageLogger().noDebug() << " closeSubpath"; | - |
526 | path->closeSubpath(); | - |
527 | } else {executed 104 times by 6 tests: end of block Executed by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| 104 |
528 | c[3] = start; | - |
529 | if (n == 2) {TRUE | evaluated 112 times by 5 testsEvaluated by:- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| FALSE | never evaluated |
| 0-112 |
530 | c[2] = (2*c[1] + c[3])/3; | - |
531 | c[1] = (2*c[1] + c[0])/3; | - |
532 | }executed 112 times by 5 tests: end of block Executed by:- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| 112 |
533 | GLYPH2PATH_DEBUG() << " close cubicTo" << c[1] << c[2] << c[3]; dead code: QMessageLogger().noDebug() << " close cubicTo" << c[1] << c[2] << c[3]; | - |
534 | path->cubicTo(c[1], c[2], c[3]); | - |
535 | }executed 112 times by 5 tests: end of block Executed by:- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| 112 |
536 | ++i; | - |
537 | }executed 216 times by 6 tests: end of block Executed by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| 216 |
538 | }executed 163 times by 6 tests: end of block Executed by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| 163 |
539 | | - |
540 | extern void qt_addBitmapToPath(qreal x0, qreal y0, const uchar *image_data, int bpl, int w, int h, QPainterPath *path); | - |
541 | | - |
542 | void QFreetypeFace::addBitmapToPath(FT_GlyphSlot slot, const QFixedPoint &point, QPainterPath *path) | - |
543 | { | - |
544 | if (slot->format != FT_GLYPH_FORMAT_BITMAPTRUE | never evaluated | FALSE | never evaluated |
| 0 |
545 | || slot->bitmap.pixel_mode != FT_PIXEL_MODE_MONO)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
546 | return; never executed: return; | 0 |
547 | | - |
548 | QPointF cp = point.toPointF(); | - |
549 | qt_addBitmapToPath(cp.x() + TRUNC(slot->metrics.horiBearingX), cp.y() - TRUNC(slot->metrics.horiBearingY), | - |
550 | slot->bitmap.buffer, slot->bitmap.pitch, slot->bitmap.width, slot->bitmap.rows, path); | - |
551 | } never executed: end of block | 0 |
552 | | - |
553 | QFontEngineFT::Glyph::~Glyph() | - |
554 | { | - |
555 | delete [] data; | - |
556 | }executed 11797 times by 120 tests: end of block Executed by:- tst_QApplication
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsView
- 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
- ...
| 11797 |
557 | | - |
558 | struct LcdFilterDummy | - |
559 | { | - |
560 | static inline void filterPixel(uchar &, uchar &, uchar &) | - |
561 | {} | - |
562 | }; | - |
563 | | - |
564 | struct LcdFilterLegacy | - |
565 | { | - |
566 | static inline void filterPixel(uchar &red, uchar &green, uchar &blue) | - |
567 | { | - |
568 | uint r = red, g = green, b = blue; | - |
569 | | - |
570 | red = (r * uint(65538 * 9/13) + g * uint(65538 * 1/6) + b * uint(65538 * 1/13)) / 65536; | - |
571 | green = (r * uint(65538 * 3/13) + g * uint(65538 * 4/6) + b * uint(65538 * 3/13)) / 65536; | - |
572 | blue = (r * uint(65538 * 1/13) + g * uint(65538 * 1/6) + b * uint(65538 * 9/13)) / 65536; | - |
573 | } never executed: end of block | 0 |
574 | }; | - |
575 | | - |
576 | template <typename LcdFilter> | - |
577 | static void convertRGBToARGB_helper(const uchar *src, uint *dst, int width, int height, int src_pitch, bool bgr) | - |
578 | { | - |
579 | const int offs = bgr ? -1 : 1; | - |
580 | const int w = width * 3; | - |
581 | while (height--) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
582 | uint *dd = dst; | - |
583 | for (int x = 0; x < w; x += 3) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
584 | uchar red = src[x + 1 - offs]; | - |
585 | uchar green = src[x + 1]; | - |
586 | uchar blue = src[x + 1 + offs]; | - |
587 | LcdFilter::filterPixel(red, green, blue); | - |
588 | | - |
589 | *dd++ = (green << 24) | (red << 16) | (green << 8) | blue; | - |
590 | } never executed: end of block | 0 |
591 | dst += width; | - |
592 | src += src_pitch; | - |
593 | } never executed: end of block | 0 |
594 | } never executed: end of block | 0 |
595 | | - |
596 | static inline void convertRGBToARGB(const uchar *src, uint *dst, int width, int height, int src_pitch, bool bgr, bool legacyFilter) | - |
597 | { | - |
598 | if (!legacyFilter)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
599 | convertRGBToARGB_helper<LcdFilterDummy>(src, dst, width, height, src_pitch, bgr); never executed: convertRGBToARGB_helper<LcdFilterDummy>(src, dst, width, height, src_pitch, bgr); | 0 |
600 | else | - |
601 | convertRGBToARGB_helper<LcdFilterLegacy>(src, dst, width, height, src_pitch, bgr); never executed: convertRGBToARGB_helper<LcdFilterLegacy>(src, dst, width, height, src_pitch, bgr); | 0 |
602 | } | - |
603 | | - |
604 | template <typename LcdFilter> | - |
605 | static void convertRGBToARGB_V_helper(const uchar *src, uint *dst, int width, int height, int src_pitch, bool bgr) | - |
606 | { | - |
607 | const int offs = bgr ? -src_pitch : src_pitch; | - |
608 | while (height--) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
609 | for (int x = 0; x < width; x++) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
610 | uchar red = src[x + src_pitch - offs]; | - |
611 | uchar green = src[x + src_pitch]; | - |
612 | uchar blue = src[x + src_pitch + offs]; | - |
613 | LcdFilter::filterPixel(red, green, blue); | - |
614 | | - |
615 | *dst++ = (green << 24) | (red << 16) | (green << 8) | blue; | - |
616 | } never executed: end of block | 0 |
617 | src += 3*src_pitch; | - |
618 | } never executed: end of block | 0 |
619 | } never executed: end of block | 0 |
620 | | - |
621 | static inline void convertRGBToARGB_V(const uchar *src, uint *dst, int width, int height, int src_pitch, bool bgr, bool legacyFilter) | - |
622 | { | - |
623 | if (!legacyFilter)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
624 | convertRGBToARGB_V_helper<LcdFilterDummy>(src, dst, width, height, src_pitch, bgr); never executed: convertRGBToARGB_V_helper<LcdFilterDummy>(src, dst, width, height, src_pitch, bgr); | 0 |
625 | else | - |
626 | convertRGBToARGB_V_helper<LcdFilterLegacy>(src, dst, width, height, src_pitch, bgr); never executed: convertRGBToARGB_V_helper<LcdFilterLegacy>(src, dst, width, height, src_pitch, bgr); | 0 |
627 | } | - |
628 | | - |
629 | static inline void convertGRAYToARGB(const uchar *src, uint *dst, int width, int height, int src_pitch) | - |
630 | { | - |
631 | while (height--) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
632 | const uchar *p = src; | - |
633 | const uchar * const e = p + width; | - |
634 | while (p < e) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
635 | uchar gray = *p++; | - |
636 | *dst++ = (0xFF << 24) | (gray << 16) | (gray << 8) | gray; | - |
637 | } never executed: end of block | 0 |
638 | src += src_pitch; | - |
639 | } never executed: end of block | 0 |
640 | } never executed: end of block | 0 |
641 | | - |
642 | static void convoluteBitmap(const uchar *src, uchar *dst, int width, int height, int pitch) | - |
643 | { | - |
644 | | - |
645 | | - |
646 | | - |
647 | | - |
648 | int h = height; | - |
649 | while (h--) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
650 | dst[0] = dst[1] = 0; | - |
651 | | - |
652 | for (int x = 2; x < width - 2; ++x) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
653 | uint sum = src[x-2] + 3*src[x-1] + 8*src[x] + 3*src[x+1] + src[x+2]; | - |
654 | dst[x] = (uchar) (sum >> 4); | - |
655 | } never executed: end of block | 0 |
656 | dst[width - 2] = dst[width - 1] = 0; | - |
657 | src += pitch; | - |
658 | dst += pitch; | - |
659 | } never executed: end of block | 0 |
660 | } never executed: end of block | 0 |
661 | | - |
662 | QFontEngineFT::QFontEngineFT(const QFontDef &fd) | - |
663 | : QFontEngine(Freetype) | - |
664 | { | - |
665 | fontDef = fd; | - |
666 | matrix.xx = 0x10000; | - |
667 | matrix.yy = 0x10000; | - |
668 | matrix.xy = 0; | - |
669 | matrix.yx = 0; | - |
670 | cache_cost = 100 * 1024; | - |
671 | kerning_pairs_loaded = false; | - |
672 | transform = false; | - |
673 | embolden = false; | - |
674 | obliquen = false; | - |
675 | antialias = true; | - |
676 | freetype = 0; | - |
677 | default_load_flags = FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH; | - |
678 | default_hint_style = ftInitialDefaultHintStyle; | - |
679 | subpixelType = Subpixel_None; | - |
680 | lcdFilterType = 0; | - |
681 | #if defined(FT_LCD_FILTER_H) | - |
682 | lcdFilterType = (int)((quintptr) FT_LCD_FILTER_DEFAULT); | - |
683 | #endif | - |
684 | defaultFormat = Format_None; | - |
685 | embeddedbitmap = false; | - |
686 | const QByteArray env = qgetenv("QT_NO_FT_CACHE"); | - |
687 | cacheEnabled = env.isEmpty() || env.toInt() == 0;TRUE | evaluated 2039 times by 123 testsEvaluated 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
- ...
| FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0-2039 |
688 | m_subPixelPositionCount = 4; | - |
689 | forceAutoHint = false; | - |
690 | }executed 2039 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
- ...
| 2039 |
691 | | - |
692 | QFontEngineFT::~QFontEngineFT() | - |
693 | { | - |
694 | if (freetype)TRUE | evaluated 2031 times by 127 testsEvaluated 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
- ...
| FALSE | evaluated 2 times by 1 test |
| 2-2031 |
695 | freetype->release(face_id);executed 2031 times by 127 tests: freetype->release(face_id); 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
- ...
| 2031 |
696 | }executed 2033 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
- ...
| 2033 |
697 | | - |
698 | bool QFontEngineFT::init(FaceId faceId, bool antialias, GlyphFormat format, | - |
699 | const QByteArray &fontData) | - |
700 | { | - |
701 | return init(faceId, antialias, format, QFreetypeFace::getFace(faceId, fontData));executed 2035 times by 123 tests: return init(faceId, antialias, format, QFreetypeFace::getFace(faceId, fontData)); 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
- ...
| 2035 |
702 | } | - |
703 | | - |
704 | static void dont_delete(void*) {} | - |
705 | | - |
706 | bool QFontEngineFT::init(FaceId faceId, bool antialias, GlyphFormat format, | - |
707 | QFreetypeFace *freetypeFace) | - |
708 | { | - |
709 | freetype = freetypeFace; | - |
710 | if (!freetype) {TRUE | evaluated 2 times by 1 test | FALSE | evaluated 2037 times by 123 testsEvaluated 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
- ...
|
| 2-2037 |
711 | xsize = 0; | - |
712 | ysize = 0; | - |
713 | return false;executed 2 times by 1 test: return false; | 2 |
714 | } | - |
715 | defaultFormat = format; | - |
716 | this->antialias = antialias; | - |
717 | | - |
718 | if (!antialias)TRUE | evaluated 3 times by 2 testsEvaluated by:- tst_QStaticText
- tst_QWizard
| FALSE | evaluated 2034 times by 123 testsEvaluated 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
- ...
|
| 3-2034 |
719 | glyphFormat = QFontEngine::Format_Mono;executed 3 times by 2 tests: glyphFormat = QFontEngine::Format_Mono; Executed by:- tst_QStaticText
- tst_QWizard
| 3 |
720 | else | - |
721 | glyphFormat = defaultFormat;executed 2034 times by 123 tests: glyphFormat = defaultFormat; 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
- ...
| 2034 |
722 | | - |
723 | face_id = faceId; | - |
724 | | - |
725 | symbol = freetype->symbol_map != 0; | - |
726 | PS_FontInfoRec psrec; | - |
727 | | - |
728 | if (FT_Get_PS_Font_Info(freetype->face, &psrec) == FT_Err_Ok) {TRUE | evaluated 79 times by 6 testsEvaluated by:- tst_QAccessibility
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFontMetrics
- tst_QLabel
- tst_QTextLayout
| FALSE | evaluated 1958 times by 123 testsEvaluated 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
- ...
|
| 79-1958 |
729 | symbol = bool(fontDef.family.contains(QLatin1String("symbol"), Qt::CaseInsensitive)); | - |
730 | }executed 79 times by 6 tests: end of block Executed by:- tst_QAccessibility
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFontMetrics
- tst_QLabel
- tst_QTextLayout
| 79 |
731 | | - |
732 | freetype->computeSize(fontDef, &xsize, &ysize, &defaultGlyphSet.outline_drawing, &scalableBitmapScaleFactor); | - |
733 | | - |
734 | FT_Face face = lockFace(); | - |
735 | | - |
736 | if (FT_IS_SCALABLE(face)) {TRUE | evaluated 2037 times by 123 testsEvaluated 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
- ...
| FALSE | never evaluated |
| 0-2037 |
737 | bool fake_oblique = (fontDef.style != QFont::StyleNormal) && !(face->style_flags & FT_STYLE_FLAG_ITALIC);TRUE | evaluated 194 times by 4 testsEvaluated by:- tst_QFontDialog
- tst_QFontMetrics
- tst_QItemDelegate
- tst_QTextLayout
| FALSE | evaluated 1843 times by 123 testsEvaluated 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
- ...
|
TRUE | never evaluated | FALSE | evaluated 194 times by 4 testsEvaluated by:- tst_QFontDialog
- tst_QFontMetrics
- tst_QItemDelegate
- tst_QTextLayout
|
| 0-1843 |
738 | if (fake_oblique)TRUE | never evaluated | FALSE | evaluated 2037 times by 123 testsEvaluated 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
- ...
|
| 0-2037 |
739 | obliquen = true; never executed: obliquen = true; | 0 |
740 | FT_Set_Transform(face, &matrix, 0); | - |
741 | freetype->matrix = matrix; | - |
742 | | - |
743 | if ((fontDef.weight >= QFont::Bold) && !(face->style_flags & FT_STYLE_FLAG_BOLD) && !FT_IS_FIXED_WIDTH(face)) {TRUE | evaluated 257 times by 37 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCssParser
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemView
- tst_QLabel
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItemModel
- tst_QStaticText
- tst_QStyleSheetStyle
- ...
| FALSE | evaluated 1780 times by 123 testsEvaluated 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
- ...
|
TRUE | never evaluated | FALSE | evaluated 257 times by 37 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCssParser
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemView
- tst_QLabel
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItemModel
- tst_QStaticText
- tst_QStyleSheetStyle
- ...
|
TRUE | never evaluated | FALSE | never evaluated |
| 0-1780 |
744 | if (const TT_OS2 *os2 = reinterpret_cast<const TT_OS2 *>(FT_Get_Sfnt_Table(face, ft_sfnt_os2))) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
745 | if (os2->usWeightClass < 750)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
746 | embolden = true; never executed: embolden = true; | 0 |
747 | } never executed: end of block | 0 |
748 | } never executed: end of block | 0 |
749 | | - |
750 | line_thickness = QFixed::fromFixed(FT_MulFix(face->underline_thickness, face->size->metrics.y_scale)); | - |
751 | underline_position = QFixed::fromFixed(-FT_MulFix(face->underline_position, face->size->metrics.y_scale)); | - |
752 | } else {executed 2037 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
- ...
| 2037 |
753 | | - |
754 | int score = fontDef.weight * fontDef.pixelSize; | - |
755 | line_thickness = score / 700; | - |
756 | | - |
757 | if (line_thickness < 2 && score >= 1050)TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
758 | line_thickness = 2; never executed: line_thickness = 2; | 0 |
759 | underline_position = ((line_thickness * 2) + 3) / 6; | - |
760 | | - |
761 | if (isScalableBitmap()) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
762 | glyphFormat = defaultFormat = GlyphFormat::Format_ARGB; | - |
763 | cacheEnabled = false; | - |
764 | } never executed: end of block | 0 |
765 | } never executed: end of block | 0 |
766 | if (line_thickness < 1)TRUE | evaluated 1738 times by 123 testsEvaluated 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
- ...
| FALSE | evaluated 299 times by 18 testsEvaluated by:- tst_QAbstractItemView
- tst_QApplication
- tst_QCssParser
- tst_QFont
- tst_QFontComboBox
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QGraphicsProxyWidget
- tst_QMenu
- tst_QPainter
- tst_QRawFont
- tst_QStaticText
- tst_QStyleSheetStyle
- tst_QTextLayout
- tst_QToolTip
- tst_QTreeWidget
|
| 299-1738 |
767 | line_thickness = 1;executed 1738 times by 123 tests: line_thickness = 1; 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
- ...
| 1738 |
768 | | - |
769 | metrics = face->size->metrics; | - |
770 | | - |
771 | | - |
772 | | - |
773 | | - |
774 | | - |
775 | | - |
776 | | - |
777 | | - |
778 | if (FT_IS_SCALABLE(face)) {TRUE | evaluated 2037 times by 123 testsEvaluated 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
- ...
| FALSE | never evaluated |
| 0-2037 |
779 | for (int i = 0; i < face->num_fixed_sizes; ++i) {TRUE | never evaluated | FALSE | evaluated 2037 times by 123 testsEvaluated 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
- ...
|
| 0-2037 |
780 | if (xsize == face->available_sizes[i].x_ppem && ysize == face->available_sizes[i].y_ppem) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
781 | face->face_flags &= ~FT_FACE_FLAG_SCALABLE; | - |
782 | | - |
783 | FT_Select_Size(face, i); | - |
784 | if (face->size->metrics.ascender + face->size->metrics.descender > 0) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
785 | metrics.ascender = face->size->metrics.ascender; | - |
786 | metrics.descender = face->size->metrics.descender; | - |
787 | } never executed: end of block | 0 |
788 | FT_Set_Char_Size(face, xsize, ysize, 0, 0); | - |
789 | | - |
790 | face->face_flags |= FT_FACE_FLAG_SCALABLE; | - |
791 | break; never executed: break; | 0 |
792 | } | - |
793 | } never executed: end of block | 0 |
794 | }executed 2037 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
- ...
| 2037 |
795 | | - |
796 | fontDef.styleName = QString::fromUtf8(face->style_name); | - |
797 | | - |
798 | if (!freetype->hbFace) {TRUE | evaluated 1666 times by 123 testsEvaluated 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
- ...
| FALSE | evaluated 371 times by 24 testsEvaluated by:- tst_QAbstractItemView
- tst_QComboBox
- tst_QFont
- tst_QFontCache
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QMenu
- tst_QPainter
- tst_QPlainTextEdit
- tst_QRawFont
- tst_QStaticText
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextLayout
- tst_QToolTip
- tst_QTreeWidget
- tst_QWizard
|
| 371-1666 |
799 | faceData.user_data = face; | - |
800 | faceData.get_font_table = ft_getSfntTable; | - |
801 | (void)harfbuzzFace(); | - |
802 | freetype->hbFace = std::move(face_); | - |
803 | } else {executed 1666 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
- ...
| 1666 |
804 | Q_ASSERT(!face_); | - |
805 | }executed 371 times by 24 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QComboBox
- tst_QFont
- tst_QFontCache
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QMenu
- tst_QPainter
- tst_QPlainTextEdit
- tst_QRawFont
- tst_QStaticText
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextLayout
- tst_QToolTip
- tst_QTreeWidget
- tst_QWizard
| 371 |
806 | | - |
807 | face_ = Holder(freetype->hbFace.get(), dont_delete); | - |
808 | | - |
809 | unlockFace(); | - |
810 | | - |
811 | fsType = freetype->fsType(); | - |
812 | return true;executed 2037 times by 123 tests: return true; 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
- ...
| 2037 |
813 | } | - |
814 | | - |
815 | void QFontEngineFT::setQtDefaultHintStyle(QFont::HintingPreference hintingPreference) | - |
816 | { | - |
817 | switch (hintingPreference) { | - |
818 | case QFont::PreferNoHinting:executed 311 times by 1 test: case QFont::PreferNoHinting: | 311 |
819 | setDefaultHintStyle(HintNone); | - |
820 | break;executed 311 times by 1 test: break; | 311 |
821 | case QFont::PreferFullHinting:executed 311 times by 1 test: case QFont::PreferFullHinting: | 311 |
822 | setDefaultHintStyle(HintFull); | - |
823 | break;executed 311 times by 1 test: break; | 311 |
824 | case QFont::PreferVerticalHinting:executed 311 times by 1 test: case QFont::PreferVerticalHinting: | 311 |
825 | setDefaultHintStyle(HintLight); | - |
826 | break;executed 311 times by 1 test: break; | 311 |
827 | case QFont::PreferDefaultHinting:executed 315 times by 1 test: case QFont::PreferDefaultHinting: | 315 |
828 | setDefaultHintStyle(ftInitialDefaultHintStyle); | - |
829 | break;executed 315 times by 1 test: break; | 315 |
830 | } | - |
831 | }executed 1248 times by 1 test: end of block | 1248 |
832 | | - |
833 | void QFontEngineFT::setDefaultHintStyle(HintStyle style) | - |
834 | { | - |
835 | default_hint_style = style; | - |
836 | }executed 3281 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
- ...
| 3281 |
837 | | - |
838 | int QFontEngineFT::loadFlags(QGlyphSet *set, GlyphFormat format, int flags, | - |
839 | bool &hsubpixel, int &vfactor) const | - |
840 | { | - |
841 | int load_flags = FT_LOAD_DEFAULT | default_load_flags; | - |
842 | int load_target = default_hint_style == HintLightTRUE | evaluated 14 times by 1 test | FALSE | evaluated 25910 times by 114 testsEvaluated 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
- ...
|
| 14-25910 |
843 | ? FT_LOAD_TARGET_LIGHT | - |
844 | : FT_LOAD_TARGET_NORMAL; | - |
845 | | - |
846 | if (format == Format_Mono) {TRUE | evaluated 114 times by 3 testsEvaluated by:- tst_QPainter
- tst_QStaticText
- tst_QWizard
| FALSE | evaluated 25810 times by 114 testsEvaluated 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
- ...
|
| 114-25810 |
847 | load_target = FT_LOAD_TARGET_MONO; | - |
848 | } else if (format == Format_A32) {executed 114 times by 3 tests: end of block Executed by:- tst_QPainter
- tst_QStaticText
- tst_QWizard
TRUE | never evaluated | FALSE | evaluated 25810 times by 114 testsEvaluated 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
- ...
|
| 0-25810 |
849 | if (subpixelType == Subpixel_RGB || subpixelType == Subpixel_BGR) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
850 | if (default_hint_style == HintFull)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
851 | load_target = FT_LOAD_TARGET_LCD; never executed: load_target = ( (FT_Int32)( (FT_RENDER_MODE_LCD) & 15 ) << 16 ); | 0 |
852 | hsubpixel = true; | - |
853 | } else if (subpixelType == Subpixel_VRGB || subpixelType == Subpixel_VBGR) { never executed: end of block TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
854 | if (default_hint_style == HintFull)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
855 | load_target = FT_LOAD_TARGET_LCD_V; never executed: load_target = ( (FT_Int32)( (FT_RENDER_MODE_LCD_V) & 15 ) << 16 ); | 0 |
856 | vfactor = 3; | - |
857 | } never executed: end of block | 0 |
858 | } else if (format == Format_ARGB) { never executed: end of block TRUE | never evaluated | FALSE | evaluated 25810 times by 114 testsEvaluated 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
- ...
|
| 0-25810 |
859 | #ifdef FT_LOAD_COLOR | - |
860 | load_flags |= FT_LOAD_COLOR; | - |
861 | #endif | - |
862 | } never executed: end of block | 0 |
863 | | - |
864 | if (set && set->outline_drawing)TRUE | evaluated 25924 times by 114 testsEvaluated 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
- ...
| FALSE | never evaluated |
TRUE | evaluated 40 times by 4 testsEvaluated by:- tst_QFontDatabase
- tst_QFontDialog
- tst_QPainter
- tst_QToolTip
| FALSE | evaluated 25884 times by 114 testsEvaluated 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
- ...
|
| 0-25924 |
865 | load_flags |= FT_LOAD_NO_BITMAP;executed 40 times by 4 tests: load_flags |= ( 1L << 3 ); Executed by:- tst_QFontDatabase
- tst_QFontDialog
- tst_QPainter
- tst_QToolTip
| 40 |
866 | | - |
867 | if (default_hint_style == HintNone || (flags & DesignMetrics) || (set && set->outline_drawing))TRUE | evaluated 1055 times by 7 testsEvaluated by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QPainter
- tst_QPrinter
- tst_QRawFont
- tst_QStaticText
| FALSE | evaluated 24869 times by 114 testsEvaluated 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
- ...
|
TRUE | never evaluated | FALSE | evaluated 24869 times by 114 testsEvaluated 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
- ...
|
TRUE | evaluated 24869 times by 114 testsEvaluated 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
- ...
| FALSE | never evaluated |
TRUE | evaluated 40 times by 4 testsEvaluated by:- tst_QFontDatabase
- tst_QFontDialog
- tst_QPainter
- tst_QToolTip
| FALSE | evaluated 24829 times by 114 testsEvaluated 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
- ...
|
| 0-24869 |
868 | load_flags |= FT_LOAD_NO_HINTING;executed 1095 times by 10 tests: load_flags |= ( 1L << 1 ); Executed by:- tst_QFontDatabase
- tst_QFontDialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QPainter
- tst_QPrinter
- tst_QRawFont
- tst_QStaticText
- tst_QToolTip
| 1095 |
869 | else | - |
870 | load_flags |= load_target;executed 24829 times by 114 tests: load_flags |= load_target; 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
- ...
| 24829 |
871 | | - |
872 | if (forceAutoHint)TRUE | never evaluated | FALSE | evaluated 25924 times by 114 testsEvaluated 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
- ...
|
| 0-25924 |
873 | load_flags |= FT_LOAD_FORCE_AUTOHINT; never executed: load_flags |= ( 1L << 5 ); | 0 |
874 | | - |
875 | return load_flags;executed 25924 times by 114 tests: return load_flags; 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
- ...
| 25924 |
876 | } | - |
877 | | - |
878 | static inline bool areMetricsTooLarge(const QFontEngineFT::GlyphInfo &info) | - |
879 | { | - |
880 | | - |
881 | return (short)(info.linearAdvance) != info.linearAdvanceexecuted 25922 times by 114 tests: return (short)(info.linearAdvance) != info.linearAdvance || (uchar)(info.width) != info.width || (uchar)(info.height) != info.height; 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
- ...
| 25922 |
882 | || (uchar)(info.width) != info.widthexecuted 25922 times by 114 tests: return (short)(info.linearAdvance) != info.linearAdvance || (uchar)(info.width) != info.width || (uchar)(info.height) != info.height; 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
- ...
| 25922 |
883 | || (uchar)(info.height) != info.height;executed 25922 times by 114 tests: return (short)(info.linearAdvance) != info.linearAdvance || (uchar)(info.width) != info.width || (uchar)(info.height) != info.height; 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
- ...
| 25922 |
884 | } | - |
885 | | - |
886 | QFontEngineFT::Glyph *QFontEngineFT::loadGlyph(QGlyphSet *set, uint glyph, | - |
887 | QFixed subPixelPosition, | - |
888 | GlyphFormat format, | - |
889 | bool fetchMetricsOnly) const | - |
890 | { | - |
891 | | - |
892 | | - |
893 | if (format == Format_None)TRUE | evaluated 7503 times by 114 testsEvaluated 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
- ...
| FALSE | evaluated 18421 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
| 7503-18421 |
894 | format = defaultFormat != Format_None ? defaultFormat : Format_Mono;executed 7503 times by 114 tests: format = defaultFormat != Format_None ? defaultFormat : Format_Mono; 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
- ...
TRUE | evaluated 7503 times by 114 testsEvaluated 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
- ...
| FALSE | never evaluated |
| 0-7503 |
895 | Q_ASSERT(format != Format_None); | - |
896 | | - |
897 | Glyph *g = set ? set->getGlyph(glyph, subPixelPosition) : 0;TRUE | evaluated 25924 times by 114 testsEvaluated 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
- ...
| FALSE | never evaluated |
| 0-25924 |
898 | if (g && g->format == format && (fetchMetricsOnly || g->data))TRUE | evaluated 13665 times by 57 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFormLayout
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGridLayout
- tst_QHeaderView
- tst_QItemDelegate
- tst_QLabel
- ...
| FALSE | evaluated 12259 times by 114 testsEvaluated 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
- ...
|
TRUE | evaluated 13664 times by 56 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFormLayout
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGridLayout
- tst_QHeaderView
- tst_QItemDelegate
- tst_QLabel
- ...
| FALSE | evaluated 1 time by 1 test |
TRUE | never evaluated | FALSE | evaluated 13664 times by 56 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFormLayout
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGridLayout
- tst_QHeaderView
- tst_QItemDelegate
- tst_QLabel
- ...
|
TRUE | never evaluated | FALSE | evaluated 13664 times by 56 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFormLayout
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGridLayout
- tst_QHeaderView
- tst_QItemDelegate
- tst_QLabel
- ...
|
| 0-13665 |
899 | return g; never executed: return g; | 0 |
900 | | - |
901 | if (!g && set && set->isGlyphMissing(glyph))TRUE | evaluated 12259 times by 114 testsEvaluated 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
- ...
| FALSE | evaluated 13665 times by 57 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFormLayout
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGridLayout
- tst_QHeaderView
- tst_QItemDelegate
- tst_QLabel
- ...
|
TRUE | evaluated 12259 times by 114 testsEvaluated 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
- ...
| FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 12259 times by 114 testsEvaluated 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
- ...
|
| 0-13665 |
902 | return &emptyGlyph; never executed: return &emptyGlyph; | 0 |
903 | | - |
904 | | - |
905 | FT_Face face = freetype->face; | - |
906 | | - |
907 | FT_Matrix matrix = freetype->matrix; | - |
908 | | - |
909 | FT_Vector v; | - |
910 | v.x = format == Format_Mono ? 0 : FT_Pos(subPixelPosition.value());TRUE | evaluated 114 times by 3 testsEvaluated by:- tst_QPainter
- tst_QStaticText
- tst_QWizard
| FALSE | evaluated 25810 times by 114 testsEvaluated 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
- ...
|
| 114-25810 |
911 | v.y = 0; | - |
912 | FT_Set_Transform(face, &matrix, &v); | - |
913 | | - |
914 | bool hsubpixel = false; | - |
915 | int vfactor = 1; | - |
916 | int load_flags = loadFlags(set, format, 0, hsubpixel, vfactor); | - |
917 | | - |
918 | bool transform = matrix.xx != 0x10000TRUE | evaluated 2498 times by 7 testsEvaluated by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QPrinter
- tst_QStaticText
- tst_QTabWidget
| FALSE | evaluated 23426 times by 114 testsEvaluated 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
- ...
|
| 2498-23426 |
919 | || matrix.yy != 0x10000TRUE | never evaluated | FALSE | evaluated 23426 times by 114 testsEvaluated 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
- ...
|
| 0-23426 |
920 | || matrix.xy != 0TRUE | never evaluated | FALSE | evaluated 23426 times by 114 testsEvaluated 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
- ...
|
| 0-23426 |
921 | || matrix.yx != 0;TRUE | never evaluated | FALSE | evaluated 23426 times by 114 testsEvaluated 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
- ...
|
| 0-23426 |
922 | | - |
923 | if (transform || (format != Format_Mono && !isScalableBitmap()))TRUE | evaluated 2498 times by 7 testsEvaluated by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QPrinter
- tst_QStaticText
- tst_QTabWidget
| FALSE | evaluated 23426 times by 114 testsEvaluated 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
- ...
|
TRUE | evaluated 23312 times by 114 testsEvaluated 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
- ...
| FALSE | evaluated 114 times by 3 testsEvaluated by:- tst_QPainter
- tst_QStaticText
- tst_QWizard
|
TRUE | evaluated 23312 times by 114 testsEvaluated 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
- ...
| FALSE | never evaluated |
| 0-23426 |
924 | load_flags |= FT_LOAD_NO_BITMAP;executed 25810 times by 114 tests: load_flags |= ( 1L << 3 ); 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
- ...
| 25810 |
925 | | - |
926 | FT_Error err = FT_Load_Glyph(face, glyph, load_flags); | - |
927 | if (err && (load_flags & FT_LOAD_NO_BITMAP)) {TRUE | evaluated 2 times by 1 test | FALSE | evaluated 25922 times by 114 testsEvaluated 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
- ...
|
TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
| 0-25922 |
928 | load_flags &= ~FT_LOAD_NO_BITMAP; | - |
929 | err = FT_Load_Glyph(face, glyph, load_flags); | - |
930 | }executed 2 times by 1 test: end of block | 2 |
931 | if (err == FT_Err_Too_Few_Arguments) {TRUE | never evaluated | FALSE | evaluated 25924 times by 114 testsEvaluated 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
- ...
|
| 0-25924 |
932 | | - |
933 | load_flags |= FT_LOAD_FORCE_AUTOHINT; | - |
934 | err = FT_Load_Glyph(face, glyph, load_flags); | - |
935 | } else if (err == FT_Err_Execution_Too_Long) { never executed: end of block TRUE | never evaluated | FALSE | evaluated 25924 times by 114 testsEvaluated 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
- ...
|
| 0-25924 |
936 | | - |
937 | | - |
938 | qWarning("load glyph failed due to broken hinting bytecode in font, switching to auto hinting"); | - |
939 | default_load_flags |= FT_LOAD_FORCE_AUTOHINT; | - |
940 | load_flags |= FT_LOAD_FORCE_AUTOHINT; | - |
941 | err = FT_Load_Glyph(face, glyph, load_flags); | - |
942 | } never executed: end of block | 0 |
943 | if (err != FT_Err_Ok) {TRUE | evaluated 2 times by 1 test | FALSE | evaluated 25922 times by 114 testsEvaluated 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
- ...
|
| 2-25922 |
944 | qWarning("load glyph failed err=%x face=%p, glyph=%d", err, face, glyph); | - |
945 | if (set)TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
| 0-2 |
946 | set->setGlyphMissing(glyph);executed 2 times by 1 test: set->setGlyphMissing(glyph); | 2 |
947 | return &emptyGlyph;executed 2 times by 1 test: return &emptyGlyph; | 2 |
948 | } | - |
949 | | - |
950 | FT_GlyphSlot slot = face->glyph; | - |
951 | | - |
952 | if (embolden)TRUE | never evaluated | FALSE | evaluated 25922 times by 114 testsEvaluated 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
- ...
|
| 0-25922 |
953 | FT_GlyphSlot_Embolden(slot); never executed: FT_GlyphSlot_Embolden(slot); | 0 |
954 | if (obliquen) {TRUE | never evaluated | FALSE | evaluated 25922 times by 114 testsEvaluated 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
- ...
|
| 0-25922 |
955 | FT_GlyphSlot_Oblique(slot); | - |
956 | | - |
957 | | - |
958 | | - |
959 | transform = true; | - |
960 | FT_Matrix m; | - |
961 | m.xx = 0x10000; | - |
962 | m.yx = 0x0; | - |
963 | m.xy = 0x6000; | - |
964 | m.yy = 0x10000; | - |
965 | | - |
966 | FT_Matrix_Multiply(&m, &matrix); | - |
967 | } never executed: end of block | 0 |
968 | | - |
969 | GlyphInfo info; | - |
970 | info.linearAdvance = slot->linearHoriAdvance >> 10; | - |
971 | info.xOff = TRUNC(ROUND(slot->advance.x)); | - |
972 | info.yOff = 0; | - |
973 | | - |
974 | if ((set && set->outline_drawing) || fetchMetricsOnly) {TRUE | evaluated 25922 times by 114 testsEvaluated 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
- ...
| FALSE | never evaluated |
TRUE | evaluated 40 times by 4 testsEvaluated by:- tst_QFontDatabase
- tst_QFontDialog
- tst_QPainter
- tst_QToolTip
| FALSE | evaluated 25882 times by 114 testsEvaluated 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
- ...
|
TRUE | evaluated 7462 times by 114 testsEvaluated 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
- ...
| FALSE | evaluated 18420 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
| 0-25922 |
975 | int left = FLOOR(slot->metrics.horiBearingX); | - |
976 | int right = CEIL(slot->metrics.horiBearingX + slot->metrics.width); | - |
977 | int top = CEIL(slot->metrics.horiBearingY); | - |
978 | int bottom = FLOOR(slot->metrics.horiBearingY - slot->metrics.height); | - |
979 | info.x = TRUNC(left); | - |
980 | info.y = TRUNC(top); | - |
981 | info.width = TRUNC(right - left); | - |
982 | info.height = TRUNC(top - bottom); | - |
983 | | - |
984 | | - |
985 | if (areMetricsTooLarge(info))TRUE | evaluated 14 times by 1 test | FALSE | evaluated 7488 times by 114 testsEvaluated 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
- ...
|
| 14-7488 |
986 | return 0;executed 14 times by 1 test: return 0; | 14 |
987 | | - |
988 | g = new Glyph; | - |
989 | g->data = 0; | - |
990 | g->linearAdvance = info.linearAdvance; | - |
991 | g->width = info.width; | - |
992 | g->height = info.height; | - |
993 | g->x = info.x; | - |
994 | g->y = info.y; | - |
995 | g->advance = info.xOff; | - |
996 | g->format = format; | - |
997 | | - |
998 | if (set)TRUE | evaluated 7488 times by 114 testsEvaluated 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
- ...
| FALSE | never evaluated |
| 0-7488 |
999 | set->setGlyph(glyph, subPixelPosition, g);executed 7488 times by 114 tests: set->setGlyph(glyph, subPixelPosition, g); 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
- ...
| 7488 |
1000 | | - |
1001 | return g;executed 7488 times by 114 tests: return g; 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
- ...
| 7488 |
1002 | } | - |
1003 | | - |
1004 | int glyph_buffer_size = 0; | - |
1005 | QScopedArrayPointer<uchar> glyph_buffer; | - |
1006 | #if defined(QT_USE_FREETYPE_LCDFILTER) | - |
1007 | bool useFreetypeRenderGlyph = false; | - |
1008 | if (slot->format == FT_GLYPH_FORMAT_OUTLINE && (hsubpixel || vfactor != 1)) {TRUE | evaluated 18420 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 18420 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
TRUE | never evaluated | FALSE | evaluated 18420 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
| 0-18420 |
1009 | err = FT_Library_SetLcdFilter(slot->library, (FT_LcdFilter)lcdFilterType); | - |
1010 | if (err == FT_Err_Ok)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1011 | useFreetypeRenderGlyph = true; never executed: useFreetypeRenderGlyph = true; | 0 |
1012 | } never executed: end of block | 0 |
1013 | | - |
1014 | if (useFreetypeRenderGlyph) {TRUE | never evaluated | FALSE | evaluated 18420 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
| 0-18420 |
1015 | err = FT_Render_Glyph(slot, hsubpixel ? FT_RENDER_MODE_LCD : FT_RENDER_MODE_LCD_V); | - |
1016 | | - |
1017 | if (err != FT_Err_Ok)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1018 | qWarning("render glyph failed err=%x face=%p, glyph=%d", err, face, glyph); never executed: QMessageLogger(__FILE__, 1018, __PRETTY_FUNCTION__).warning("render glyph failed err=%x face=%p, glyph=%d", err, face, glyph); | 0 |
1019 | | - |
1020 | FT_Library_SetLcdFilter(slot->library, FT_LCD_FILTER_NONE); | - |
1021 | | - |
1022 | info.height = slot->bitmap.rows / vfactor; | - |
1023 | info.width = hsubpixel ? slot->bitmap.width / 3 : slot->bitmap.width;TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1024 | info.x = slot->bitmap_left; | - |
1025 | info.y = slot->bitmap_top; | - |
1026 | | - |
1027 | glyph_buffer_size = info.width * info.height * 4; | - |
1028 | glyph_buffer.reset(new uchar[glyph_buffer_size]); | - |
1029 | | - |
1030 | if (hsubpixel)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1031 | convertRGBToARGB(slot->bitmap.buffer, (uint *)glyph_buffer.data(), info.width, info.height, slot->bitmap.pitch, subpixelType != Subpixel_RGB, false); never executed: convertRGBToARGB(slot->bitmap.buffer, (uint *)glyph_buffer.data(), info.width, info.height, slot->bitmap.pitch, subpixelType != Subpixel_RGB, false); | 0 |
1032 | else if (vfactor != 1)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1033 | convertRGBToARGB_V(slot->bitmap.buffer, (uint *)glyph_buffer.data(), info.width, info.height, slot->bitmap.pitch, subpixelType != Subpixel_VRGB, false); never executed: convertRGBToARGB_V(slot->bitmap.buffer, (uint *)glyph_buffer.data(), info.width, info.height, slot->bitmap.pitch, subpixelType != Subpixel_VRGB, false); | 0 |
1034 | } else never executed: end of block | 0 |
1035 | #endif | - |
1036 | { | - |
1037 | int left = slot->metrics.horiBearingX; | - |
1038 | int right = slot->metrics.horiBearingX + slot->metrics.width; | - |
1039 | int top = slot->metrics.horiBearingY; | - |
1040 | int bottom = slot->metrics.horiBearingY - slot->metrics.height; | - |
1041 | if(transform && slot->format != FT_GLYPH_FORMAT_BITMAP) {TRUE | evaluated 2498 times by 7 testsEvaluated by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QPrinter
- tst_QStaticText
- tst_QTabWidget
| FALSE | evaluated 15922 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
TRUE | evaluated 2498 times by 7 testsEvaluated by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QPrinter
- tst_QStaticText
- tst_QTabWidget
| FALSE | never evaluated |
| 0-15922 |
1042 | int l, r, t, b; | - |
1043 | FT_Vector vector; | - |
1044 | vector.x = left; | - |
1045 | vector.y = top; | - |
1046 | FT_Vector_Transform(&vector, &matrix); | - |
1047 | l = r = vector.x; | - |
1048 | t = b = vector.y; | - |
1049 | vector.x = right; | - |
1050 | vector.y = top; | - |
1051 | FT_Vector_Transform(&vector, &matrix); | - |
1052 | if (l > vector.x) l = vector.x;executed 608 times by 1 test: l = vector.x; TRUE | evaluated 608 times by 1 test | FALSE | evaluated 1890 times by 7 testsEvaluated by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QPrinter
- tst_QStaticText
- tst_QTabWidget
|
| 608-1890 |
1053 | if (r < vector.x) r = vector.x;executed 1279 times by 5 tests: r = vector.x; Executed by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QPrinter
- tst_QStaticText
TRUE | evaluated 1279 times by 5 testsEvaluated by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QPrinter
- tst_QStaticText
| FALSE | evaluated 1219 times by 7 testsEvaluated by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QPrinter
- tst_QStaticText
- tst_QTabWidget
|
| 1219-1279 |
1054 | if (t < vector.y) t = vector.y;executed 704 times by 3 tests: t = vector.y; Executed by:- tst_QGraphicsView
- tst_QMdiArea
- tst_QTabWidget
TRUE | evaluated 704 times by 3 testsEvaluated by:- tst_QGraphicsView
- tst_QMdiArea
- tst_QTabWidget
| FALSE | evaluated 1794 times by 7 testsEvaluated by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QPrinter
- tst_QStaticText
- tst_QTabWidget
|
| 704-1794 |
1055 | if (b > vector.y) b = vector.y;executed 688 times by 5 tests: b = vector.y; Executed by:- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QStaticText
- tst_QTabWidget
TRUE | evaluated 688 times by 5 testsEvaluated by:- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QStaticText
- tst_QTabWidget
| FALSE | evaluated 1810 times by 7 testsEvaluated by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QPrinter
- tst_QStaticText
- tst_QTabWidget
|
| 688-1810 |
1056 | vector.x = right; | - |
1057 | vector.y = bottom; | - |
1058 | FT_Vector_Transform(&vector, &matrix); | - |
1059 | if (l > vector.x) l = vector.x;executed 590 times by 5 tests: l = vector.x; Executed by:- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QStaticText
- tst_QTabWidget
TRUE | evaluated 590 times by 5 testsEvaluated by:- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QStaticText
- tst_QTabWidget
| FALSE | evaluated 1908 times by 7 testsEvaluated by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QPrinter
- tst_QStaticText
- tst_QTabWidget
|
| 590-1908 |
1060 | if (r < vector.x) r = vector.x;executed 620 times by 3 tests: r = vector.x; Executed by:- tst_QGraphicsView
- tst_QMdiArea
- tst_QTabWidget
TRUE | evaluated 620 times by 3 testsEvaluated by:- tst_QGraphicsView
- tst_QMdiArea
- tst_QTabWidget
| FALSE | evaluated 1878 times by 7 testsEvaluated by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QPrinter
- tst_QStaticText
- tst_QTabWidget
|
| 620-1878 |
1061 | if (t < vector.y) t = vector.y;executed 524 times by 1 test: t = vector.y; TRUE | evaluated 524 times by 1 test | FALSE | evaluated 1974 times by 7 testsEvaluated by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QPrinter
- tst_QStaticText
- tst_QTabWidget
|
| 524-1974 |
1062 | if (b > vector.y) b = vector.y;executed 1186 times by 5 tests: b = vector.y; Executed by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QPrinter
- tst_QStaticText
TRUE | evaluated 1186 times by 5 testsEvaluated by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QPrinter
- tst_QStaticText
| FALSE | evaluated 1312 times by 7 testsEvaluated by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QPrinter
- tst_QStaticText
- tst_QTabWidget
|
| 1186-1312 |
1063 | vector.x = left; | - |
1064 | vector.y = bottom; | - |
1065 | FT_Vector_Transform(&vector, &matrix); | - |
1066 | if (l > vector.x) l = vector.x;executed 334 times by 3 tests: l = vector.x; Executed by:- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QStaticText
TRUE | evaluated 334 times by 3 testsEvaluated by:- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QStaticText
| FALSE | evaluated 2164 times by 7 testsEvaluated by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QPrinter
- tst_QStaticText
- tst_QTabWidget
|
| 334-2164 |
1067 | if (r < vector.x) r = vector.x;executed 288 times by 1 test: r = vector.x; TRUE | evaluated 288 times by 1 test | FALSE | evaluated 2210 times by 7 testsEvaluated by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QPrinter
- tst_QStaticText
- tst_QTabWidget
|
| 288-2210 |
1068 | if (t < vector.y) t = vector.y;executed 256 times by 1 test: t = vector.y; TRUE | evaluated 256 times by 1 test | FALSE | evaluated 2242 times by 7 testsEvaluated by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QPrinter
- tst_QStaticText
- tst_QTabWidget
|
| 256-2242 |
1069 | if (b > vector.y) b = vector.y;executed 320 times by 1 test: b = vector.y; TRUE | evaluated 320 times by 1 test | FALSE | evaluated 2178 times by 7 testsEvaluated by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QPrinter
- tst_QStaticText
- tst_QTabWidget
|
| 320-2178 |
1070 | left = l; | - |
1071 | right = r; | - |
1072 | top = t; | - |
1073 | bottom = b; | - |
1074 | }executed 2498 times by 7 tests: end of block Executed by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QPrinter
- tst_QStaticText
- tst_QTabWidget
| 2498 |
1075 | left = FLOOR(left); | - |
1076 | right = CEIL(right); | - |
1077 | bottom = FLOOR(bottom); | - |
1078 | top = CEIL(top); | - |
1079 | | - |
1080 | int hpixels = TRUNC(right - left); | - |
1081 | | - |
1082 | if (subPixelPosition > 0 && format != Format_Mono)TRUE | evaluated 50 times by 1 test | FALSE | evaluated 18370 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
TRUE | evaluated 50 times by 1 test | FALSE | never evaluated |
| 0-18370 |
1083 | hpixels++;executed 50 times by 1 test: hpixels++; | 50 |
1084 | | - |
1085 | if (hsubpixel)TRUE | never evaluated | FALSE | evaluated 18420 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
| 0-18420 |
1086 | hpixels = hpixels*3 + 8; never executed: hpixels = hpixels*3 + 8; | 0 |
1087 | info.width = hpixels; | - |
1088 | info.height = TRUNC(top - bottom); | - |
1089 | info.x = TRUNC(left); | - |
1090 | info.y = TRUNC(top); | - |
1091 | if (hsubpixel) {TRUE | never evaluated | FALSE | evaluated 18420 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
| 0-18420 |
1092 | info.width /= 3; | - |
1093 | info.x -= 1; | - |
1094 | } never executed: end of block | 0 |
1095 | | - |
1096 | | - |
1097 | if (areMetricsTooLarge(info))TRUE | never evaluated | FALSE | evaluated 18420 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
| 0-18420 |
1098 | return 0; never executed: return 0; | 0 |
1099 | | - |
1100 | int pitch = (format == Format_Mono ? ((info.width + 31) & ~31) >> 3 :TRUE | evaluated 66 times by 3 testsEvaluated by:- tst_QPainter
- tst_QStaticText
- tst_QWizard
| FALSE | evaluated 18354 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
| 66-18354 |
1101 | (format == Format_A8 ? (info.width + 3) & ~3 : info.width * 4));TRUE | evaluated 18354 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| FALSE | never evaluated |
| 0-18354 |
1102 | if (glyph_buffer_size < pitch * info.height) {TRUE | evaluated 4558 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| FALSE | evaluated 13862 times by 58 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFormLayout
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGridLayout
- tst_QHeaderView
- tst_QItemDelegate
- tst_QLabel
- ...
|
| 4558-13862 |
1103 | glyph_buffer_size = pitch * info.height; | - |
1104 | glyph_buffer.reset(new uchar[glyph_buffer_size]); | - |
1105 | memset(glyph_buffer.data(), 0, glyph_buffer_size); | - |
1106 | }executed 4558 times by 76 tests: end of block Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| 4558 |
1107 | | - |
1108 | if (slot->format == FT_GLYPH_FORMAT_OUTLINE) {TRUE | evaluated 18420 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| FALSE | never evaluated |
| 0-18420 |
1109 | FT_Bitmap bitmap; | - |
1110 | bitmap.rows = info.height*vfactor; | - |
1111 | bitmap.width = hpixels; | - |
1112 | bitmap.pitch = format == Format_Mono ? (((info.width + 31) & ~31) >> 3) : ((bitmap.width + 3) & ~3);TRUE | evaluated 66 times by 3 testsEvaluated by:- tst_QPainter
- tst_QStaticText
- tst_QWizard
| FALSE | evaluated 18354 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
| 66-18354 |
1113 | int bitmap_buffer_size = bitmap.rows * bitmap.pitch; | - |
1114 | if (!hsubpixel && vfactor == 1 && format != Format_A32) {TRUE | evaluated 18420 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| FALSE | never evaluated |
TRUE | evaluated 18420 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| FALSE | never evaluated |
TRUE | evaluated 18420 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| FALSE | never evaluated |
| 0-18420 |
1115 | Q_ASSERT(glyph_buffer_size <= bitmap_buffer_size); | - |
1116 | bitmap.buffer = glyph_buffer.data(); | - |
1117 | } else {executed 18420 times by 76 tests: end of block Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| 18420 |
1118 | bitmap.buffer = new uchar[bitmap_buffer_size]; | - |
1119 | memset(bitmap.buffer, 0, bitmap_buffer_size); | - |
1120 | } never executed: end of block | 0 |
1121 | bitmap.pixel_mode = format == Format_Mono ? FT_PIXEL_MODE_MONO : FT_PIXEL_MODE_GRAY;TRUE | evaluated 66 times by 3 testsEvaluated by:- tst_QPainter
- tst_QStaticText
- tst_QWizard
| FALSE | evaluated 18354 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
| 66-18354 |
1122 | FT_Matrix matrix; | - |
1123 | matrix.xx = (hsubpixel ? 3 : 1) << 16;TRUE | never evaluated | FALSE | evaluated 18420 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
| 0-18420 |
1124 | matrix.yy = vfactor << 16; | - |
1125 | matrix.yx = matrix.xy = 0; | - |
1126 | | - |
1127 | FT_Outline_Transform(&slot->outline, &matrix); | - |
1128 | FT_Outline_Translate (&slot->outline, (hsubpixel ? -3*left +(4<<6) : -left), -bottom*vfactor); | - |
1129 | FT_Outline_Get_Bitmap(slot->library, &slot->outline, &bitmap); | - |
1130 | if (hsubpixel) {TRUE | never evaluated | FALSE | evaluated 18420 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
| 0-18420 |
1131 | Q_ASSERT (bitmap.pixel_mode == FT_PIXEL_MODE_GRAY); | - |
1132 | Q_ASSERT(antialias); | - |
1133 | uchar *convoluted = new uchar[bitmap_buffer_size]; | - |
1134 | bool useLegacyLcdFilter = false; | - |
1135 | #if defined(FC_LCD_FILTER) && defined(FT_LCD_FILTER_H) | - |
1136 | useLegacyLcdFilter = (lcdFilterType == FT_LCD_FILTER_LEGACY); | - |
1137 | #endif | - |
1138 | uchar *buffer = bitmap.buffer; | - |
1139 | if (!useLegacyLcdFilter) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1140 | convoluteBitmap(bitmap.buffer, convoluted, bitmap.width, info.height, bitmap.pitch); | - |
1141 | buffer = convoluted; | - |
1142 | } never executed: end of block | 0 |
1143 | convertRGBToARGB(buffer + 1, (uint *)glyph_buffer.data(), info.width, info.height, bitmap.pitch, subpixelType != Subpixel_RGB, useLegacyLcdFilter); | - |
1144 | delete [] convoluted; | - |
1145 | } else if (vfactor != 1) { never executed: end of block TRUE | never evaluated | FALSE | evaluated 18420 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
| 0-18420 |
1146 | convertRGBToARGB_V(bitmap.buffer, (uint *)glyph_buffer.data(), info.width, info.height, bitmap.pitch, subpixelType != Subpixel_VRGB, true); | - |
1147 | } else if (format == Format_A32 && bitmap.pixel_mode == FT_PIXEL_MODE_GRAY) { never executed: end of block TRUE | never evaluated | FALSE | evaluated 18420 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
TRUE | never evaluated | FALSE | never evaluated |
| 0-18420 |
1148 | convertGRAYToARGB(bitmap.buffer, (uint *)glyph_buffer.data(), info.width, info.height, bitmap.pitch); | - |
1149 | } never executed: end of block | 0 |
1150 | | - |
1151 | if (bitmap.buffer != glyph_buffer.data())TRUE | never evaluated | FALSE | evaluated 18420 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
| 0-18420 |
1152 | delete [] bitmap.buffer; never executed: delete [] bitmap.buffer; | 0 |
1153 | } else if (slot->format == FT_GLYPH_FORMAT_BITMAP) {executed 18420 times by 76 tests: end of block Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
TRUE | never evaluated | FALSE | never evaluated |
| 0-18420 |
1154 | #if ((FREETYPE_MAJOR*10000 + FREETYPE_MINOR*100) >= 20500) | - |
1155 | Q_ASSERT(slot->bitmap.pixel_mode == FT_PIXEL_MODE_MONO || slot->bitmap.pixel_mode == FT_PIXEL_MODE_BGRA); | - |
1156 | #else | - |
1157 | Q_ASSERT(slot->bitmap.pixel_mode == FT_PIXEL_MODE_MONO); | - |
1158 | #endif | - |
1159 | uchar *src = slot->bitmap.buffer; | - |
1160 | uchar *dst = glyph_buffer.data(); | - |
1161 | int h = slot->bitmap.rows; | - |
1162 | if (format == Format_Mono) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1163 | int bytes = ((info.width + 7) & ~7) >> 3; | - |
1164 | while (h--) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1165 | memcpy (dst, src, bytes); | - |
1166 | dst += pitch; | - |
1167 | src += slot->bitmap.pitch; | - |
1168 | } never executed: end of block | 0 |
1169 | } else if (slot->bitmap.pixel_mode == FT_PIXEL_MODE_MONO) { never executed: end of block TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1170 | if (hsubpixel) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1171 | while (h--) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1172 | uint *dd = (uint *)dst; | - |
1173 | *dd++ = 0; | - |
1174 | for (int x = 0; x < static_cast<int>(slot->bitmap.width); x++) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1175 | uint a = ((src[x >> 3] & (0x80 >> (x & 7))) ? 0xffffff : 0x000000);TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1176 | *dd++ = a; | - |
1177 | } never executed: end of block | 0 |
1178 | *dd++ = 0; | - |
1179 | dst += pitch; | - |
1180 | src += slot->bitmap.pitch; | - |
1181 | } never executed: end of block | 0 |
1182 | } else if (vfactor != 1) { never executed: end of block TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1183 | while (h--) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1184 | uint *dd = (uint *)dst; | - |
1185 | for (int x = 0; x < static_cast<int>(slot->bitmap.width); x++) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1186 | uint a = ((src[x >> 3] & (0x80 >> (x & 7))) ? 0xffffff : 0x000000);TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1187 | *dd++ = a; | - |
1188 | } never executed: end of block | 0 |
1189 | dst += pitch; | - |
1190 | src += slot->bitmap.pitch; | - |
1191 | } never executed: end of block | 0 |
1192 | } else { never executed: end of block | 0 |
1193 | while (h--) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1194 | for (int x = 0; x < static_cast<int>(slot->bitmap.width); x++) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1195 | unsigned char a = ((src[x >> 3] & (0x80 >> (x & 7))) ? 0xff : 0x00);TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1196 | dst[x] = a; | - |
1197 | } never executed: end of block | 0 |
1198 | dst += pitch; | - |
1199 | src += slot->bitmap.pitch; | - |
1200 | } never executed: end of block | 0 |
1201 | } never executed: end of block | 0 |
1202 | } | - |
1203 | #if ((FREETYPE_MAJOR*10000 + FREETYPE_MINOR*100) >= 20500) | - |
1204 | else if (slot->bitmap.pixel_mode == FT_PIXEL_MODE_BGRA)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1205 | { | - |
1206 | while (h--) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1207 | #if Q_BYTE_ORDER == Q_BIG_ENDIAN | - |
1208 | const quint32 *srcPixel = (const quint32 *)src; | - |
1209 | quint32 *dstPixel = (quint32 *)dst; | - |
1210 | for (int x = 0; x < static_cast<int>(slot->bitmap.width); x++, srcPixel++, dstPixel++) { | - |
1211 | const quint32 pixel = *srcPixel; | - |
1212 | *dstPixel = qbswap(pixel); | - |
1213 | } | - |
1214 | #else | - |
1215 | memcpy(dst, src, slot->bitmap.width * 4); | - |
1216 | #endif | - |
1217 | dst += slot->bitmap.pitch; | - |
1218 | src += slot->bitmap.pitch; | - |
1219 | } never executed: end of block | 0 |
1220 | info.width = info.linearAdvance = info.xOff = slot->bitmap.width; | - |
1221 | info.height = slot->bitmap.rows; | - |
1222 | info.x = slot->bitmap_left; | - |
1223 | info.y = slot->bitmap_top; | - |
1224 | } never executed: end of block | 0 |
1225 | #endif | - |
1226 | } else { never executed: end of block | 0 |
1227 | qWarning("QFontEngine: Glyph neither outline nor bitmap format=%d", slot->format); | - |
1228 | return 0; never executed: return 0; | 0 |
1229 | } | - |
1230 | } | - |
1231 | | - |
1232 | | - |
1233 | if (!g) {TRUE | evaluated 4755 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| FALSE | evaluated 13665 times by 57 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFormLayout
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGridLayout
- tst_QHeaderView
- tst_QItemDelegate
- tst_QLabel
- ...
|
| 4755-13665 |
1234 | g = new Glyph; | - |
1235 | g->data = 0; | - |
1236 | }executed 4755 times by 76 tests: end of block Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| 4755 |
1237 | | - |
1238 | g->linearAdvance = info.linearAdvance; | - |
1239 | g->width = info.width; | - |
1240 | g->height = info.height; | - |
1241 | g->x = info.x; | - |
1242 | g->y = info.y; | - |
1243 | g->advance = info.xOff; | - |
1244 | g->format = format; | - |
1245 | delete [] g->data; | - |
1246 | g->data = glyph_buffer.take(); | - |
1247 | | - |
1248 | if (set)TRUE | evaluated 18420 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| FALSE | never evaluated |
| 0-18420 |
1249 | set->setGlyph(glyph, subPixelPosition, g);executed 18420 times by 76 tests: set->setGlyph(glyph, subPixelPosition, g); Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| 18420 |
1250 | | - |
1251 | return g;executed 18420 times by 76 tests: return g; Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| 18420 |
1252 | } | - |
1253 | | - |
1254 | QFontEngine::FaceId QFontEngineFT::faceId() const | - |
1255 | { | - |
1256 | return face_id;executed 3703 times by 123 tests: return face_id; 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
- ...
| 3703 |
1257 | } | - |
1258 | | - |
1259 | QFontEngine::Properties QFontEngineFT::properties() const | - |
1260 | { | - |
1261 | Properties p = freetype->properties(); | - |
1262 | if (p.postscriptName.isEmpty()) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1263 | p.postscriptName = QFontEngine::convertToPostscriptFontFamilyName(fontDef.family.toUtf8()); | - |
1264 | } never executed: end of block | 0 |
1265 | | - |
1266 | return freetype->properties(); never executed: return freetype->properties(); | 0 |
1267 | } | - |
1268 | | - |
1269 | QFixed QFontEngineFT::emSquareSize() const | - |
1270 | { | - |
1271 | if (FT_IS_SCALABLE(freetype->face))TRUE | evaluated 2321 times by 123 testsEvaluated 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
- ...
| FALSE | never evaluated |
| 0-2321 |
1272 | return freetype->face->units_per_EM;executed 2321 times by 123 tests: return freetype->face->units_per_EM; 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
- ...
| 2321 |
1273 | else | - |
1274 | return freetype->face->size->metrics.y_ppem; never executed: return freetype->face->size->metrics.y_ppem; | 0 |
1275 | } | - |
1276 | | - |
1277 | bool QFontEngineFT::getSfntTableData(uint tag, uchar *buffer, uint *length) const | - |
1278 | { | - |
1279 | return ft_getSfntTable(freetype->face, tag, buffer, length);executed 944 times by 110 tests: return ft_getSfntTable(freetype->face, tag, buffer, length); 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 944 |
1280 | } | - |
1281 | | - |
1282 | int QFontEngineFT::synthesized() const | - |
1283 | { | - |
1284 | int s = 0; | - |
1285 | if ((fontDef.style != QFont::StyleNormal) && !(freetype->face->style_flags & FT_STYLE_FLAG_ITALIC))TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1286 | s = SynthesizedItalic; never executed: s = SynthesizedItalic; | 0 |
1287 | if ((fontDef.weight >= QFont::Bold) && !(freetype->face->style_flags & FT_STYLE_FLAG_BOLD))TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1288 | s |= SynthesizedBold; never executed: s |= SynthesizedBold; | 0 |
1289 | if (fontDef.stretch != 100 && FT_IS_SCALABLE(freetype->face))TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1290 | s |= SynthesizedStretch; never executed: s |= SynthesizedStretch; | 0 |
1291 | return s; never executed: return s; | 0 |
1292 | } | - |
1293 | | - |
1294 | QFixed QFontEngineFT::ascent() const | - |
1295 | { | - |
1296 | QFixed v = QFixed::fromFixed(metrics.ascender); | - |
1297 | if (scalableBitmapScaleFactor != 1)TRUE | never evaluated | FALSE | evaluated 697846 times by 121 testsEvaluated 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
- ...
|
| 0-697846 |
1298 | v *= scalableBitmapScaleFactor; never executed: v *= scalableBitmapScaleFactor; | 0 |
1299 | return v;executed 697846 times by 121 tests: return v; 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
- ...
| 697846 |
1300 | } | - |
1301 | | - |
1302 | QFixed QFontEngineFT::descent() const | - |
1303 | { | - |
1304 | QFixed v = QFixed::fromFixed(-metrics.descender); | - |
1305 | if (scalableBitmapScaleFactor != 1)TRUE | never evaluated | FALSE | evaluated 693872 times by 121 testsEvaluated 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
- ...
|
| 0-693872 |
1306 | v *= scalableBitmapScaleFactor; never executed: v *= scalableBitmapScaleFactor; | 0 |
1307 | return v;executed 693872 times by 121 tests: return v; 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
- ...
| 693872 |
1308 | } | - |
1309 | | - |
1310 | QFixed QFontEngineFT::leading() const | - |
1311 | { | - |
1312 | QFixed v = QFixed::fromFixed(metrics.height - metrics.ascender + metrics.descender); | - |
1313 | if (scalableBitmapScaleFactor != 1)TRUE | never evaluated | FALSE | evaluated 630142 times by 117 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 0-630142 |
1314 | v *= scalableBitmapScaleFactor; never executed: v *= scalableBitmapScaleFactor; | 0 |
1315 | return v;executed 630142 times by 117 tests: return v; 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 630142 |
1316 | } | - |
1317 | | - |
1318 | QFixed QFontEngineFT::xHeight() const | - |
1319 | { | - |
1320 | if (!isScalableBitmap()) {TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
1321 | TT_OS2 *os2 = (TT_OS2 *)FT_Get_Sfnt_Table(freetype->face, ft_sfnt_os2); | - |
1322 | if (os2 && os2->sxHeight) {TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 12 times by 1 test |
| 0-12 |
1323 | lockFace(); | - |
1324 | QFixed answer = QFixed(os2->sxHeight * freetype->face->size->metrics.y_ppem) / emSquareSize(); | - |
1325 | unlockFace(); | - |
1326 | return answer; never executed: return answer; | 0 |
1327 | } | - |
1328 | } else {executed 12 times by 1 test: end of block | 12 |
1329 | return QFixed(freetype->face->size->metrics.y_ppem) * scalableBitmapScaleFactor; never executed: return QFixed(freetype->face->size->metrics.y_ppem) * scalableBitmapScaleFactor; | 0 |
1330 | } | - |
1331 | return QFontEngine::xHeight();executed 12 times by 1 test: return QFontEngine::xHeight(); | 12 |
1332 | } | - |
1333 | | - |
1334 | QFixed QFontEngineFT::averageCharWidth() const | - |
1335 | { | - |
1336 | if (!isScalableBitmap()) {TRUE | evaluated 217 times by 22 testsEvaluated by:- tst_QApplication
- tst_QDataWidgetMapper
- tst_QFontMetrics
- tst_QGraphicsItem
- tst_QInputDialog
- tst_QItemDelegate
- tst_QLabel
- tst_QMessageBox
- tst_QMovie
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QProgressDialog
- tst_QSplitter
- tst_QStackedLayout
- tst_QTabWidget
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextFormat
- tst_QTextLayout
- tst_QWidget
- tst_QWizard
| FALSE | never evaluated |
| 0-217 |
1337 | TT_OS2 *os2 = (TT_OS2 *)FT_Get_Sfnt_Table(freetype->face, ft_sfnt_os2); | - |
1338 | if (os2 && os2->xAvgCharWidth) {TRUE | evaluated 217 times by 22 testsEvaluated by:- tst_QApplication
- tst_QDataWidgetMapper
- tst_QFontMetrics
- tst_QGraphicsItem
- tst_QInputDialog
- tst_QItemDelegate
- tst_QLabel
- tst_QMessageBox
- tst_QMovie
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QProgressDialog
- tst_QSplitter
- tst_QStackedLayout
- tst_QTabWidget
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextFormat
- tst_QTextLayout
- tst_QWidget
- tst_QWizard
| FALSE | never evaluated |
TRUE | evaluated 217 times by 22 testsEvaluated by:- tst_QApplication
- tst_QDataWidgetMapper
- tst_QFontMetrics
- tst_QGraphicsItem
- tst_QInputDialog
- tst_QItemDelegate
- tst_QLabel
- tst_QMessageBox
- tst_QMovie
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QProgressDialog
- tst_QSplitter
- tst_QStackedLayout
- tst_QTabWidget
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextFormat
- tst_QTextLayout
- tst_QWidget
- tst_QWizard
| FALSE | never evaluated |
| 0-217 |
1339 | lockFace(); | - |
1340 | QFixed answer = QFixed(os2->xAvgCharWidth * freetype->face->size->metrics.x_ppem) / emSquareSize(); | - |
1341 | unlockFace(); | - |
1342 | return answer;executed 217 times by 22 tests: return answer; Executed by:- tst_QApplication
- tst_QDataWidgetMapper
- tst_QFontMetrics
- tst_QGraphicsItem
- tst_QInputDialog
- tst_QItemDelegate
- tst_QLabel
- tst_QMessageBox
- tst_QMovie
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QProgressDialog
- tst_QSplitter
- tst_QStackedLayout
- tst_QTabWidget
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextFormat
- tst_QTextLayout
- tst_QWidget
- tst_QWizard
| 217 |
1343 | } | - |
1344 | } else { never executed: end of block | 0 |
1345 | const qreal aspectRatio = (qreal)xsize / ysize; | - |
1346 | return QFixed::fromReal(fontDef.pixelSize * aspectRatio); never executed: return QFixed::fromReal(fontDef.pixelSize * aspectRatio); | 0 |
1347 | } | - |
1348 | | - |
1349 | return QFontEngine::averageCharWidth(); never executed: return QFontEngine::averageCharWidth(); | 0 |
1350 | } | - |
1351 | | - |
1352 | qreal QFontEngineFT::maxCharWidth() const | - |
1353 | { | - |
1354 | QFixed max_advance = QFixed::fromFixed(metrics.max_advance); | - |
1355 | if (scalableBitmapScaleFactor != 1)TRUE | never evaluated | FALSE | evaluated 3072 times by 49 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QGridLayout
- tst_QHeaderView
- ...
|
| 0-3072 |
1356 | max_advance *= scalableBitmapScaleFactor; never executed: max_advance *= scalableBitmapScaleFactor; | 0 |
1357 | return max_advance.toReal();executed 3072 times by 49 tests: return max_advance.toReal(); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QGridLayout
- tst_QHeaderView
- ...
| 3072 |
1358 | } | - |
1359 | | - |
1360 | QFixed QFontEngineFT::lineThickness() const | - |
1361 | { | - |
1362 | return line_thickness;executed 499 times by 24 tests: return line_thickness; Executed by:- tst_QAccessibility
- tst_QApplication
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QLabel
- tst_QLineEdit
- tst_QMdiSubWindow
- tst_QMenu
- tst_QMenuBar
- tst_QMessageBox
- tst_QPrinter
- tst_QPushButton
- tst_QStaticText
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QTextEdit
- tst_QToolBar
- tst_QWizard
- tst_languageChange
| 499 |
1363 | } | - |
1364 | | - |
1365 | QFixed QFontEngineFT::underlinePosition() const | - |
1366 | { | - |
1367 | return underline_position;executed 496 times by 23 tests: return underline_position; Executed by:- tst_QAccessibility
- tst_QApplication
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGlyphRun
- tst_QLabel
- tst_QLineEdit
- tst_QMdiSubWindow
- tst_QMenu
- tst_QMenuBar
- tst_QMessageBox
- tst_QPrinter
- tst_QPushButton
- tst_QStaticText
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QTextEdit
- tst_QToolBar
- tst_QWizard
- tst_languageChange
| 496 |
1368 | } | - |
1369 | | - |
1370 | void QFontEngineFT::doKerning(QGlyphLayout *g, QFontEngine::ShaperFlags flags) const | - |
1371 | { | - |
1372 | if (!kerning_pairs_loaded) {TRUE | evaluated 24 times by 6 testsEvaluated by:- tst_QAccessibility
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QRawFont
- tst_QTextLayout
| FALSE | evaluated 570 times by 6 testsEvaluated by:- tst_QAccessibility
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QRawFont
- tst_QTextLayout
|
| 24-570 |
1373 | kerning_pairs_loaded = true; | - |
1374 | lockFace(); | - |
1375 | if (freetype->face->size->metrics.x_ppem != 0) {TRUE | evaluated 24 times by 6 testsEvaluated by:- tst_QAccessibility
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QRawFont
- tst_QTextLayout
| FALSE | never evaluated |
| 0-24 |
1376 | QFixed scalingFactor = emSquareSize() / QFixed(freetype->face->size->metrics.x_ppem); | - |
1377 | unlockFace(); | - |
1378 | const_cast<QFontEngineFT *>(this)->loadKerningPairs(scalingFactor); | - |
1379 | } else {executed 24 times by 6 tests: end of block Executed by:- tst_QAccessibility
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QRawFont
- tst_QTextLayout
| 24 |
1380 | unlockFace(); | - |
1381 | } never executed: end of block | 0 |
1382 | } | - |
1383 | | - |
1384 | if (shouldUseDesignMetrics(flags) && !(fontDef.styleStrategy & QFont::ForceIntegerMetrics))TRUE | never evaluated | FALSE | evaluated 594 times by 6 testsEvaluated by:- tst_QAccessibility
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QRawFont
- tst_QTextLayout
|
TRUE | never evaluated | FALSE | never evaluated |
| 0-594 |
1385 | flags |= DesignMetrics; never executed: flags |= DesignMetrics; | 0 |
1386 | else | - |
1387 | flags &= ~DesignMetrics;executed 594 times by 6 tests: flags &= ~DesignMetrics; Executed by:- tst_QAccessibility
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QRawFont
- tst_QTextLayout
| 594 |
1388 | | - |
1389 | QFontEngine::doKerning(g, flags); | - |
1390 | }executed 594 times by 6 tests: end of block Executed by:- tst_QAccessibility
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QRawFont
- tst_QTextLayout
| 594 |
1391 | | - |
1392 | static inline FT_Matrix QTransformToFTMatrix(const QTransform &matrix) | - |
1393 | { | - |
1394 | FT_Matrix m; | - |
1395 | | - |
1396 | m.xx = FT_Fixed(matrix.m11() * 65536); | - |
1397 | m.xy = FT_Fixed(-matrix.m21() * 65536); | - |
1398 | m.yx = FT_Fixed(-matrix.m12() * 65536); | - |
1399 | m.yy = FT_Fixed(matrix.m22() * 65536); | - |
1400 | | - |
1401 | return m;executed 311703 times by 76 tests: return m; Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| 311703 |
1402 | } | - |
1403 | | - |
1404 | QFontEngineFT::QGlyphSet *QFontEngineFT::loadGlyphSet(const QTransform &matrix) | - |
1405 | { | - |
1406 | if (matrix.type() > QTransform::TxShear || !cacheEnabled)TRUE | never evaluated | FALSE | evaluated 311703 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
TRUE | never evaluated | FALSE | evaluated 311703 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
| 0-311703 |
1407 | return 0; never executed: return 0; | 0 |
1408 | | - |
1409 | | - |
1410 | if (!FT_IS_SCALABLE(freetype->face))TRUE | never evaluated | FALSE | evaluated 311703 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
| 0-311703 |
1411 | return matrix.type() <= QTransform::TxTranslate ? &defaultGlyphSet : Q_NULLPTR; never executed: return matrix.type() <= QTransform::TxTranslate ? &defaultGlyphSet : nullptr; | 0 |
1412 | | - |
1413 | FT_Matrix m = QTransformToFTMatrix(matrix); | - |
1414 | | - |
1415 | QGlyphSet *gs = 0; | - |
1416 | | - |
1417 | for (int i = 0; i < transformedGlyphSets.count(); ++i) {TRUE | evaluated 312787 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| FALSE | evaluated 262 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
| 262-312787 |
1418 | const QGlyphSet &g = transformedGlyphSets.at(i); | - |
1419 | if (g.transformationMatrix.xx == m.xxTRUE | evaluated 311483 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| FALSE | evaluated 1304 times by 7 testsEvaluated by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QPrinter
- tst_QStaticText
- tst_QTabWidget
|
| 1304-311483 |
1420 | && g.transformationMatrix.xy == m.xyTRUE | evaluated 311441 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| FALSE | evaluated 42 times by 3 testsEvaluated by:- tst_QGraphicsView
- tst_QMdiArea
- tst_QTabWidget
|
| 42-311441 |
1421 | && g.transformationMatrix.yx == m.yxTRUE | evaluated 311441 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| FALSE | never evaluated |
| 0-311441 |
1422 | && g.transformationMatrix.yy == m.yy) {TRUE | evaluated 311441 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| FALSE | never evaluated |
| 0-311441 |
1423 | | - |
1424 | | - |
1425 | transformedGlyphSets.move(i, 0); | - |
1426 | gs = &transformedGlyphSets[0]; | - |
1427 | break;executed 311441 times by 76 tests: break; Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| 311441 |
1428 | } | - |
1429 | }executed 1346 times by 7 tests: end of block Executed by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QPrinter
- tst_QStaticText
- tst_QTabWidget
| 1346 |
1430 | | - |
1431 | if (!gs) {TRUE | evaluated 262 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| FALSE | evaluated 311441 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
| 262-311441 |
1432 | | - |
1433 | if (transformedGlyphSets.count() >= 10) {TRUE | evaluated 121 times by 2 testsEvaluated by:- tst_QGraphicsItem
- tst_QGraphicsView
| FALSE | evaluated 141 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
| 121-141 |
1434 | transformedGlyphSets.move(transformedGlyphSets.size() - 1, 0); | - |
1435 | } else {executed 121 times by 2 tests: end of block Executed by:- tst_QGraphicsItem
- tst_QGraphicsView
| 121 |
1436 | transformedGlyphSets.prepend(QGlyphSet()); | - |
1437 | }executed 141 times by 76 tests: end of block Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| 141 |
1438 | gs = &transformedGlyphSets[0]; | - |
1439 | gs->clear(); | - |
1440 | gs->transformationMatrix = m; | - |
1441 | gs->outline_drawing = fontDef.pixelSize * fontDef.pixelSize * qAbs(matrix.det()) >= QT_MAX_CACHED_GLYPH_SIZE * QT_MAX_CACHED_GLYPH_SIZE; | - |
1442 | }executed 262 times by 76 tests: end of block Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| 262 |
1443 | Q_ASSERT(gs != 0); | - |
1444 | | - |
1445 | return gs;executed 311703 times by 76 tests: return gs; Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| 311703 |
1446 | } | - |
1447 | | - |
1448 | void QFontEngineFT::getUnscaledGlyph(glyph_t glyph, QPainterPath *path, glyph_metrics_t *metrics) | - |
1449 | { | - |
1450 | FT_Face face = lockFace(Unscaled); | - |
1451 | FT_Set_Transform(face, 0, 0); | - |
1452 | FT_Load_Glyph(face, glyph, FT_LOAD_NO_BITMAP); | - |
1453 | | - |
1454 | int left = face->glyph->metrics.horiBearingX; | - |
1455 | int right = face->glyph->metrics.horiBearingX + face->glyph->metrics.width; | - |
1456 | int top = face->glyph->metrics.horiBearingY; | - |
1457 | int bottom = face->glyph->metrics.horiBearingY - face->glyph->metrics.height; | - |
1458 | | - |
1459 | QFixedPoint p; | - |
1460 | p.x = 0; | - |
1461 | p.y = 0; | - |
1462 | | - |
1463 | metrics->width = QFixed::fromFixed(right-left); | - |
1464 | metrics->height = QFixed::fromFixed(top-bottom); | - |
1465 | metrics->x = QFixed::fromFixed(left); | - |
1466 | metrics->y = QFixed::fromFixed(-top); | - |
1467 | metrics->xoff = QFixed::fromFixed(face->glyph->advance.x); | - |
1468 | | - |
1469 | if (!FT_IS_SCALABLE(freetype->face))TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1470 | QFreetypeFace::addBitmapToPath(face->glyph, p, path); never executed: QFreetypeFace::addBitmapToPath(face->glyph, p, path); | 0 |
1471 | else | - |
1472 | QFreetypeFace::addGlyphToPath(face, face->glyph, p, path, face->units_per_EM << 6, face->units_per_EM << 6); never executed: QFreetypeFace::addGlyphToPath(face, face->glyph, p, path, face->units_per_EM << 6, face->units_per_EM << 6); | 0 |
1473 | | - |
1474 | FT_Set_Transform(face, &freetype->matrix, 0); | - |
1475 | unlockFace(); | - |
1476 | } never executed: end of block | 0 |
1477 | | - |
1478 | bool QFontEngineFT::supportsTransformation(const QTransform &transform) const | - |
1479 | { | - |
1480 | return transform.type() <= QTransform::TxRotate;executed 43 times by 4 tests: return transform.type() <= QTransform::TxRotate; Executed by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QStaticText
| 43 |
1481 | } | - |
1482 | | - |
1483 | void QFontEngineFT::addOutlineToPath(qreal x, qreal y, const QGlyphLayout &glyphs, QPainterPath *path, QTextItem::RenderFlags flags) | - |
1484 | { | - |
1485 | if (!glyphs.numGlyphs)TRUE | never evaluated | FALSE | evaluated 5 times by 3 testsEvaluated by:- tst_QPicture
- tst_QStaticText
- tst_QTextTable
|
| 0-5 |
1486 | return; never executed: return; | 0 |
1487 | | - |
1488 | if (FT_IS_SCALABLE(freetype->face)) {TRUE | evaluated 5 times by 3 testsEvaluated by:- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| FALSE | never evaluated |
| 0-5 |
1489 | QFontEngine::addOutlineToPath(x, y, glyphs, path, flags); | - |
1490 | } else {executed 5 times by 3 tests: end of block Executed by:- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| 5 |
1491 | QVarLengthArray<QFixedPoint> positions; | - |
1492 | QVarLengthArray<glyph_t> positioned_glyphs; | - |
1493 | QTransform matrix; | - |
1494 | matrix.translate(x, y); | - |
1495 | getGlyphPositions(glyphs, matrix, flags, positioned_glyphs, positions); | - |
1496 | | - |
1497 | FT_Face face = lockFace(Unscaled); | - |
1498 | for (int gl = 0; gl < glyphs.numGlyphs; gl++) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1499 | FT_UInt glyph = positioned_glyphs[gl]; | - |
1500 | FT_Load_Glyph(face, glyph, FT_LOAD_TARGET_MONO); | - |
1501 | QFreetypeFace::addBitmapToPath(face->glyph, positions[gl], path); | - |
1502 | } never executed: end of block | 0 |
1503 | unlockFace(); | - |
1504 | } never executed: end of block | 0 |
1505 | } | - |
1506 | | - |
1507 | void QFontEngineFT::addGlyphsToPath(glyph_t *glyphs, QFixedPoint *positions, int numGlyphs, | - |
1508 | QPainterPath *path, QTextItem::RenderFlags) | - |
1509 | { | - |
1510 | FT_Face face = lockFace(Unscaled); | - |
1511 | | - |
1512 | for (int gl = 0; gl < numGlyphs; gl++) {TRUE | evaluated 163 times by 6 testsEvaluated by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| FALSE | evaluated 21 times by 6 testsEvaluated by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
|
| 21-163 |
1513 | FT_UInt glyph = glyphs[gl]; | - |
1514 | | - |
1515 | FT_Load_Glyph(face, glyph, FT_LOAD_NO_BITMAP); | - |
1516 | | - |
1517 | FT_GlyphSlot g = face->glyph; | - |
1518 | if (g->format != FT_GLYPH_FORMAT_OUTLINE)TRUE | never evaluated | FALSE | evaluated 163 times by 6 testsEvaluated by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
|
| 0-163 |
1519 | continue; never executed: continue; | 0 |
1520 | if (embolden)TRUE | never evaluated | FALSE | evaluated 163 times by 6 testsEvaluated by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
|
| 0-163 |
1521 | FT_GlyphSlot_Embolden(g); never executed: FT_GlyphSlot_Embolden(g); | 0 |
1522 | if (obliquen)TRUE | never evaluated | FALSE | evaluated 163 times by 6 testsEvaluated by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
|
| 0-163 |
1523 | FT_GlyphSlot_Oblique(g); never executed: FT_GlyphSlot_Oblique(g); | 0 |
1524 | QFreetypeFace::addGlyphToPath(face, g, positions[gl], path, xsize, ysize); | - |
1525 | }executed 163 times by 6 tests: end of block Executed by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| 163 |
1526 | unlockFace(); | - |
1527 | }executed 21 times by 6 tests: end of block Executed by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| 21 |
1528 | | - |
1529 | glyph_t QFontEngineFT::glyphIndex(uint ucs4) const | - |
1530 | { | - |
1531 | glyph_t glyph = ucs4 < QFreetypeFace::cmapCacheSize ? freetype->cmapCache[ucs4] : 0;TRUE | evaluated 5293595 times by 114 testsEvaluated 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
- ...
| FALSE | evaluated 223310 times by 33 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColorDialog
- tst_QComplexText
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QItemDelegate
- tst_QLabel
- tst_QLineEdit
- tst_QListView
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QPlainTextEdit
- tst_QRawFont
- tst_QStackedLayout
- tst_QStaticText
- tst_QTableView
- tst_QTextCursor
- tst_QTextDocument
- tst_QTextDocumentLayout
- ...
|
| 223310-5293595 |
1532 | if (glyph == 0) {TRUE | evaluated 224382 times by 69 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QCompleter
- tst_QComplexText
- tst_QCssParser
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QFormLayout
- ...
| FALSE | evaluated 5292523 times by 113 testsEvaluated 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
- ...
|
| 224382-5292523 |
1533 | FT_Face face = freetype->face; | - |
1534 | glyph = FT_Get_Char_Index(face, ucs4); | - |
1535 | if (glyph == 0) {TRUE | evaluated 207355 times by 8 testsEvaluated by:- tst_QAccessibility
- tst_QComplexText
- tst_QFontDialog
- tst_QGlyphRun
- tst_QLabel
- tst_QRawFont
- tst_QTextLayout
- tst_QTextScriptEngine
| FALSE | evaluated 17027 times by 69 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QCompleter
- tst_QComplexText
- tst_QCssParser
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QFormLayout
- ...
|
| 17027-207355 |
1536 | | - |
1537 | | - |
1538 | if (ucs4 == QChar::Nbsp || ucs4 == QChar::Tabulation) {TRUE | never evaluated | FALSE | evaluated 207355 times by 8 testsEvaluated by:- tst_QAccessibility
- tst_QComplexText
- tst_QFontDialog
- tst_QGlyphRun
- tst_QLabel
- tst_QRawFont
- tst_QTextLayout
- tst_QTextScriptEngine
|
TRUE | never evaluated | FALSE | evaluated 207355 times by 8 testsEvaluated by:- tst_QAccessibility
- tst_QComplexText
- tst_QFontDialog
- tst_QGlyphRun
- tst_QLabel
- tst_QRawFont
- tst_QTextLayout
- tst_QTextScriptEngine
|
| 0-207355 |
1539 | glyph = FT_Get_Char_Index(face, QChar::Space); | - |
1540 | } else if (freetype->symbol_map) { never executed: end of block TRUE | evaluated 39 times by 1 test | FALSE | evaluated 207316 times by 8 testsEvaluated by:- tst_QAccessibility
- tst_QComplexText
- tst_QFontDialog
- tst_QGlyphRun
- tst_QLabel
- tst_QRawFont
- tst_QTextLayout
- tst_QTextScriptEngine
|
| 0-207316 |
1541 | | - |
1542 | | - |
1543 | | - |
1544 | | - |
1545 | | - |
1546 | | - |
1547 | FT_Set_Charmap(face, freetype->symbol_map); | - |
1548 | glyph = FT_Get_Char_Index(face, ucs4); | - |
1549 | FT_Set_Charmap(face, freetype->unicode_map); | - |
1550 | }executed 39 times by 1 test: end of block | 39 |
1551 | }executed 207355 times by 8 tests: end of block Executed by:- tst_QAccessibility
- tst_QComplexText
- tst_QFontDialog
- tst_QGlyphRun
- tst_QLabel
- tst_QRawFont
- tst_QTextLayout
- tst_QTextScriptEngine
| 207355 |
1552 | if (ucs4 < QFreetypeFace::cmapCacheSize)TRUE | evaluated 1072 times by 56 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QCompleter
- tst_QComplexText
- tst_QCssParser
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFontMetrics
- tst_QFormLayout
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| FALSE | evaluated 223310 times by 33 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColorDialog
- tst_QComplexText
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QItemDelegate
- tst_QLabel
- tst_QLineEdit
- tst_QListView
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QPlainTextEdit
- tst_QRawFont
- tst_QStackedLayout
- tst_QStaticText
- tst_QTableView
- tst_QTextCursor
- tst_QTextDocument
- tst_QTextDocumentLayout
- ...
|
| 1072-223310 |
1553 | freetype->cmapCache[ucs4] = glyph;executed 1072 times by 56 tests: freetype->cmapCache[ucs4] = glyph; Executed by:- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QCompleter
- tst_QComplexText
- tst_QCssParser
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFontMetrics
- tst_QFormLayout
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| 1072 |
1554 | }executed 224382 times by 69 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QCompleter
- tst_QComplexText
- tst_QCssParser
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QFormLayout
- ...
| 224382 |
1555 | | - |
1556 | return glyph;executed 5516905 times by 114 tests: return glyph; 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
- ...
| 5516905 |
1557 | } | - |
1558 | | - |
1559 | bool QFontEngineFT::stringToCMap(const QChar *str, int len, QGlyphLayout *glyphs, int *nglyphs, | - |
1560 | QFontEngine::ShaperFlags flags) const | - |
1561 | { | - |
1562 | Q_ASSERT(glyphs->numGlyphs >= *nglyphs); | - |
1563 | if (*nglyphs < len) {TRUE | never evaluated | FALSE | evaluated 566630 times by 111 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 0-566630 |
1564 | *nglyphs = len; | - |
1565 | return false; never executed: return false; | 0 |
1566 | } | - |
1567 | | - |
1568 | int glyph_pos = 0; | - |
1569 | if (freetype->symbol_map) {TRUE | evaluated 1 time by 1 test | FALSE | evaluated 566629 times by 111 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 1-566629 |
1570 | FT_Face face = freetype->face; | - |
1571 | QStringIterator it(str, str + len); | - |
1572 | while (it.hasNext()) {TRUE | evaluated 8 times by 1 test | FALSE | evaluated 1 time by 1 test |
| 1-8 |
1573 | uint uc = it.next(); | - |
1574 | glyphs->glyphs[glyph_pos] = uc < QFreetypeFace::cmapCacheSize ? freetype->cmapCache[uc] : 0;TRUE | evaluated 8 times by 1 test | FALSE | never evaluated |
| 0-8 |
1575 | if ( !glyphs->glyphs[glyph_pos] ) {TRUE | evaluated 8 times by 1 test | FALSE | never evaluated |
| 0-8 |
1576 | | - |
1577 | | - |
1578 | | - |
1579 | | - |
1580 | | - |
1581 | | - |
1582 | glyph_t glyph = FT_Get_Char_Index(face, uc); | - |
1583 | | - |
1584 | | - |
1585 | if (!glyph && (uc == 0xa0 || uc == 0x9)) {TRUE | evaluated 8 times by 1 test | FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 8 times by 1 test |
TRUE | never evaluated | FALSE | evaluated 8 times by 1 test |
| 0-8 |
1586 | uc = 0x20; | - |
1587 | glyph = FT_Get_Char_Index(face, uc); | - |
1588 | } never executed: end of block | 0 |
1589 | if (!glyph) {TRUE | evaluated 8 times by 1 test | FALSE | never evaluated |
| 0-8 |
1590 | FT_Set_Charmap(face, freetype->symbol_map); | - |
1591 | glyph = FT_Get_Char_Index(face, uc); | - |
1592 | FT_Set_Charmap(face, freetype->unicode_map); | - |
1593 | }executed 8 times by 1 test: end of block | 8 |
1594 | glyphs->glyphs[glyph_pos] = glyph; | - |
1595 | if (uc < QFreetypeFace::cmapCacheSize)TRUE | evaluated 8 times by 1 test | FALSE | never evaluated |
| 0-8 |
1596 | freetype->cmapCache[uc] = glyph;executed 8 times by 1 test: freetype->cmapCache[uc] = glyph; | 8 |
1597 | }executed 8 times by 1 test: end of block | 8 |
1598 | ++glyph_pos; | - |
1599 | }executed 8 times by 1 test: end of block | 8 |
1600 | } else {executed 1 time by 1 test: end of block | 1 |
1601 | FT_Face face = freetype->face; | - |
1602 | QStringIterator it(str, str + len); | - |
1603 | while (it.hasNext()) {TRUE | evaluated 5510738 times by 111 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| FALSE | evaluated 566629 times by 111 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 566629-5510738 |
1604 | uint uc = it.next(); | - |
1605 | glyphs->glyphs[glyph_pos] = uc < QFreetypeFace::cmapCacheSize ? freetype->cmapCache[uc] : 0;TRUE | evaluated 5289887 times by 111 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| FALSE | evaluated 220851 times by 31 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColorDialog
- tst_QComplexText
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDatabase
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QItemDelegate
- tst_QLabel
- tst_QLineEdit
- tst_QListView
- tst_QMdiArea
- tst_QPlainTextEdit
- tst_QRawFont
- tst_QStackedLayout
- tst_QStaticText
- tst_QTableView
- tst_QTextCursor
- tst_QTextDocument
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextLayout
- ...
|
| 220851-5289887 |
1606 | if (!glyphs->glyphs[glyph_pos]) {TRUE | evaluated 225430 times by 111 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| FALSE | evaluated 5285308 times by 109 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 225430-5285308 |
1607 | { | - |
1608 | redo: | - |
1609 | glyph_t glyph = FT_Get_Char_Index(face, uc); | - |
1610 | if (!glyph && (uc == 0xa0 || uc == 0x9)) {TRUE | evaluated 207352 times by 9 testsEvaluated by:- tst_QAccessibility
- tst_QComplexText
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QLabel
- tst_QRawFont
- tst_QTextLayout
- tst_QTextScriptEngine
| FALSE | evaluated 18078 times by 111 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
TRUE | never evaluated | FALSE | evaluated 207352 times by 9 testsEvaluated by:- tst_QAccessibility
- tst_QComplexText
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QLabel
- tst_QRawFont
- tst_QTextLayout
- tst_QTextScriptEngine
|
TRUE | never evaluated | FALSE | evaluated 207352 times by 9 testsEvaluated by:- tst_QAccessibility
- tst_QComplexText
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QLabel
- tst_QRawFont
- tst_QTextLayout
- tst_QTextScriptEngine
|
| 0-207352 |
1611 | uc = 0x20; | - |
1612 | goto redo; never executed: goto redo; | 0 |
1613 | } | - |
1614 | glyphs->glyphs[glyph_pos] = glyph; | - |
1615 | if (uc < QFreetypeFace::cmapCacheSize)TRUE | evaluated 4579 times by 111 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| FALSE | evaluated 220851 times by 31 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColorDialog
- tst_QComplexText
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDatabase
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QItemDelegate
- tst_QLabel
- tst_QLineEdit
- tst_QListView
- tst_QMdiArea
- tst_QPlainTextEdit
- tst_QRawFont
- tst_QStackedLayout
- tst_QStaticText
- tst_QTableView
- tst_QTextCursor
- tst_QTextDocument
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextLayout
- ...
|
| 4579-220851 |
1616 | freetype->cmapCache[uc] = glyph;executed 4579 times by 111 tests: freetype->cmapCache[uc] = glyph; 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 4579 |
1617 | } | - |
1618 | }executed 225430 times by 111 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 225430 |
1619 | ++glyph_pos; | - |
1620 | }executed 5510738 times by 111 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 5510738 |
1621 | }executed 566629 times by 111 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 566629 |
1622 | | - |
1623 | *nglyphs = glyph_pos; | - |
1624 | glyphs->numGlyphs = glyph_pos; | - |
1625 | | - |
1626 | if (!(flags & GlyphIndicesOnly))TRUE | evaluated 1 time by 1 test | FALSE | evaluated 566629 times by 111 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 1-566629 |
1627 | recalcAdvances(glyphs, flags);executed 1 time by 1 test: recalcAdvances(glyphs, flags); | 1 |
1628 | | - |
1629 | return true;executed 566630 times by 111 tests: return true; 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 566630 |
1630 | } | - |
1631 | | - |
1632 | bool QFontEngineFT::shouldUseDesignMetrics(QFontEngine::ShaperFlags flags) const | - |
1633 | { | - |
1634 | if (!FT_IS_SCALABLE(freetype->face))TRUE | never evaluated | FALSE | evaluated 5515398 times by 113 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 0-5515398 |
1635 | return false; never executed: return false; | 0 |
1636 | | - |
1637 | return default_hint_style == HintNone || default_hint_style == HintLight || (flags & DesignMetrics);executed 5515398 times by 113 tests: return default_hint_style == HintNone || default_hint_style == HintLight || (flags & DesignMetrics); 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 5515398 |
1638 | } | - |
1639 | | - |
1640 | QFixed QFontEngineFT::scaledBitmapMetrics(QFixed m) const | - |
1641 | { | - |
1642 | return m * scalableBitmapScaleFactor; never executed: return m * scalableBitmapScaleFactor; | 0 |
1643 | } | - |
1644 | | - |
1645 | glyph_metrics_t QFontEngineFT::scaledBitmapMetrics(const glyph_metrics_t &m) const | - |
1646 | { | - |
1647 | glyph_metrics_t metrics; | - |
1648 | metrics.x = scaledBitmapMetrics(m.x); | - |
1649 | metrics.y = scaledBitmapMetrics(m.y); | - |
1650 | metrics.width = scaledBitmapMetrics(m.width); | - |
1651 | metrics.height = scaledBitmapMetrics(m.height); | - |
1652 | metrics.xoff = scaledBitmapMetrics(m.xoff); | - |
1653 | metrics.yoff = scaledBitmapMetrics(m.yoff); | - |
1654 | return metrics; never executed: return metrics; | 0 |
1655 | } | - |
1656 | | - |
1657 | void QFontEngineFT::recalcAdvances(QGlyphLayout *glyphs, QFontEngine::ShaperFlags flags) const | - |
1658 | { | - |
1659 | FT_Face face = 0; | - |
1660 | bool design = shouldUseDesignMetrics(flags); | - |
1661 | for (int i = 0; i < glyphs->numGlyphs; i++) {TRUE | evaluated 5515004 times by 113 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| FALSE | evaluated 5514804 times by 113 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 5514804-5515004 |
1662 | Glyph *g = cacheEnabled ? defaultGlyphSet.getGlyph(glyphs->glyphs[i]) : 0;TRUE | evaluated 5515004 times by 113 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| FALSE | never evaluated |
| 0-5515004 |
1663 | | - |
1664 | GlyphFormat acceptableFormat = (defaultFormat != Format_None) ? defaultFormat : Format_Mono;TRUE | evaluated 5515004 times by 113 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| FALSE | never evaluated |
| 0-5515004 |
1665 | if (g && g->format == acceptableFormat) {TRUE | evaluated 5507743 times by 111 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| FALSE | evaluated 7261 times by 113 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
TRUE | evaluated 5507743 times by 111 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| FALSE | never evaluated |
| 0-5507743 |
1666 | glyphs->advances[i] = design ? QFixed::fromFixed(g->linearAdvance) : QFixed(g->advance);TRUE | evaluated 16 times by 1 test | FALSE | evaluated 5507727 times by 111 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 16-5507727 |
1667 | } else {executed 5507743 times by 111 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 5507743 |
1668 | if (!face)TRUE | evaluated 7189 times by 113 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| FALSE | evaluated 72 times by 3 testsEvaluated by:- tst_QFontMetrics
- tst_QGlyphRun
- tst_QRawFont
|
| 72-7189 |
1669 | face = lockFace();executed 7189 times by 113 tests: face = lockFace(); 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 7189 |
1670 | g = loadGlyph(cacheEnabled ? &defaultGlyphSet : 0, glyphs->glyphs[i], 0, Format_None, true); | - |
1671 | if (g)TRUE | evaluated 7247 times by 113 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| FALSE | evaluated 14 times by 1 test |
| 14-7247 |
1672 | glyphs->advances[i] = design ? QFixed::fromFixed(g->linearAdvance) : QFixed(g->advance);executed 7247 times by 113 tests: glyphs->advances[i] = design ? QFixed::fromFixed(g->linearAdvance) : QFixed(g->advance); 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
TRUE | evaluated 81 times by 2 tests | FALSE | evaluated 7166 times by 113 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 81-7247 |
1673 | else | - |
1674 | glyphs->advances[i] = design ? QFixed::fromFixed(face->glyph->linearHoriAdvance >> 10)executed 14 times by 1 test: glyphs->advances[i] = design ? QFixed::fromFixed(face->glyph->linearHoriAdvance >> 10) : QFixed::fromFixed(face->glyph->metrics.horiAdvance).round(); TRUE | never evaluated | FALSE | evaluated 14 times by 1 test |
| 0-14 |
1675 | : QFixed::fromFixed(face->glyph->metrics.horiAdvance).round();executed 14 times by 1 test: glyphs->advances[i] = design ? QFixed::fromFixed(face->glyph->linearHoriAdvance >> 10) : QFixed::fromFixed(face->glyph->metrics.horiAdvance).round(); | 14 |
1676 | if (!cacheEnabled && g != &emptyGlyph)TRUE | never evaluated | FALSE | evaluated 7261 times by 113 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
TRUE | never evaluated | FALSE | never evaluated |
| 0-7261 |
1677 | delete g; never executed: delete g; | 0 |
1678 | }executed 7261 times by 113 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 7261 |
1679 | | - |
1680 | if (scalableBitmapScaleFactor != 1)TRUE | never evaluated | FALSE | evaluated 5515004 times by 113 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 0-5515004 |
1681 | glyphs->advances[i] *= scalableBitmapScaleFactor; never executed: glyphs->advances[i] *= scalableBitmapScaleFactor; | 0 |
1682 | }executed 5515004 times by 113 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 5515004 |
1683 | if (face)TRUE | evaluated 7189 times by 113 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| FALSE | evaluated 5507615 times by 111 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 7189-5507615 |
1684 | unlockFace();executed 7189 times by 113 tests: unlockFace(); 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 7189 |
1685 | | - |
1686 | if (fontDef.styleStrategy & QFont::ForceIntegerMetrics) {TRUE | evaluated 156 times by 1 test | FALSE | evaluated 5514648 times by 113 testsEvaluated 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 156-5514648 |
1687 | for (int i = 0; i < glyphs->numGlyphs; ++i)TRUE | evaluated 310 times by 1 test | FALSE | evaluated 156 times by 1 test |
| 156-310 |
1688 | glyphs->advances[i] = glyphs->advances[i].round();executed 310 times by 1 test: glyphs->advances[i] = glyphs->advances[i].round(); | 310 |
1689 | }executed 156 times by 1 test: end of block | 156 |
1690 | }executed 5514804 times by 113 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_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 5514804 |
1691 | | - |
1692 | glyph_metrics_t QFontEngineFT::boundingBox(const QGlyphLayout &glyphs) | - |
1693 | { | - |
1694 | FT_Face face = 0; | - |
1695 | | - |
1696 | glyph_metrics_t overall; | - |
1697 | | - |
1698 | if (!isScalableBitmap()) {TRUE | evaluated 3606 times by 21 testsEvaluated by:- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QGroupBox
- tst_QInputDialog
- tst_QMdiSubWindow
- tst_QPrinter
- tst_QStyleSheetStyle
- tst_QTextLayout
- tst_QWizard
- tst_languageChange
- tst_qapplication - unknown status
| FALSE | never evaluated |
| 0-3606 |
1699 | overall.y = -ascent(); | - |
1700 | overall.height = ascent() + descent(); | - |
1701 | } else {executed 3606 times by 21 tests: end of block Executed by:- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QGroupBox
- tst_QInputDialog
- tst_QMdiSubWindow
- tst_QPrinter
- tst_QStyleSheetStyle
- tst_QTextLayout
- tst_QWizard
- tst_languageChange
- tst_qapplication - unknown status
| 3606 |
1702 | overall.y = QFixed::fromFixed(-metrics.ascender); | - |
1703 | overall.height = QFixed::fromFixed(metrics.ascender - metrics.descender); | - |
1704 | } never executed: end of block | 0 |
1705 | | - |
1706 | QFixed ymax = 0; | - |
1707 | QFixed xmax = 0; | - |
1708 | for (int i = 0; i < glyphs.numGlyphs; i++) {TRUE | evaluated 56297 times by 21 testsEvaluated by:- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QGroupBox
- tst_QInputDialog
- tst_QMdiSubWindow
- tst_QPrinter
- tst_QStyleSheetStyle
- tst_QTextLayout
- tst_QWizard
- tst_languageChange
- tst_qapplication - unknown status
| FALSE | evaluated 3606 times by 21 testsEvaluated by:- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QGroupBox
- tst_QInputDialog
- tst_QMdiSubWindow
- tst_QPrinter
- tst_QStyleSheetStyle
- tst_QTextLayout
- tst_QWizard
- tst_languageChange
- tst_qapplication - unknown status
|
| 3606-56297 |
1709 | Glyph *g = cacheEnabled ? defaultGlyphSet.getGlyph(glyphs.glyphs[i]) : 0;TRUE | evaluated 56297 times by 21 testsEvaluated by:- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QGroupBox
- tst_QInputDialog
- tst_QMdiSubWindow
- tst_QPrinter
- tst_QStyleSheetStyle
- tst_QTextLayout
- tst_QWizard
- tst_languageChange
- tst_qapplication - unknown status
| FALSE | never evaluated |
| 0-56297 |
1710 | if (!g) {TRUE | never evaluated | FALSE | evaluated 56297 times by 21 testsEvaluated by:- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QGroupBox
- tst_QInputDialog
- tst_QMdiSubWindow
- tst_QPrinter
- tst_QStyleSheetStyle
- tst_QTextLayout
- tst_QWizard
- tst_languageChange
- tst_qapplication - unknown status
|
| 0-56297 |
1711 | if (!face)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1712 | face = lockFace(); never executed: face = lockFace(); | 0 |
1713 | g = loadGlyph(cacheEnabled ? &defaultGlyphSet : 0, glyphs.glyphs[i], 0, Format_None, true); | - |
1714 | } never executed: end of block | 0 |
1715 | if (g) {TRUE | evaluated 56297 times by 21 testsEvaluated by:- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QGroupBox
- tst_QInputDialog
- tst_QMdiSubWindow
- tst_QPrinter
- tst_QStyleSheetStyle
- tst_QTextLayout
- tst_QWizard
- tst_languageChange
- tst_qapplication - unknown status
| FALSE | never evaluated |
| 0-56297 |
1716 | QFixed x = overall.xoff + glyphs.offsets[i].x + g->x; | - |
1717 | QFixed y = overall.yoff + glyphs.offsets[i].y - g->y; | - |
1718 | overall.x = qMin(overall.x, x); | - |
1719 | overall.y = qMin(overall.y, y); | - |
1720 | xmax = qMax(xmax, x + g->width); | - |
1721 | ymax = qMax(ymax, y + g->height); | - |
1722 | overall.xoff += g->advance; | - |
1723 | if (!cacheEnabled && g != &emptyGlyph)TRUE | never evaluated | FALSE | evaluated 56297 times by 21 testsEvaluated by:- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QGroupBox
- tst_QInputDialog
- tst_QMdiSubWindow
- tst_QPrinter
- tst_QStyleSheetStyle
- tst_QTextLayout
- tst_QWizard
- tst_languageChange
- tst_qapplication - unknown status
|
TRUE | never evaluated | FALSE | never evaluated |
| 0-56297 |
1724 | delete g; never executed: delete g; | 0 |
1725 | } else {executed 56297 times by 21 tests: end of block Executed by:- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QGroupBox
- tst_QInputDialog
- tst_QMdiSubWindow
- tst_QPrinter
- tst_QStyleSheetStyle
- tst_QTextLayout
- tst_QWizard
- tst_languageChange
- tst_qapplication - unknown status
| 56297 |
1726 | int left = FLOOR(face->glyph->metrics.horiBearingX); | - |
1727 | int right = CEIL(face->glyph->metrics.horiBearingX + face->glyph->metrics.width); | - |
1728 | int top = CEIL(face->glyph->metrics.horiBearingY); | - |
1729 | int bottom = FLOOR(face->glyph->metrics.horiBearingY - face->glyph->metrics.height); | - |
1730 | | - |
1731 | QFixed x = overall.xoff + glyphs.offsets[i].x - (-TRUNC(left)); | - |
1732 | QFixed y = overall.yoff + glyphs.offsets[i].y - TRUNC(top); | - |
1733 | overall.x = qMin(overall.x, x); | - |
1734 | overall.y = qMin(overall.y, y); | - |
1735 | xmax = qMax(xmax, x + TRUNC(right - left)); | - |
1736 | ymax = qMax(ymax, y + TRUNC(top - bottom)); | - |
1737 | overall.xoff += int(TRUNC(ROUND(face->glyph->advance.x))); | - |
1738 | } never executed: end of block | 0 |
1739 | } | - |
1740 | overall.height = qMax(overall.height, ymax - overall.y); | - |
1741 | overall.width = xmax - overall.x; | - |
1742 | | - |
1743 | if (face)TRUE | never evaluated | FALSE | evaluated 3606 times by 21 testsEvaluated by:- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QGroupBox
- tst_QInputDialog
- tst_QMdiSubWindow
- tst_QPrinter
- tst_QStyleSheetStyle
- tst_QTextLayout
- tst_QWizard
- tst_languageChange
- tst_qapplication - unknown status
|
| 0-3606 |
1744 | unlockFace(); never executed: unlockFace(); | 0 |
1745 | | - |
1746 | if (isScalableBitmap())TRUE | never evaluated | FALSE | evaluated 3606 times by 21 testsEvaluated by:- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QGroupBox
- tst_QInputDialog
- tst_QMdiSubWindow
- tst_QPrinter
- tst_QStyleSheetStyle
- tst_QTextLayout
- tst_QWizard
- tst_languageChange
- tst_qapplication - unknown status
|
| 0-3606 |
1747 | overall = scaledBitmapMetrics(overall); never executed: overall = scaledBitmapMetrics(overall); | 0 |
1748 | return overall;executed 3606 times by 21 tests: return overall; Executed by:- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QGroupBox
- tst_QInputDialog
- tst_QMdiSubWindow
- tst_QPrinter
- tst_QStyleSheetStyle
- tst_QTextLayout
- tst_QWizard
- tst_languageChange
- tst_qapplication - unknown status
| 3606 |
1749 | } | - |
1750 | | - |
1751 | glyph_metrics_t QFontEngineFT::boundingBox(glyph_t glyph) | - |
1752 | { | - |
1753 | FT_Face face = 0; | - |
1754 | glyph_metrics_t overall; | - |
1755 | Glyph *g = cacheEnabled ? defaultGlyphSet.getGlyph(glyph) : 0;TRUE | evaluated 288672 times by 110 testsEvaluated 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
- ...
| FALSE | never evaluated |
| 0-288672 |
1756 | if (!g) {TRUE | evaluated 242 times by 7 testsEvaluated by:- tst_QAccessibility
- tst_QCssParser
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QPainter
- tst_QTextLayout
| FALSE | evaluated 288430 times by 110 testsEvaluated 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
- ...
|
| 242-288430 |
1757 | face = lockFace(); | - |
1758 | g = loadGlyph(cacheEnabled ? &defaultGlyphSet : 0, glyph, 0, Format_None, true); | - |
1759 | }executed 242 times by 7 tests: end of block Executed by:- tst_QAccessibility
- tst_QCssParser
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QPainter
- tst_QTextLayout
| 242 |
1760 | if (g) {TRUE | evaluated 288672 times by 110 testsEvaluated 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
- ...
| FALSE | never evaluated |
| 0-288672 |
1761 | overall.x = g->x; | - |
1762 | overall.y = -g->y; | - |
1763 | overall.width = g->width; | - |
1764 | overall.height = g->height; | - |
1765 | overall.xoff = g->advance; | - |
1766 | if (fontDef.styleStrategy & QFont::ForceIntegerMetrics)TRUE | never evaluated | FALSE | evaluated 288672 times by 110 testsEvaluated 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
- ...
|
| 0-288672 |
1767 | overall.xoff = overall.xoff.round(); never executed: overall.xoff = overall.xoff.round(); | 0 |
1768 | if (!cacheEnabled && g != &emptyGlyph)TRUE | never evaluated | FALSE | evaluated 288672 times by 110 testsEvaluated 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
- ...
|
TRUE | never evaluated | FALSE | never evaluated |
| 0-288672 |
1769 | delete g; never executed: delete g; | 0 |
1770 | } else {executed 288672 times by 110 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
- ...
| 288672 |
1771 | int left = FLOOR(face->glyph->metrics.horiBearingX); | - |
1772 | int right = CEIL(face->glyph->metrics.horiBearingX + face->glyph->metrics.width); | - |
1773 | int top = CEIL(face->glyph->metrics.horiBearingY); | - |
1774 | int bottom = FLOOR(face->glyph->metrics.horiBearingY - face->glyph->metrics.height); | - |
1775 | | - |
1776 | overall.width = TRUNC(right-left); | - |
1777 | overall.height = TRUNC(top-bottom); | - |
1778 | overall.x = TRUNC(left); | - |
1779 | overall.y = -TRUNC(top); | - |
1780 | overall.xoff = TRUNC(ROUND(face->glyph->advance.x)); | - |
1781 | } never executed: end of block | 0 |
1782 | if (face)TRUE | evaluated 242 times by 7 testsEvaluated by:- tst_QAccessibility
- tst_QCssParser
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QPainter
- tst_QTextLayout
| FALSE | evaluated 288430 times by 110 testsEvaluated 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
- ...
|
| 242-288430 |
1783 | unlockFace();executed 242 times by 7 tests: unlockFace(); Executed by:- tst_QAccessibility
- tst_QCssParser
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QPainter
- tst_QTextLayout
| 242 |
1784 | | - |
1785 | if (isScalableBitmap())TRUE | never evaluated | FALSE | evaluated 288672 times by 110 testsEvaluated 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
- ...
|
| 0-288672 |
1786 | overall = scaledBitmapMetrics(overall); never executed: overall = scaledBitmapMetrics(overall); | 0 |
1787 | return overall;executed 288672 times by 110 tests: return overall; 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
- ...
| 288672 |
1788 | } | - |
1789 | | - |
1790 | glyph_metrics_t QFontEngineFT::boundingBox(glyph_t glyph, const QTransform &matrix) | - |
1791 | { | - |
1792 | return alphaMapBoundingBox(glyph, 0, matrix, QFontEngine::Format_None); never executed: return alphaMapBoundingBox(glyph, 0, matrix, QFontEngine::Format_None); | 0 |
1793 | } | - |
1794 | | - |
1795 | glyph_metrics_t QFontEngineFT::alphaMapBoundingBox(glyph_t glyph, QFixed subPixelPosition, const QTransform &matrix, QFontEngine::GlyphFormat format) | - |
1796 | { | - |
1797 | Glyph *g = loadGlyphFor(glyph, subPixelPosition, format, matrix, true); | - |
1798 | | - |
1799 | glyph_metrics_t overall; | - |
1800 | if (g) {TRUE | evaluated 11 times by 1 test | FALSE | never evaluated |
| 0-11 |
1801 | overall.x = g->x; | - |
1802 | overall.y = -g->y; | - |
1803 | overall.width = g->width; | - |
1804 | overall.height = g->height; | - |
1805 | overall.xoff = g->advance; | - |
1806 | if (!cacheEnabled && g != &emptyGlyph)TRUE | never evaluated | FALSE | evaluated 11 times by 1 test |
TRUE | never evaluated | FALSE | never evaluated |
| 0-11 |
1807 | delete g; never executed: delete g; | 0 |
1808 | } else {executed 11 times by 1 test: end of block | 11 |
1809 | FT_Face face = lockFace(); | - |
1810 | int left = FLOOR(face->glyph->metrics.horiBearingX); | - |
1811 | int right = CEIL(face->glyph->metrics.horiBearingX + face->glyph->metrics.width); | - |
1812 | int top = CEIL(face->glyph->metrics.horiBearingY); | - |
1813 | int bottom = FLOOR(face->glyph->metrics.horiBearingY - face->glyph->metrics.height); | - |
1814 | | - |
1815 | overall.width = TRUNC(right-left); | - |
1816 | overall.height = TRUNC(top-bottom); | - |
1817 | overall.x = TRUNC(left); | - |
1818 | overall.y = -TRUNC(top); | - |
1819 | overall.xoff = TRUNC(ROUND(face->glyph->advance.x)); | - |
1820 | unlockFace(); | - |
1821 | } never executed: end of block | 0 |
1822 | | - |
1823 | if (isScalableBitmap())TRUE | never evaluated | FALSE | evaluated 11 times by 1 test |
| 0-11 |
1824 | overall = scaledBitmapMetrics(overall); never executed: overall = scaledBitmapMetrics(overall); | 0 |
1825 | return overall;executed 11 times by 1 test: return overall; | 11 |
1826 | } | - |
1827 | | - |
1828 | static inline QImage alphaMapFromGlyphData(QFontEngineFT::Glyph *glyph, QFontEngine::GlyphFormat glyphFormat) | - |
1829 | { | - |
1830 | if (glyph == Q_NULLPTR || glyph->height == 0 || glyph->width == 0)TRUE | never evaluated | FALSE | evaluated 311692 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
TRUE | evaluated 13851 times by 59 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGridLayout
- tst_QHeaderView
- tst_QItemDelegate
- ...
| FALSE | evaluated 297841 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
TRUE | evaluated 12 times by 1 test | FALSE | evaluated 297829 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
| 0-311692 |
1831 | return QImage();executed 13863 times by 59 tests: return QImage(); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGridLayout
- tst_QHeaderView
- tst_QItemDelegate
- ...
| 13863 |
1832 | | - |
1833 | QImage::Format format = QImage::Format_Invalid; | - |
1834 | int bytesPerLine = -1; | - |
1835 | switch (glyphFormat) { | - |
1836 | case QFontEngine::Format_Mono:executed 365 times by 3 tests: case QFontEngine::Format_Mono: Executed by:- tst_QPainter
- tst_QStaticText
- tst_QWizard
| 365 |
1837 | format = QImage::Format_Mono; | - |
1838 | bytesPerLine = ((glyph->width + 31) & ~31) >> 3; | - |
1839 | break;executed 365 times by 3 tests: break; Executed by:- tst_QPainter
- tst_QStaticText
- tst_QWizard
| 365 |
1840 | case QFontEngine::Format_A8:executed 297464 times by 76 tests: case QFontEngine::Format_A8: Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| 297464 |
1841 | format = QImage::Format_Alpha8; | - |
1842 | bytesPerLine = (glyph->width + 3) & ~3; | - |
1843 | break;executed 297464 times by 76 tests: break; Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| 297464 |
1844 | case QFontEngine::Format_A32: never executed: case QFontEngine::Format_A32: | 0 |
1845 | format = QImage::Format_ARGB32; | - |
1846 | bytesPerLine = glyph->width * 4; | - |
1847 | break; never executed: break; | 0 |
1848 | default: never executed: default: | 0 |
1849 | Q_UNREACHABLE(); | - |
1850 | }; never executed: end of block | 0 |
1851 | | - |
1852 | QImage img(static_cast<const uchar *>(glyph->data), glyph->width, glyph->height, bytesPerLine, format); | - |
1853 | if (format == QImage::Format_Mono)TRUE | evaluated 365 times by 3 testsEvaluated by:- tst_QPainter
- tst_QStaticText
- tst_QWizard
| FALSE | evaluated 297464 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
| 365-297464 |
1854 | img.setColor(1, QColor(Qt::white).rgba()); executed 365 times by 3 tests: img.setColor(1, QColor(Qt::white).rgba()); Executed by:- tst_QPainter
- tst_QStaticText
- tst_QWizard
| 365 |
1855 | return img;executed 297829 times by 76 tests: return img; Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| 297829 |
1856 | } | - |
1857 | | - |
1858 | QImage *QFontEngineFT::lockedAlphaMapForGlyph(glyph_t glyphIndex, QFixed subPixelPosition, | - |
1859 | QFontEngine::GlyphFormat neededFormat, | - |
1860 | const QTransform &t, QPoint *offset) | - |
1861 | { | - |
1862 | Q_ASSERT(currentlyLockedAlphaMap.isNull()); | - |
1863 | | - |
1864 | if (isBitmapFont())TRUE | evaluated 388 times by 2 testsEvaluated by:- tst_QStaticText
- tst_QWizard
| FALSE | evaluated 311293 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
| 388-311293 |
1865 | neededFormat = Format_Mono;executed 388 times by 2 tests: neededFormat = Format_Mono; Executed by:- tst_QStaticText
- tst_QWizard
| 388 |
1866 | else if (neededFormat == Format_None && defaultFormat != Format_None)TRUE | evaluated 299429 times by 72 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- ...
| FALSE | evaluated 11864 times by 9 testsEvaluated by:- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QHeaderView
- tst_QPainter
- tst_QPrinter
- tst_QStaticText
- tst_QTextDocument
- tst_QTreeView
- tst_QTreeWidget
|
TRUE | evaluated 299429 times by 72 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- ...
| FALSE | never evaluated |
| 0-299429 |
1867 | neededFormat = defaultFormat;executed 299429 times by 72 tests: neededFormat = defaultFormat; Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- ...
| 299429 |
1868 | else if (neededFormat == Format_None)TRUE | never evaluated | FALSE | evaluated 11864 times by 9 testsEvaluated by:- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QHeaderView
- tst_QPainter
- tst_QPrinter
- tst_QStaticText
- tst_QTextDocument
- tst_QTreeView
- tst_QTreeWidget
|
| 0-11864 |
1869 | neededFormat = Format_A8; never executed: neededFormat = Format_A8; | 0 |
1870 | | - |
1871 | Glyph *glyph = loadGlyphFor(glyphIndex, subPixelPosition, neededFormat, t); | - |
1872 | | - |
1873 | if (offset != 0 && glyph != 0)TRUE | evaluated 311681 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| FALSE | never evaluated |
TRUE | evaluated 311681 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| FALSE | never evaluated |
| 0-311681 |
1874 | *offset = QPoint(glyph->x, -glyph->y);executed 311681 times by 76 tests: *offset = QPoint(glyph->x, -glyph->y); Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| 311681 |
1875 | | - |
1876 | currentlyLockedAlphaMap = alphaMapFromGlyphData(glyph, neededFormat); | - |
1877 | | - |
1878 | const bool glyphHasGeometry = glyph != Q_NULLPTR && glyph->height != 0 && glyph->width != 0;TRUE | evaluated 311681 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| FALSE | never evaluated |
TRUE | evaluated 297830 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| FALSE | evaluated 13851 times by 59 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGridLayout
- tst_QHeaderView
- tst_QItemDelegate
- ...
|
TRUE | evaluated 297818 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| FALSE | evaluated 12 times by 1 test |
| 0-311681 |
1879 | if (!cacheEnabled && glyph != &emptyGlyph) {TRUE | never evaluated | FALSE | evaluated 311681 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
TRUE | never evaluated | FALSE | never evaluated |
| 0-311681 |
1880 | currentlyLockedAlphaMap = currentlyLockedAlphaMap.copy(); | - |
1881 | delete glyph; | - |
1882 | } never executed: end of block | 0 |
1883 | | - |
1884 | if (!glyphHasGeometry)TRUE | evaluated 13863 times by 59 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGridLayout
- tst_QHeaderView
- tst_QItemDelegate
- ...
| FALSE | evaluated 297818 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
| 13863-297818 |
1885 | return Q_NULLPTR;executed 13863 times by 59 tests: return nullptr; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGridLayout
- tst_QHeaderView
- tst_QItemDelegate
- ...
| 13863 |
1886 | | - |
1887 | if (currentlyLockedAlphaMap.isNull())TRUE | never evaluated | FALSE | evaluated 297818 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
| 0-297818 |
1888 | return QFontEngine::lockedAlphaMapForGlyph(glyphIndex, subPixelPosition, neededFormat, t, offset); never executed: return QFontEngine::lockedAlphaMapForGlyph(glyphIndex, subPixelPosition, neededFormat, t, offset); | 0 |
1889 | | - |
1890 | QImageData *data = currentlyLockedAlphaMap.data_ptr(); | - |
1891 | data->is_locked = true; | - |
1892 | | - |
1893 | return ¤tlyLockedAlphaMap;executed 297818 times by 76 tests: return ¤tlyLockedAlphaMap; Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| 297818 |
1894 | } | - |
1895 | | - |
1896 | void QFontEngineFT::unlockAlphaMapForGlyph() | - |
1897 | { | - |
1898 | QFontEngine::unlockAlphaMapForGlyph(); | - |
1899 | }executed 297818 times by 76 tests: end of block Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| 297818 |
1900 | | - |
1901 | static inline bool is2dRotation(const QTransform &t) | - |
1902 | { | - |
1903 | return qFuzzyCompare(t.m11(), t.m22()) && qFuzzyCompare(t.m12(), -t.m21())executed 2498 times by 7 tests: return qFuzzyCompare(t.m11(), t.m22()) && qFuzzyCompare(t.m12(), -t.m21()) && qFuzzyCompare(t.m11()*t.m22() - t.m12()*t.m21(), qreal(1.0)); Executed by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QPrinter
- tst_QStaticText
- tst_QTabWidget
| 2498 |
1904 | && qFuzzyCompare(t.m11()*t.m22() - t.m12()*t.m21(), qreal(1.0));executed 2498 times by 7 tests: return qFuzzyCompare(t.m11(), t.m22()) && qFuzzyCompare(t.m12(), -t.m21()) && qFuzzyCompare(t.m11()*t.m22() - t.m12()*t.m21(), qreal(1.0)); Executed by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QPrinter
- tst_QStaticText
- tst_QTabWidget
| 2498 |
1905 | } | - |
1906 | | - |
1907 | QFontEngineFT::Glyph *QFontEngineFT::loadGlyphFor(glyph_t g, | - |
1908 | QFixed subPixelPosition, | - |
1909 | GlyphFormat format, | - |
1910 | const QTransform &t, | - |
1911 | bool fetchBoundingBox) | - |
1912 | { | - |
1913 | QGlyphSet *glyphSet = loadGlyphSet(t); | - |
1914 | if (glyphSet != 0 && glyphSet->outline_drawing && !fetchBoundingBox)TRUE | evaluated 311703 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 311703 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
TRUE | never evaluated | FALSE | never evaluated |
| 0-311703 |
1915 | return 0; never executed: return 0; | 0 |
1916 | | - |
1917 | Glyph *glyph = glyphSet != 0 ? glyphSet->getGlyph(g, subPixelPosition) : 0;TRUE | evaluated 311703 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| FALSE | never evaluated |
| 0-311703 |
1918 | if (!glyph || glyph->format != format || (!fetchBoundingBox && !glyph->data)) {TRUE | evaluated 4756 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| FALSE | evaluated 306947 times by 75 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- ...
|
TRUE | evaluated 1 time by 1 test | FALSE | evaluated 306946 times by 75 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- ...
|
TRUE | evaluated 306935 times by 75 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- ...
| FALSE | evaluated 11 times by 1 test |
TRUE | evaluated 13664 times by 56 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFormLayout
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGridLayout
- tst_QHeaderView
- tst_QItemDelegate
- tst_QLabel
- ...
| FALSE | evaluated 293271 times by 75 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- ...
|
| 1-306947 |
1919 | QScopedValueRollback<HintStyle> saved_default_hint_style(default_hint_style); | - |
1920 | if (t.type() >= QTransform::TxScale && !is2dRotation(t))TRUE | evaluated 2498 times by 7 testsEvaluated by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QPrinter
- tst_QStaticText
- tst_QTabWidget
| FALSE | evaluated 15923 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
|
TRUE | evaluated 936 times by 5 testsEvaluated by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QPrinter
- tst_QStaticText
| FALSE | evaluated 1562 times by 4 testsEvaluated by:- tst_QGraphicsView
- tst_QMdiArea
- tst_QStaticText
- tst_QTabWidget
|
| 936-15923 |
1921 | default_hint_style = HintNone; executed 936 times by 5 tests: default_hint_style = HintNone; Executed by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QPrinter
- tst_QStaticText
| 936 |
1922 | | - |
1923 | lockFace(); | - |
1924 | FT_Matrix m = this->matrix; | - |
1925 | FT_Matrix ftMatrix = glyphSet != 0 ? glyphSet->transformationMatrix : QTransformToFTMatrix(t);TRUE | evaluated 18421 times by 76 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| FALSE | never evaluated |
| 0-18421 |
1926 | FT_Matrix_Multiply(&ftMatrix, &m); | - |
1927 | freetype->matrix = m; | - |
1928 | glyph = loadGlyph(glyphSet, g, subPixelPosition, format, false); | - |
1929 | unlockFace(); | - |
1930 | }executed 18421 times by 76 tests: end of block Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| 18421 |
1931 | | - |
1932 | return glyph;executed 311703 times by 76 tests: return glyph; Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| 311703 |
1933 | } | - |
1934 | | - |
1935 | QImage QFontEngineFT::alphaMapForGlyph(glyph_t g, QFixed subPixelPosition) | - |
1936 | { | - |
1937 | return alphaMapForGlyph(g, subPixelPosition, QTransform()); never executed: return alphaMapForGlyph(g, subPixelPosition, QTransform()); | 0 |
1938 | } | - |
1939 | | - |
1940 | QImage QFontEngineFT::alphaMapForGlyph(glyph_t g, QFixed subPixelPosition, const QTransform &t) | - |
1941 | { | - |
1942 | const GlyphFormat neededFormat = antialias ? Format_A8 : Format_Mono;TRUE | evaluated 11 times by 1 test | FALSE | never evaluated |
| 0-11 |
1943 | | - |
1944 | Glyph *glyph = loadGlyphFor(g, subPixelPosition, neededFormat, t); | - |
1945 | | - |
1946 | QImage img = alphaMapFromGlyphData(glyph, neededFormat); | - |
1947 | img = img.copy(); | - |
1948 | | - |
1949 | if (!cacheEnabled && glyph != &emptyGlyph)TRUE | never evaluated | FALSE | evaluated 11 times by 1 test |
TRUE | never evaluated | FALSE | never evaluated |
| 0-11 |
1950 | delete glyph; never executed: delete glyph; | 0 |
1951 | | - |
1952 | if (!img.isNull())TRUE | evaluated 11 times by 1 test | FALSE | never evaluated |
| 0-11 |
1953 | return img;executed 11 times by 1 test: return img; | 11 |
1954 | | - |
1955 | return QFontEngine::alphaMapForGlyph(g); never executed: return QFontEngine::alphaMapForGlyph(g); | 0 |
1956 | } | - |
1957 | | - |
1958 | QImage QFontEngineFT::alphaRGBMapForGlyph(glyph_t g, QFixed subPixelPosition, const QTransform &t) | - |
1959 | { | - |
1960 | if (t.type() > QTransform::TxRotate)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1961 | return QFontEngine::alphaRGBMapForGlyph(g, subPixelPosition, t); never executed: return QFontEngine::alphaRGBMapForGlyph(g, subPixelPosition, t); | 0 |
1962 | | - |
1963 | const GlyphFormat neededFormat = Format_A32; | - |
1964 | | - |
1965 | Glyph *glyph = loadGlyphFor(g, subPixelPosition, neededFormat, t); | - |
1966 | | - |
1967 | QImage img = alphaMapFromGlyphData(glyph, neededFormat); | - |
1968 | img = img.copy(); | - |
1969 | | - |
1970 | if (!cacheEnabled && glyph != &emptyGlyph)TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1971 | delete glyph; never executed: delete glyph; | 0 |
1972 | | - |
1973 | if (!img.isNull())TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1974 | return img; never executed: return img; | 0 |
1975 | | - |
1976 | return QFontEngine::alphaRGBMapForGlyph(g, subPixelPosition, t); never executed: return QFontEngine::alphaRGBMapForGlyph(g, subPixelPosition, t); | 0 |
1977 | } | - |
1978 | | - |
1979 | QImage QFontEngineFT::bitmapForGlyph(glyph_t g, QFixed subPixelPosition, const QTransform &t) | - |
1980 | { | - |
1981 | Glyph *glyph = loadGlyphFor(g, subPixelPosition, defaultFormat, t); | - |
1982 | if (glyph == Q_NULLPTR)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1983 | return QImage(); never executed: return QImage(); | 0 |
1984 | | - |
1985 | QImage img; | - |
1986 | if (defaultFormat == GlyphFormat::Format_ARGB)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1987 | img = QImage(glyph->data, glyph->width, glyph->height, QImage::Format_ARGB32_Premultiplied).copy(); never executed: img = QImage(glyph->data, glyph->width, glyph->height, QImage::Format_ARGB32_Premultiplied).copy(); | 0 |
1988 | else if (defaultFormat == GlyphFormat::Format_Mono)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1989 | img = QImage(glyph->data, glyph->width, glyph->height, QImage::Format_Mono).copy(); never executed: img = QImage(glyph->data, glyph->width, glyph->height, QImage::Format_Mono).copy(); | 0 |
1990 | | - |
1991 | if (!img.isNull() && (!t.isIdentity() || scalableBitmapScaleFactor != 1)) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1992 | QTransform trans(t); | - |
1993 | const qreal scaleFactor = scalableBitmapScaleFactor.toReal(); | - |
1994 | trans.scale(scaleFactor, scaleFactor); | - |
1995 | img = img.transformed(trans, Qt::SmoothTransformation); | - |
1996 | } never executed: end of block | 0 |
1997 | | - |
1998 | if (!cacheEnabled && glyph != &emptyGlyph)TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1999 | delete glyph; never executed: delete glyph; | 0 |
2000 | | - |
2001 | return img; never executed: return img; | 0 |
2002 | } | - |
2003 | | - |
2004 | void QFontEngineFT::removeGlyphFromCache(glyph_t glyph) | - |
2005 | { | - |
2006 | defaultGlyphSet.removeGlyphFromCache(glyph, 0); | - |
2007 | } never executed: end of block | 0 |
2008 | | - |
2009 | int QFontEngineFT::glyphCount() const | - |
2010 | { | - |
2011 | int count = 0; | - |
2012 | FT_Face face = lockFace(); | - |
2013 | if (face) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
2014 | count = face->num_glyphs; | - |
2015 | unlockFace(); | - |
2016 | } never executed: end of block | 0 |
2017 | return count; never executed: return count; | 0 |
2018 | } | - |
2019 | | - |
2020 | FT_Face QFontEngineFT::lockFace(Scaling scale) const | - |
2021 | { | - |
2022 | freetype->lock(); | - |
2023 | FT_Face face = freetype->face; | - |
2024 | if (scale == Unscaled) {TRUE | evaluated 21 times by 6 testsEvaluated by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| FALSE | evaluated 28130 times by 123 testsEvaluated 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
- ...
|
| 21-28130 |
2025 | if (FT_Set_Char_Size(face, face->units_per_EM << 6, face->units_per_EM << 6, 0, 0) == 0) {TRUE | evaluated 21 times by 6 testsEvaluated by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| FALSE | never evaluated |
| 0-21 |
2026 | freetype->xsize = face->units_per_EM << 6; | - |
2027 | freetype->ysize = face->units_per_EM << 6; | - |
2028 | }executed 21 times by 6 tests: end of block Executed by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
| 21 |
2029 | } else if (freetype->xsize != xsize || freetype->ysize != ysize) {executed 21 times by 6 tests: end of block Executed by:- tst_QFontDialog
- tst_QGraphicsView
- tst_QPainter
- tst_QPicture
- tst_QStaticText
- tst_QTextTable
TRUE | evaluated 2053 times by 123 testsEvaluated 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
- ...
| FALSE | evaluated 26077 times by 115 testsEvaluated 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
- ...
|
TRUE | never evaluated | FALSE | evaluated 26077 times by 115 testsEvaluated 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
- ...
|
| 0-26077 |
2030 | FT_Set_Char_Size(face, xsize, ysize, 0, 0); | - |
2031 | freetype->xsize = xsize; | - |
2032 | freetype->ysize = ysize; | - |
2033 | }executed 2053 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
- ...
| 2053 |
2034 | if (freetype->matrix.xx != matrix.xx ||TRUE | evaluated 2496 times by 7 testsEvaluated by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QPrinter
- tst_QStaticText
- tst_QTabWidget
| FALSE | evaluated 25655 times by 123 testsEvaluated 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
- ...
|
| 2496-25655 |
2035 | freetype->matrix.yy != matrix.yy ||TRUE | never evaluated | FALSE | evaluated 25655 times by 123 testsEvaluated 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
- ...
|
| 0-25655 |
2036 | freetype->matrix.xy != matrix.xy ||TRUE | never evaluated | FALSE | evaluated 25655 times by 123 testsEvaluated 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
- ...
|
| 0-25655 |
2037 | freetype->matrix.yx != matrix.yx) {TRUE | never evaluated | FALSE | evaluated 25655 times by 123 testsEvaluated 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
- ...
|
| 0-25655 |
2038 | freetype->matrix = matrix; | - |
2039 | FT_Set_Transform(face, &freetype->matrix, 0); | - |
2040 | }executed 2496 times by 7 tests: end of block Executed by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QMdiArea
- tst_QPrinter
- tst_QStaticText
- tst_QTabWidget
| 2496 |
2041 | | - |
2042 | return face;executed 28151 times by 123 tests: return face; 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
- ...
| 28151 |
2043 | } | - |
2044 | | - |
2045 | void QFontEngineFT::unlockFace() const | - |
2046 | { | - |
2047 | freetype->unlock(); | - |
2048 | }executed 28151 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
- ...
| 28151 |
2049 | | - |
2050 | FT_Face QFontEngineFT::non_locked_face() const | - |
2051 | { | - |
2052 | return freetype->face; never executed: return freetype->face; | 0 |
2053 | } | - |
2054 | | - |
2055 | | - |
2056 | QFontEngineFT::QGlyphSet::QGlyphSet() | - |
2057 | : outline_drawing(false) | - |
2058 | { | - |
2059 | transformationMatrix.xx = 0x10000; | - |
2060 | transformationMatrix.yy = 0x10000; | - |
2061 | transformationMatrix.xy = 0; | - |
2062 | transformationMatrix.yx = 0; | - |
2063 | memset(fast_glyph_data, 0, sizeof(fast_glyph_data)); | - |
2064 | fast_glyph_count = 0; | - |
2065 | }executed 2180 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
- ...
| 2180 |
2066 | | - |
2067 | QFontEngineFT::QGlyphSet::~QGlyphSet() | - |
2068 | { | - |
2069 | clear(); | - |
2070 | }executed 2309 times by 199 tests: end of block Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontCache
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QFormLayout
- ...
| 2309 |
2071 | | - |
2072 | void QFontEngineFT::QGlyphSet::clear() | - |
2073 | { | - |
2074 | if (fast_glyph_count > 0) {TRUE | evaluated 682 times by 120 testsEvaluated by:- tst_QApplication
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsView
- 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
- ...
| FALSE | evaluated 1889 times by 99 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontCache
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QFormLayout
- ...
|
| 682-1889 |
2075 | for (int i = 0; i < 256; ++i) {TRUE | evaluated 174592 times by 120 testsEvaluated by:- tst_QApplication
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsView
- 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
- ...
| FALSE | evaluated 682 times by 120 testsEvaluated by:- tst_QApplication
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsView
- 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
- ...
|
| 682-174592 |
2076 | if (fast_glyph_data[i]) {TRUE | evaluated 11455 times by 120 testsEvaluated by:- tst_QApplication
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsView
- 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
- ...
| FALSE | evaluated 163137 times by 120 testsEvaluated by:- tst_QApplication
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsView
- 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
- ...
|
| 11455-163137 |
2077 | delete fast_glyph_data[i]; | - |
2078 | fast_glyph_data[i] = 0; | - |
2079 | }executed 11455 times by 120 tests: end of block Executed by:- tst_QApplication
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsView
- 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
- ...
| 11455 |
2080 | }executed 174592 times by 120 tests: end of block Executed by:- tst_QApplication
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsView
- 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
- ...
| 174592 |
2081 | fast_glyph_count = 0; | - |
2082 | }executed 682 times by 120 tests: end of block Executed by:- tst_QApplication
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsView
- 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
- ...
| 682 |
2083 | qDeleteAll(glyph_data); | - |
2084 | glyph_data.clear(); | - |
2085 | }executed 2571 times by 199 tests: end of block Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontCache
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QFormLayout
- ...
| 2571 |
2086 | | - |
2087 | void QFontEngineFT::QGlyphSet::removeGlyphFromCache(glyph_t index, QFixed subPixelPosition) | - |
2088 | { | - |
2089 | if (useFastGlyphData(index, subPixelPosition)) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
2090 | if (fast_glyph_data[index]) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
2091 | delete fast_glyph_data[index]; | - |
2092 | fast_glyph_data[index] = 0; | - |
2093 | if (fast_glyph_count > 0)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
2094 | --fast_glyph_count; never executed: --fast_glyph_count; | 0 |
2095 | } never executed: end of block | 0 |
2096 | } else { never executed: end of block | 0 |
2097 | delete glyph_data.take(GlyphAndSubPixelPosition(index, subPixelPosition)); | - |
2098 | } never executed: end of block | 0 |
2099 | } | - |
2100 | | - |
2101 | void QFontEngineFT::QGlyphSet::setGlyph(glyph_t index, QFixed subPixelPosition, Glyph *glyph) | - |
2102 | { | - |
2103 | if (useFastGlyphData(index, subPixelPosition)) {TRUE | evaluated 25565 times by 114 testsEvaluated 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
- ...
| FALSE | evaluated 343 times by 34 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColorDialog
- tst_QComplexText
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QItemDelegate
- tst_QLabel
- tst_QLineEdit
- tst_QListView
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QPainter
- tst_QPlainTextEdit
- tst_QRawFont
- tst_QStackedLayout
- tst_QStaticText
- tst_QTableView
- tst_QTextCursor
- tst_QTextDocument
- ...
|
| 343-25565 |
2104 | if (!fast_glyph_data[index])TRUE | evaluated 11900 times by 114 testsEvaluated 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
- ...
| FALSE | evaluated 13665 times by 57 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFormLayout
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGridLayout
- tst_QHeaderView
- tst_QItemDelegate
- tst_QLabel
- ...
|
| 11900-13665 |
2105 | ++fast_glyph_count;executed 11900 times by 114 tests: ++fast_glyph_count; 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
- ...
| 11900 |
2106 | fast_glyph_data[index] = glyph; | - |
2107 | } else {executed 25565 times by 114 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
- ...
| 25565 |
2108 | glyph_data.insert(GlyphAndSubPixelPosition(index, subPixelPosition), glyph); | - |
2109 | }executed 343 times by 34 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColorDialog
- tst_QComplexText
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- tst_QItemDelegate
- tst_QLabel
- tst_QLineEdit
- tst_QListView
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QPainter
- tst_QPlainTextEdit
- tst_QRawFont
- tst_QStackedLayout
- tst_QStaticText
- tst_QTableView
- tst_QTextCursor
- tst_QTextDocument
- ...
| 343 |
2110 | } | - |
2111 | | - |
2112 | int QFontEngineFT::getPointInOutline(glyph_t glyph, int flags, quint32 point, QFixed *xpos, QFixed *ypos, quint32 *nPoints) | - |
2113 | { | - |
2114 | lockFace(); | - |
2115 | bool hsubpixel = true; | - |
2116 | int vfactor = 1; | - |
2117 | int load_flags = loadFlags(0, Format_A8, flags, hsubpixel, vfactor); | - |
2118 | int result = freetype->getPointInOutline(glyph, load_flags, point, xpos, ypos, nPoints); | - |
2119 | unlockFace(); | - |
2120 | return result; never executed: return result; | 0 |
2121 | } | - |
2122 | | - |
2123 | bool QFontEngineFT::initFromFontEngine(const QFontEngineFT *fe) | - |
2124 | { | - |
2125 | if (!init(fe->faceId(), fe->antialias, fe->defaultFormat, fe->freetype))TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
2126 | return false; never executed: return false; | 0 |
2127 | | - |
2128 | | - |
2129 | | - |
2130 | freetype->ref.ref(); | - |
2131 | | - |
2132 | default_load_flags = fe->default_load_flags; | - |
2133 | default_hint_style = fe->default_hint_style; | - |
2134 | antialias = fe->antialias; | - |
2135 | transform = fe->transform; | - |
2136 | embolden = fe->embolden; | - |
2137 | obliquen = fe->obliquen; | - |
2138 | subpixelType = fe->subpixelType; | - |
2139 | lcdFilterType = fe->lcdFilterType; | - |
2140 | embeddedbitmap = fe->embeddedbitmap; | - |
2141 | | - |
2142 | return true;executed 4 times by 1 test: return true; | 4 |
2143 | } | - |
2144 | | - |
2145 | QFontEngine *QFontEngineFT::cloneWithSize(qreal pixelSize) const | - |
2146 | { | - |
2147 | QFontDef fontDef(this->fontDef); | - |
2148 | fontDef.pixelSize = pixelSize; | - |
2149 | QFontEngineFT *fe = new QFontEngineFT(fontDef); | - |
2150 | if (!fe->initFromFontEngine(this)) {TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
2151 | delete fe; | - |
2152 | return 0; never executed: return 0; | 0 |
2153 | } else { | - |
2154 | return fe;executed 4 times by 1 test: return fe; | 4 |
2155 | } | - |
2156 | } | - |
2157 | | - |
2158 | Qt::HANDLE QFontEngineFT::handle() const | - |
2159 | { | - |
2160 | return non_locked_face(); never executed: return non_locked_face(); | 0 |
2161 | } | - |
2162 | | - |
2163 | QT_END_NAMESPACE | - |
2164 | | - |
2165 | #endif // QT_NO_FREETYPE | - |
| | |