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; |