qfontengine_ft.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/gui/text/qfontengine_ft.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2016 The Qt Company Ltd.-
4** Contact: https://www.qt.io/licensing/-
5**-
6** This file is part of the QtGui module of the Qt Toolkit.-
7**-
8** $QT_BEGIN_LICENSE:LGPL$-
9** Commercial License Usage-
10** Licensees holding valid commercial Qt licenses may use this file in-
11** accordance with the commercial license agreement provided with the-
12** Software or, alternatively, in accordance with the terms contained in-
13** a written agreement between you and The Qt Company. For licensing terms-
14** and conditions see https://www.qt.io/terms-conditions. For further-
15** information use the contact form at https://www.qt.io/contact-us.-
16**-
17** GNU Lesser General Public License Usage-
18** Alternatively, this file may be used under the terms of the GNU Lesser-
19** General Public License version 3 as published by the Free Software-
20** Foundation and appearing in the file LICENSE.LGPL3 included in the-
21** packaging of this file. Please review the following information to-
22** ensure the GNU Lesser General Public License version 3 requirements-
23** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.-
24**-
25** GNU General Public License Usage-
26** Alternatively, this file may be used under the terms of the GNU-
27** General Public License version 2.0 or (at your option) the GNU General-
28** Public license version 3 or any later version approved by the KDE Free-
29** Qt Foundation. The licenses are as published by the Free Software-
30** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3-
31** included in the packaging of this file. Please review the following-
32** information to ensure the GNU General Public License requirements will-
33** be met: https://www.gnu.org/licenses/gpl-2.0.html and-
34** https://www.gnu.org/licenses/gpl-3.0.html.-
35**-
36** $QT_END_LICENSE$-
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-
85QT_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-
92static 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)) {
( face->face_f... ( 1L << 3 ) )Description
TRUEevaluated 2034 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEevaluated 83 times by 4 tests
Evaluated 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-
107static QFontEngineFT::Glyph emptyGlyph = {0, 0, 0, 0, 0, 0, 0, 0};-
108-
109static const QFontEngine::HintStyle ftInitialDefaultHintStyle =-
110#ifdef Q_OS_WIN-
111 QFontEngineFT::HintFull;-
112#else-
113 QFontEngineFT::HintNone;-
114#endif-
115-
116// -------------------------- Freetype support -------------------------------
117-
118class QtFreetypeData-
119{-
120public:-
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-
130QtFreetypeData::~QtFreetypeData()-
131{-
132 for (QHash<QFontEngine::FaceId, QFreetypeFace *>::ConstIterator iter = faces.cbegin(); iter != faces.cend(); ++iter)
iter != faces.cend()Description
TRUEevaluated 8 times by 8 tests
Evaluated 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
FALSEevaluated 135 times by 124 tests
Evaluated 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-
140Q_GLOBAL_STATIC(QtFreetypeData, theFreetypeData)-
141-
142QtFreetypeData *qt_getFreetypeData()-
143{-
144 return theFreetypeData();-
145}-
146#else-
147Q_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
  • ...
guard.load() =...c::InitializedDescription
TRUEevaluated 124 times by 122 tests
Evaluated 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
  • ...
FALSEnever evaluated
0-3736
148-
149QtFreetypeData *qt_getFreetypeData()-
150{-
151 QtFreetypeData *&freetypeData = theFreetypeData()->localData();-
152 if (!freetypeData)
!freetypeDataDescription
TRUEevaluated 136 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEevaluated 3600 times by 168 tests
Evaluated 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-
158FT_Library qt_getFreetype()-
159{-
160 QtFreetypeData *freetypeData = qt_getFreetypeData();-
161 if (!freetypeData->library)
!freetypeData->libraryDescription
TRUEevaluated 21 times by 5 tests
Evaluated by:
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
FALSEevaluated 23 times by 5 tests
Evaluated 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-
166int 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)
os2Description
TRUEevaluated 1962 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEevaluated 75 times by 6 tests
Evaluated 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-
175int 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))
int error = FT... glyph, flags)Description
TRUEnever evaluated
FALSEnever evaluated
0
178 return error;
never executed: return error;
0
179-
180 if (face->glyph->format != FT_GLYPH_FORMAT_OUTLINE)
face->glyph->f...FORMAT_OUTLINEDescription
TRUEnever evaluated
FALSEnever 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))
!(*nPoints)Description
TRUEnever evaluated
FALSEnever evaluated
0
185 return Err_Ok;
never executed: return Err_Ok;
0
186-
187 if (point > *nPoints)
point > *nPointsDescription
TRUEnever evaluated
FALSEnever 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-
196bool 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-
205extern QByteArray qt_fontdata_from_index(int);-
206-
207/*-
208 * One font file can contain more than one font (bold/italic for example)-
209 * find the right one and return it.-
210 *-
211 * Returns the freetype face or 0 in case of an empty file or any other problems-
212 * (like not being able to open the file)-
213 */-
214QFreetypeFace *QFreetypeFace::getFace(const QFontEngine::FaceId &face_id,-
215 const QByteArray &fontData)-
216{-
217 if (face_id.filename.isEmpty() && fontData.isEmpty())
face_id.filename.isEmpty()Description
TRUEevaluated 1250 times by 1 test
Evaluated by:
  • tst_QRawFont
FALSEevaluated 785 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
fontData.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 1250 times by 1 test
Evaluated by:
  • tst_QRawFont
0-1250
218 return 0;
never executed: return 0;
0
219-
220 QtFreetypeData *freetypeData = qt_getFreetypeData();-
221 if (!freetypeData->library)
!freetypeData->libraryDescription
TRUEevaluated 1353 times by 122 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEevaluated 682 times by 50 tests
Evaluated 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) {
freetypeDescription
TRUEevaluated 367 times by 24 tests
Evaluated 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
FALSEevaluated 1668 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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()) {
!face_id.filename.isEmpty()Description
TRUEevaluated 418 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEevaluated 1250 times by 1 test
Evaluated by:
  • tst_QRawFont
418-1250
231 QString fileName = QFile::decodeName(face_id.filename);-
232 if (face_id.filename.startsWith(":qmemoryfonts/")) {
face_id.filena...memoryfonts/")Description
TRUEnever evaluated
FALSEevaluated 418 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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 // from qfontdatabase.cpp-
234 QByteArray idx = face_id.filename;-
235 idx.remove(0, 14); // remove ':qmemoryfonts/'-
236 bool ok = false;-
237 newFreetype->fontData = qt_fontdata_from_index(idx.toInt(&ok));-
238 if (!ok)
!okDescription
TRUEnever evaluated
FALSEnever evaluated
0
239 newFreetype->fontData = QByteArray();
never executed: newFreetype->fontData = QByteArray();
0
240 } else if (!QFileInfo(fileName).isNativePath()) {
never executed: end of block
!QFileInfo(fil...isNativePath()Description
TRUEevaluated 21 times by 4 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
FALSEevaluated 397 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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)) {
!file.open(QIO...ice::ReadOnly)Description
TRUEnever evaluated
FALSEevaluated 21 times by 4 tests
Evaluated 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
Executed by:
  • tst_QRawFont
1250
250 if (!newFreetype->fontData.isEmpty()) {
!newFreetype->...Data.isEmpty()Description
TRUEevaluated 1271 times by 4 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
FALSEevaluated 397 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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)) {
FT_New_Memory_....index, &face)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QRawFont
FALSEevaluated 1269 times by 4 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
2-1269
252 return 0;
executed 2 times by 1 test: return 0;
Executed by:
  • tst_QRawFont
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
FT_New_Face(fr....index, &face)Description
TRUEnever evaluated
FALSEevaluated 397 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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) {
i < newFreetyp...->num_charmapsDescription
TRUEevaluated 6588 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEevaluated 1666 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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)
!newFreetype->unicode_mapDescription
TRUEevaluated 11 times by 3 tests
Evaluated by:
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
FALSEevaluated 1532 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
newFreetype->u...CODING_UNICODEDescription
TRUEnever evaluated
FALSEevaluated 1532 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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)
!newFreetype->symbol_mapDescription
TRUEevaluated 6 times by 3 tests
Evaluated by:
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
FALSEnever 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)
!( newFreetype... ( 1L << 0 ) )Description
TRUEnever evaluated
FALSEevaluated 1666 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
newFreetype->f...xed_sizes == 1Description
TRUEnever evaluated
FALSEnever 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 // we could return null in principle instead of throwing
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-
308void 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-
315void QFreetypeFace::release(const QFontEngine::FaceId &face_id)-
316{-
317 if (!ref.deref()) {
!ref.deref()Description
TRUEevaluated 1660 times by 126 tests
Evaluated 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
  • ...
FALSEevaluated 371 times by 26 tests
Evaluated 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) {
faceDescription
TRUEevaluated 1657 times by 125 tests
Evaluated 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
  • ...
FALSEevaluated 3 times by 3 tests
Evaluated 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))
freetypeData->...tains(face_id)Description
TRUEevaluated 1657 times by 125 tests
Evaluated 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
  • ...
FALSEnever 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()) {
freetypeData->faces.isEmpty()Description
TRUEevaluated 1365 times by 120 tests
Evaluated 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
  • ...
FALSEevaluated 292 times by 48 tests
Evaluated 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-
337void 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)) {
!(face->face_f...& ( 1L << 0 ))Description
TRUEnever evaluated
FALSEevaluated 2037 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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()) {
!isScalableBitmap()Description
TRUEnever evaluated
FALSEnever evaluated
0
347 /*-
348 * Bitmap only faces must match exactly, so find the closest-
349 * one (height dominant search)-
350 */-
351 for (int i = 1; i < face->num_fixed_sizes; i++) {
i < face->num_fixed_sizesDescription
TRUEnever evaluated
FALSEnever evaluated
0
352 if (qAbs(*ysize - face->available_sizes[i].y_ppem) <
qAbs(*ysize - ...[best].y_ppem)Description
TRUEnever evaluated
FALSEnever evaluated
0
353 qAbs(*ysize - face->available_sizes[best].y_ppem) ||
qAbs(*ysize - ...[best].y_ppem)Description
TRUEnever evaluated
FALSEnever evaluated
0
354 (qAbs(*ysize - face->available_sizes[i].y_ppem) ==
qAbs(*ysize - ...[best].y_ppem)Description
TRUEnever evaluated
FALSEnever evaluated
0
355 qAbs(*ysize - face->available_sizes[best].y_ppem) &&
qAbs(*ysize - ...[best].y_ppem)Description
TRUEnever evaluated
FALSEnever evaluated
0
356 qAbs(*xsize - face->available_sizes[i].x_ppem) <
qAbs(*xsize - ...[best].x_ppem)Description
TRUEnever evaluated
FALSEnever evaluated
0
357 qAbs(*xsize - face->available_sizes[best].x_ppem))) {
qAbs(*xsize - ...[best].x_ppem)Description
TRUEnever evaluated
FALSEnever 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 // Select the shortest bitmap strike whose height is larger than the desired height-
363 for (int i = 1; i < face->num_fixed_sizes; i++) {
i < face->num_fixed_sizesDescription
TRUEnever evaluated
FALSEnever evaluated
0
364 if (face->available_sizes[i].y_ppem < *ysize) {
face->availabl..._ppem < *ysizeDescription
TRUEnever evaluated
FALSEnever evaluated
0
365 if (face->available_sizes[i].y_ppem > face->available_sizes[best].y_ppem)
face->availabl...s[best].y_ppemDescription
TRUEnever evaluated
FALSEnever 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
face->availabl..._ppem < *ysizeDescription
TRUEnever evaluated
FALSEnever 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
face->availabl...s[best].y_ppemDescription
TRUEnever evaluated
FALSEnever 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 // According to freetype documentation we must use FT_Select_Size-
376 // to make sure we can select the desired bitmap strike index-
377 if (FT_Select_Size(face, best) == 0) {
FT_Select_Size...ce, best) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
378 if (isScalableBitmap())
isScalableBitmap()Description
TRUEnever evaluated
FALSEnever 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));
*xsize > (64<<6)Description
TRUEevaluated 84 times by 5 tests
Evaluated by:
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QPainter
  • tst_QTextLayout
  • tst_QToolTip
FALSEevaluated 1953 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
*ysize > (64<<6)Description
TRUEnever evaluated
FALSEevaluated 1953 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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-
390QFontEngine::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)
FT_Get_PS_Font...ont_info) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
396 p.copyright = font_info.notice;
never executed: p.copyright = font_info.notice;
0
397 if (FT_IS_SCALABLE(face)) {
( face->face_f... ( 1L << 0 ) )Description
TRUEnever evaluated
FALSEnever 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// p.boundingBox = QRectF(-p.ascent.toReal(), 0, (p.ascent + p.descent).toReal(), face->size->metrics.max_advance/64.);-
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-
420bool 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/* Some fonts (such as MingLiu rely on hinting to scale different-
426 components to their correct sizes. While this is really broken (it-
427 should be done in the component glyph itself, not the hinter) we-
428 will have to live with it.-
429-
430 This means we can not use FT_LOAD_NO_HINTING to get the glyph-
431 outline. All we can do is to load the unscaled glyph and scale it-
432 down manually when required.-
433*/-
434static 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) {
p < eDescription
TRUEevaluated 3260 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
FALSEevaluated 163 times by 6 tests
Evaluated 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-
448void 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 // convert the outline to a painter path-
456 int i = 0;-
457 for (int j = 0; j < g->outline.n_contours; ++j) {
j < g->outline.n_contoursDescription
TRUEevaluated 216 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
FALSEevaluated 163 times by 6 tests
Evaluated 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)) { // start point is not on curve:
!(g->outline.tags[i] & 1)Description
TRUEnever evaluated
FALSEevaluated 216 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
0-216
462 if (!(g->outline.tags[last_point] & 1)) { // end point is not on curve:
!(g->outline.t...st_point] & 1)Description
TRUEnever evaluated
FALSEnever 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; // to use original start point as control point below-
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) {
i < last_pointDescription
TRUEevaluated 3818 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
FALSEevaluated 216 times by 6 tests
Evaluated 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 // cubic bezier element-
489 if (n < 4)
n < 4Description
TRUEnever evaluated
FALSEnever 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 // quadratic bezier element-
496 if (n < 3)
n < 3Description
TRUEevaluated 1548 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
FALSEevaluated 774 times by 6 tests
Evaluated 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) {
n == 2Description
TRUEevaluated 834 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
FALSEevaluated 662 times by 6 tests
Evaluated 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) {
n == 3Description
TRUEevaluated 662 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
FALSEnever 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) {
n == 1Description
TRUEevaluated 104 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
FALSEevaluated 112 times by 5 tests
Evaluated 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) {
n == 2Description
TRUEevaluated 112 times by 5 tests
Evaluated by:
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
FALSEnever 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-
540extern void qt_addBitmapToPath(qreal x0, qreal y0, const uchar *image_data, int bpl, int w, int h, QPainterPath *path);-
541-
542void QFreetypeFace::addBitmapToPath(FT_GlyphSlot slot, const QFixedPoint &point, QPainterPath *path)-
543{-
544 if (slot->format != FT_GLYPH_FORMAT_BITMAP
slot->format !..._FORMAT_BITMAPDescription
TRUEnever evaluated
FALSEnever evaluated
0
545 || slot->bitmap.pixel_mode != FT_PIXEL_MODE_MONO)
slot->bitmap.p...IXEL_MODE_MONODescription
TRUEnever evaluated
FALSEnever 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-
553QFontEngineFT::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-
558struct LcdFilterDummy-
559{-
560 static inline void filterPixel(uchar &, uchar &, uchar &)-
561 {}-
562};-
563-
564struct LcdFilterLegacy-
565{-
566 static inline void filterPixel(uchar &red, uchar &green, uchar &blue)-
567 {-
568 uint r = red, g = green, b = blue;-
569 // intra-pixel filter used by the legacy filter (adopted from _ft_lcd_filter_legacy)-
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-
576template <typename LcdFilter>-
577static 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--) {
height--Description
TRUEnever evaluated
FALSEnever evaluated
0
582 uint *dd = dst;-
583 for (int x = 0; x < w; x += 3) {
x < wDescription
TRUEnever evaluated
FALSEnever 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 // alpha = green-
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-
596static inline void convertRGBToARGB(const uchar *src, uint *dst, int width, int height, int src_pitch, bool bgr, bool legacyFilter)-
597{-
598 if (!legacyFilter)
!legacyFilterDescription
TRUEnever evaluated
FALSEnever 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-
604template <typename LcdFilter>-
605static 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--) {
height--Description
TRUEnever evaluated
FALSEnever evaluated
0
609 for (int x = 0; x < width; x++) {
x < widthDescription
TRUEnever evaluated
FALSEnever 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 // alpha = green-
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-
621static inline void convertRGBToARGB_V(const uchar *src, uint *dst, int width, int height, int src_pitch, bool bgr, bool legacyFilter)-
622{-
623 if (!legacyFilter)
!legacyFilterDescription
TRUEnever evaluated
FALSEnever 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-
629static inline void convertGRAYToARGB(const uchar *src, uint *dst, int width, int height, int src_pitch)-
630{-
631 while (height--) {
height--Description
TRUEnever evaluated
FALSEnever evaluated
0
632 const uchar *p = src;-
633 const uchar * const e = p + width;-
634 while (p < e) {
p < eDescription
TRUEnever evaluated
FALSEnever 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-
642static void convoluteBitmap(const uchar *src, uchar *dst, int width, int height, int pitch)-
643{-
644 // convolute the bitmap with a triangle filter to get rid of color fringes-
645 // If we take account for a gamma value of 2, we end up with-
646 // weights of 1, 4, 9, 4, 1. We use an approximation of 1, 3, 8, 3, 1 here,-
647 // as this nicely sums up to 16 :)-
648 int h = height;-
649 while (h--) {
h--Description
TRUEnever evaluated
FALSEnever evaluated
0
650 dst[0] = dst[1] = 0;-
651 //-
652 for (int x = 2; x < width - 2; ++x) {
x < width - 2Description
TRUEnever evaluated
FALSEnever 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-
662QFontEngineFT::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;
env.isEmpty()Description
TRUEevaluated 2039 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEnever evaluated
env.toInt() == 0Description
TRUEnever evaluated
FALSEnever 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-
692QFontEngineFT::~QFontEngineFT()-
693{-
694 if (freetype)
freetypeDescription
TRUEevaluated 2031 times by 127 tests
Evaluated 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
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QRawFont
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-
698bool 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-
704static void dont_delete(void*) {}-
705-
706bool QFontEngineFT::init(FaceId faceId, bool antialias, GlyphFormat format,-
707 QFreetypeFace *freetypeFace)-
708{-
709 freetype = freetypeFace;-
710 if (!freetype) {
!freetypeDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QRawFont
FALSEevaluated 2037 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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;
Executed by:
  • tst_QRawFont
2
714 }-
715 defaultFormat = format;-
716 this->antialias = antialias;-
717-
718 if (!antialias)
!antialiasDescription
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QStaticText
  • tst_QWizard
FALSEevaluated 2034 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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 // don't assume that type1 fonts are symbol fonts by default-
728 if (FT_Get_PS_Font_Info(freetype->face, &psrec) == FT_Err_Ok) {
FT_Get_PS_Font...) == FT_Err_OkDescription
TRUEevaluated 79 times by 6 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QLabel
  • tst_QTextLayout
FALSEevaluated 1958 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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)) {
( face->face_f... ( 1L << 0 ) )Description
TRUEevaluated 2037 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEnever evaluated
0-2037
737 bool fake_oblique = (fontDef.style != QFont::StyleNormal) && !(face->style_flags & FT_STYLE_FLAG_ITALIC);
(fontDef.style...::StyleNormal)Description
TRUEevaluated 194 times by 4 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QItemDelegate
  • tst_QTextLayout
FALSEevaluated 1843 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
!(face->style_... & ( 1 << 0 ))Description
TRUEnever evaluated
FALSEevaluated 194 times by 4 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QItemDelegate
  • tst_QTextLayout
0-1843
738 if (fake_oblique)
fake_obliqueDescription
TRUEnever evaluated
FALSEevaluated 2037 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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 // fake bold-
743 if ((fontDef.weight >= QFont::Bold) && !(face->style_flags & FT_STYLE_FLAG_BOLD) && !FT_IS_FIXED_WIDTH(face)) {
(fontDef.weigh...= QFont::Bold)Description
TRUEevaluated 257 times by 37 tests
Evaluated 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
  • ...
FALSEevaluated 1780 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
!(face->style_... & ( 1 << 1 ))Description
TRUEnever evaluated
FALSEevaluated 257 times by 37 tests
Evaluated 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
  • ...
!( face->face_... ( 1L << 2 ) )Description
TRUEnever evaluated
FALSEnever evaluated
0-1780
744 if (const TT_OS2 *os2 = reinterpret_cast<const TT_OS2 *>(FT_Get_Sfnt_Table(face, ft_sfnt_os2))) {
const TT_OS2 *... ft_sfnt_os2))Description
TRUEnever evaluated
FALSEnever evaluated
0
745 if (os2->usWeightClass < 750)
os2->usWeightClass < 750Description
TRUEnever evaluated
FALSEnever 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 // underline metrics-
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 // ad hoc algorithm-
754 int score = fontDef.weight * fontDef.pixelSize;-
755 line_thickness = score / 700;-
756 // looks better with thicker line for small pointsizes-
757 if (line_thickness < 2 && score >= 1050)
line_thickness < 2Description
TRUEnever evaluated
FALSEnever evaluated
score >= 1050Description
TRUEnever evaluated
FALSEnever evaluated
0
758 line_thickness = 2;
never executed: line_thickness = 2;
0
759 underline_position = ((line_thickness * 2) + 3) / 6;-
760-
761 if (isScalableBitmap()) {
isScalableBitmap()Description
TRUEnever evaluated
FALSEnever 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)
line_thickness < 1Description
TRUEevaluated 1738 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEevaluated 299 times by 18 tests
Evaluated 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 TrueType fonts with embedded bitmaps may have a bitmap font specific-
773 ascent/descent in the EBLC table. There is no direct public API-
774 to extract those values. The only way we've found is to trick freetype-
775 into thinking that it's not a scalable font in FT_SelectSize so that-
776 the metrics are retrieved from the bitmap strikes.-
777 */-
778 if (FT_IS_SCALABLE(face)) {
( face->face_f... ( 1L << 0 ) )Description
TRUEevaluated 2037 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEnever evaluated
0-2037
779 for (int i = 0; i < face->num_fixed_sizes; ++i) {
i < face->num_fixed_sizesDescription
TRUEnever evaluated
FALSEevaluated 2037 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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) {
xsize == face-...izes[i].x_ppemDescription
TRUEnever evaluated
FALSEnever evaluated
ysize == face-...izes[i].y_ppemDescription
TRUEnever evaluated
FALSEnever 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) {
face->size->me....descender > 0Description
TRUEnever evaluated
FALSEnever 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) {
!freetype->hbFaceDescription
TRUEevaluated 1666 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEevaluated 371 times by 24 tests
Evaluated 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(); // populates face_-
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 // we share the HB face in QFreeTypeFace, so do not let ~QFontEngine() destroy it-
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-
815void QFontEngineFT::setQtDefaultHintStyle(QFont::HintingPreference hintingPreference)-
816{-
817 switch (hintingPreference) {-
818 case QFont::PreferNoHinting:
executed 311 times by 1 test: case QFont::PreferNoHinting:
Executed by:
  • tst_QRawFont
311
819 setDefaultHintStyle(HintNone);-
820 break;
executed 311 times by 1 test: break;
Executed by:
  • tst_QRawFont
311
821 case QFont::PreferFullHinting:
executed 311 times by 1 test: case QFont::PreferFullHinting:
Executed by:
  • tst_QRawFont
311
822 setDefaultHintStyle(HintFull);-
823 break;
executed 311 times by 1 test: break;
Executed by:
  • tst_QRawFont
311
824 case QFont::PreferVerticalHinting:
executed 311 times by 1 test: case QFont::PreferVerticalHinting:
Executed by:
  • tst_QRawFont
311
825 setDefaultHintStyle(HintLight);-
826 break;
executed 311 times by 1 test: break;
Executed by:
  • tst_QRawFont
311
827 case QFont::PreferDefaultHinting:
executed 315 times by 1 test: case QFont::PreferDefaultHinting:
Executed by:
  • tst_QRawFont
315
828 setDefaultHintStyle(ftInitialDefaultHintStyle);-
829 break;
executed 315 times by 1 test: break;
Executed by:
  • tst_QRawFont
315
830 }-
831}
executed 1248 times by 1 test: end of block
Executed by:
  • tst_QRawFont
1248
832-
833void 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-
838int 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 == HintLight
default_hint_s...e == HintLightDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QRawFont
FALSEevaluated 25910 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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) {
format == Format_MonoDescription
TRUEevaluated 114 times by 3 tests
Evaluated by:
  • tst_QPainter
  • tst_QStaticText
  • tst_QWizard
FALSEevaluated 25810 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
format == Format_A32Description
TRUEnever evaluated
FALSEevaluated 25810 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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) {
subpixelType == Subpixel_RGBDescription
TRUEnever evaluated
FALSEnever evaluated
subpixelType == Subpixel_BGRDescription
TRUEnever evaluated
FALSEnever evaluated
0
850 if (default_hint_style == HintFull)
default_hint_style == HintFullDescription
TRUEnever evaluated
FALSEnever 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
subpixelType == Subpixel_VRGBDescription
TRUEnever evaluated
FALSEnever evaluated
subpixelType == Subpixel_VBGRDescription
TRUEnever evaluated
FALSEnever evaluated
0
854 if (default_hint_style == HintFull)
default_hint_style == HintFullDescription
TRUEnever evaluated
FALSEnever 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
format == Format_ARGBDescription
TRUEnever evaluated
FALSEevaluated 25810 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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)
setDescription
TRUEevaluated 25924 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEnever evaluated
set->outline_drawingDescription
TRUEevaluated 40 times by 4 tests
Evaluated by:
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QPainter
  • tst_QToolTip
FALSEevaluated 25884 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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))
default_hint_style == HintNoneDescription
TRUEevaluated 1055 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPrinter
  • tst_QRawFont
  • tst_QStaticText
FALSEevaluated 24869 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
(flags & DesignMetrics)Description
TRUEnever evaluated
FALSEevaluated 24869 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
setDescription
TRUEevaluated 24869 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEnever evaluated
set->outline_drawingDescription
TRUEevaluated 40 times by 4 tests
Evaluated by:
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QPainter
  • tst_QToolTip
FALSEevaluated 24829 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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)
forceAutoHintDescription
TRUEnever evaluated
FALSEevaluated 25924 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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-
878static inline bool areMetricsTooLarge(const QFontEngineFT::GlyphInfo &info)-
879{-
880 // false if exceeds QFontEngineFT::Glyph metrics-
881 return (short)(info.linearAdvance) != info.linearAdvance
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
882 || (uchar)(info.width) != info.width
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
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-
886QFontEngineFT::Glyph *QFontEngineFT::loadGlyph(QGlyphSet *set, uint glyph,-
887 QFixed subPixelPosition,-
888 GlyphFormat format,-
889 bool fetchMetricsOnly) const-
890{-
891// Q_ASSERT(freetype->lock == 1);-
892-
893 if (format == Format_None)
format == Format_NoneDescription
TRUEevaluated 7503 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEevaluated 18421 times by 76 tests
Evaluated 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
  • ...
defaultFormat != Format_NoneDescription
TRUEevaluated 7503 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEnever evaluated
0-7503
895 Q_ASSERT(format != Format_None);-
896-
897 Glyph *g = set ? set->getGlyph(glyph, subPixelPosition) : 0;
setDescription
TRUEevaluated 25924 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEnever evaluated
0-25924
898 if (g && g->format == format && (fetchMetricsOnly || g->data))
gDescription
TRUEevaluated 13665 times by 57 tests
Evaluated 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
  • ...
FALSEevaluated 12259 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
g->format == formatDescription
TRUEevaluated 13664 times by 56 tests
Evaluated 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
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPainter
fetchMetricsOnlyDescription
TRUEnever evaluated
FALSEevaluated 13664 times by 56 tests
Evaluated 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
  • ...
g->dataDescription
TRUEnever evaluated
FALSEevaluated 13664 times by 56 tests
Evaluated 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))
!gDescription
TRUEevaluated 12259 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEevaluated 13665 times by 57 tests
Evaluated 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
  • ...
setDescription
TRUEevaluated 12259 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEnever evaluated
set->isGlyphMissing(glyph)Description
TRUEnever evaluated
FALSEevaluated 12259 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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());
format == Format_MonoDescription
TRUEevaluated 114 times by 3 tests
Evaluated by:
  • tst_QPainter
  • tst_QStaticText
  • tst_QWizard
FALSEevaluated 25810 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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 != 0x10000
matrix.xx != 0x10000Description
TRUEevaluated 2498 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
FALSEevaluated 23426 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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 != 0x10000
matrix.yy != 0x10000Description
TRUEnever evaluated
FALSEevaluated 23426 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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 != 0
matrix.xy != 0Description
TRUEnever evaluated
FALSEevaluated 23426 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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;
matrix.yx != 0Description
TRUEnever evaluated
FALSEevaluated 23426 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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()))
transformDescription
TRUEevaluated 2498 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
FALSEevaluated 23426 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
format != Format_MonoDescription
TRUEevaluated 23312 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEevaluated 114 times by 3 tests
Evaluated by:
  • tst_QPainter
  • tst_QStaticText
  • tst_QWizard
!isScalableBitmap()Description
TRUEevaluated 23312 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEnever 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)) {
errDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QGlyphRun
FALSEevaluated 25922 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
(load_flags & ( 1L << 3 ))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QGlyphRun
FALSEnever 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
Executed by:
  • tst_QGlyphRun
2
931 if (err == FT_Err_Too_Few_Arguments) {
err == FT_Err_..._Few_ArgumentsDescription
TRUEnever evaluated
FALSEevaluated 25924 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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 // this is an error in the bytecode interpreter, just try to run without it-
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
err == FT_Err_...ution_Too_LongDescription
TRUEnever evaluated
FALSEevaluated 25924 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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 // This is an error in the bytecode, probably a web font made by someone who-
937 // didn't test bytecode hinting at all so disable for it for all glyphs.-
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) {
err != FT_Err_OkDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QGlyphRun
FALSEevaluated 25922 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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)
setDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QGlyphRun
FALSEnever evaluated
0-2
946 set->setGlyphMissing(glyph);
executed 2 times by 1 test: set->setGlyphMissing(glyph);
Executed by:
  • tst_QGlyphRun
2
947 return &emptyGlyph;
executed 2 times by 1 test: return &emptyGlyph;
Executed by:
  • tst_QGlyphRun
2
948 }-
949-
950 FT_GlyphSlot slot = face->glyph;-
951-
952 if (embolden)
emboldenDescription
TRUEnever evaluated
FALSEevaluated 25922 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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) {
obliquenDescription
TRUEnever evaluated
FALSEevaluated 25922 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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 // While Embolden alters the metrics of the slot, oblique does not, so we need-
958 // to fix this ourselves.-
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) {
setDescription
TRUEevaluated 25922 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEnever evaluated
set->outline_drawingDescription
TRUEevaluated 40 times by 4 tests
Evaluated by:
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QPainter
  • tst_QToolTip
FALSEevaluated 25882 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
fetchMetricsOnlyDescription
TRUEevaluated 7462 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEevaluated 18420 times by 76 tests
Evaluated 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 // If any of the metrics are too large to fit, don't cache them-
985 if (areMetricsTooLarge(info))
areMetricsTooLarge(info)Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QFontDatabase
FALSEevaluated 7488 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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;
Executed by:
  • tst_QFontDatabase
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)
setDescription
TRUEevaluated 7488 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEnever 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)) {
slot->format =...FORMAT_OUTLINEDescription
TRUEevaluated 18420 times by 76 tests
Evaluated 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
  • ...
FALSEnever evaluated
hsubpixelDescription
TRUEnever evaluated
FALSEevaluated 18420 times by 76 tests
Evaluated 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
  • ...
vfactor != 1Description
TRUEnever evaluated
FALSEevaluated 18420 times by 76 tests
Evaluated 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)
err == FT_Err_OkDescription
TRUEnever evaluated
FALSEnever evaluated
0
1011 useFreetypeRenderGlyph = true;
never executed: useFreetypeRenderGlyph = true;
0
1012 }
never executed: end of block
0
1013-
1014 if (useFreetypeRenderGlyph) {
useFreetypeRenderGlyphDescription
TRUEnever evaluated
FALSEevaluated 18420 times by 76 tests
Evaluated 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)
err != FT_Err_OkDescription
TRUEnever evaluated
FALSEnever 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;
hsubpixelDescription
TRUEnever evaluated
FALSEnever 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)
hsubpixelDescription
TRUEnever evaluated
FALSEnever 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)
vfactor != 1Description
TRUEnever evaluated
FALSEnever 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) {
transformDescription
TRUEevaluated 2498 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
FALSEevaluated 15922 times by 76 tests
Evaluated 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
  • ...
slot->format !..._FORMAT_BITMAPDescription
TRUEevaluated 2498 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
FALSEnever 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;
Executed by:
  • tst_QGraphicsView
l > vector.xDescription
TRUEevaluated 608 times by 1 test
Evaluated by:
  • tst_QGraphicsView
FALSEevaluated 1890 times by 7 tests
Evaluated 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
r < vector.xDescription
TRUEevaluated 1279 times by 5 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QPrinter
  • tst_QStaticText
FALSEevaluated 1219 times by 7 tests
Evaluated 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
t < vector.yDescription
TRUEevaluated 704 times by 3 tests
Evaluated by:
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QTabWidget
FALSEevaluated 1794 times by 7 tests
Evaluated 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
b > vector.yDescription
TRUEevaluated 688 times by 5 tests
Evaluated by:
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QStaticText
  • tst_QTabWidget
FALSEevaluated 1810 times by 7 tests
Evaluated 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
l > vector.xDescription
TRUEevaluated 590 times by 5 tests
Evaluated by:
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QStaticText
  • tst_QTabWidget
FALSEevaluated 1908 times by 7 tests
Evaluated 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
r < vector.xDescription
TRUEevaluated 620 times by 3 tests
Evaluated by:
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QTabWidget
FALSEevaluated 1878 times by 7 tests
Evaluated 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;
Executed by:
  • tst_QGraphicsView
t < vector.yDescription
TRUEevaluated 524 times by 1 test
Evaluated by:
  • tst_QGraphicsView
FALSEevaluated 1974 times by 7 tests
Evaluated 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
b > vector.yDescription
TRUEevaluated 1186 times by 5 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QPrinter
  • tst_QStaticText
FALSEevaluated 1312 times by 7 tests
Evaluated 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
l > vector.xDescription
TRUEevaluated 334 times by 3 tests
Evaluated by:
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QStaticText
FALSEevaluated 2164 times by 7 tests
Evaluated 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;
Executed by:
  • tst_QGraphicsView
r < vector.xDescription
TRUEevaluated 288 times by 1 test
Evaluated by:
  • tst_QGraphicsView
FALSEevaluated 2210 times by 7 tests
Evaluated 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;
Executed by:
  • tst_QGraphicsView
t < vector.yDescription
TRUEevaluated 256 times by 1 test
Evaluated by:
  • tst_QGraphicsView
FALSEevaluated 2242 times by 7 tests
Evaluated 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;
Executed by:
  • tst_QGraphicsView
b > vector.yDescription
TRUEevaluated 320 times by 1 test
Evaluated by:
  • tst_QGraphicsView
FALSEevaluated 2178 times by 7 tests
Evaluated 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 // subpixel position requires one more pixel-
1082 if (subPixelPosition > 0 && format != Format_Mono)
subPixelPosition > 0Description
TRUEevaluated 50 times by 1 test
Evaluated by:
  • tst_QPainter
FALSEevaluated 18370 times by 76 tests
Evaluated 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
  • ...
format != Format_MonoDescription
TRUEevaluated 50 times by 1 test
Evaluated by:
  • tst_QPainter
FALSEnever evaluated
0-18370
1083 hpixels++;
executed 50 times by 1 test: hpixels++;
Executed by:
  • tst_QPainter
50
1084-
1085 if (hsubpixel)
hsubpixelDescription
TRUEnever evaluated
FALSEevaluated 18420 times by 76 tests
Evaluated 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) {
hsubpixelDescription
TRUEnever evaluated
FALSEevaluated 18420 times by 76 tests
Evaluated 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 // If any of the metrics are too large to fit, don't cache them-
1097 if (areMetricsTooLarge(info))
areMetricsTooLarge(info)Description
TRUEnever evaluated
FALSEevaluated 18420 times by 76 tests
Evaluated 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 :
format == Format_MonoDescription
TRUEevaluated 66 times by 3 tests
Evaluated by:
  • tst_QPainter
  • tst_QStaticText
  • tst_QWizard
FALSEevaluated 18354 times by 76 tests
Evaluated 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));
format == Format_A8Description
TRUEevaluated 18354 times by 76 tests
Evaluated 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
  • ...
FALSEnever evaluated
0-18354
1102 if (glyph_buffer_size < pitch * info.height) {
glyph_buffer_s... * info.heightDescription
TRUEevaluated 4558 times by 76 tests
Evaluated 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
  • ...
FALSEevaluated 13862 times by 58 tests
Evaluated 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) {
slot->format =...FORMAT_OUTLINEDescription
TRUEevaluated 18420 times by 76 tests
Evaluated 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
  • ...
FALSEnever 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);
format == Format_MonoDescription
TRUEevaluated 66 times by 3 tests
Evaluated by:
  • tst_QPainter
  • tst_QStaticText
  • tst_QWizard
FALSEevaluated 18354 times by 76 tests
Evaluated 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) {
!hsubpixelDescription
TRUEevaluated 18420 times by 76 tests
Evaluated 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
  • ...
FALSEnever evaluated
vfactor == 1Description
TRUEevaluated 18420 times by 76 tests
Evaluated 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
  • ...
FALSEnever evaluated
format != Format_A32Description
TRUEevaluated 18420 times by 76 tests
Evaluated 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
  • ...
FALSEnever 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;
format == Format_MonoDescription
TRUEevaluated 66 times by 3 tests
Evaluated by:
  • tst_QPainter
  • tst_QStaticText
  • tst_QWizard
FALSEevaluated 18354 times by 76 tests
Evaluated 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;
hsubpixelDescription
TRUEnever evaluated
FALSEevaluated 18420 times by 76 tests
Evaluated 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) {
hsubpixelDescription
TRUEnever evaluated
FALSEevaluated 18420 times by 76 tests
Evaluated 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) {
!useLegacyLcdFilterDescription
TRUEnever evaluated
FALSEnever 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
vfactor != 1Description
TRUEnever evaluated
FALSEevaluated 18420 times by 76 tests
Evaluated 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
format == Format_A32Description
TRUEnever evaluated
FALSEevaluated 18420 times by 76 tests
Evaluated 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
  • ...
bitmap.pixel_m...IXEL_MODE_GRAYDescription
TRUEnever evaluated
FALSEnever 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())
bitmap.buffer ..._buffer.data()Description
TRUEnever evaluated
FALSEevaluated 18420 times by 76 tests
Evaluated 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
  • ...
slot->format =..._FORMAT_BITMAPDescription
TRUEnever evaluated
FALSEnever 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) {
format == Format_MonoDescription
TRUEnever evaluated
FALSEnever evaluated
0
1163 int bytes = ((info.width + 7) & ~7) >> 3;-
1164 while (h--) {
h--Description
TRUEnever evaluated
FALSEnever 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
slot->bitmap.p...IXEL_MODE_MONODescription
TRUEnever evaluated
FALSEnever evaluated
0
1170 if (hsubpixel) {
hsubpixelDescription
TRUEnever evaluated
FALSEnever evaluated
0
1171 while (h--) {
h--Description
TRUEnever evaluated
FALSEnever evaluated
0
1172 uint *dd = (uint *)dst;-
1173 *dd++ = 0;-
1174 for (int x = 0; x < static_cast<int>(slot->bitmap.width); x++) {
x < static_cas...>bitmap.width)Description
TRUEnever evaluated
FALSEnever evaluated
0
1175 uint a = ((src[x >> 3] & (0x80 >> (x & 7))) ? 0xffffff : 0x000000);
(src[x >> 3] &...0 >> (x & 7)))Description
TRUEnever evaluated
FALSEnever 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
vfactor != 1Description
TRUEnever evaluated
FALSEnever evaluated
0
1183 while (h--) {
h--Description
TRUEnever evaluated
FALSEnever evaluated
0
1184 uint *dd = (uint *)dst;-
1185 for (int x = 0; x < static_cast<int>(slot->bitmap.width); x++) {
x < static_cas...>bitmap.width)Description
TRUEnever evaluated
FALSEnever evaluated
0
1186 uint a = ((src[x >> 3] & (0x80 >> (x & 7))) ? 0xffffff : 0x000000);
(src[x >> 3] &...0 >> (x & 7)))Description
TRUEnever evaluated
FALSEnever 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--) {
h--Description
TRUEnever evaluated
FALSEnever evaluated
0
1194 for (int x = 0; x < static_cast<int>(slot->bitmap.width); x++) {
x < static_cas...>bitmap.width)Description
TRUEnever evaluated
FALSEnever evaluated
0
1195 unsigned char a = ((src[x >> 3] & (0x80 >> (x & 7))) ? 0xff : 0x00);
(src[x >> 3] &...0 >> (x & 7)))Description
TRUEnever evaluated
FALSEnever 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)
slot->bitmap.p...IXEL_MODE_BGRADescription
TRUEnever evaluated
FALSEnever evaluated
0
1205 {-
1206 while (h--) {
h--Description
TRUEnever evaluated
FALSEnever 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) {
!gDescription
TRUEevaluated 4755 times by 76 tests
Evaluated 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
  • ...
FALSEevaluated 13665 times by 57 tests
Evaluated 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)
setDescription
TRUEevaluated 18420 times by 76 tests
Evaluated 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
  • ...
FALSEnever 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-
1254QFontEngine::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-
1259QFontEngine::Properties QFontEngineFT::properties() const-
1260{-
1261 Properties p = freetype->properties();-
1262 if (p.postscriptName.isEmpty()) {
p.postscriptName.isEmpty()Description
TRUEnever evaluated
FALSEnever 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-
1269QFixed QFontEngineFT::emSquareSize() const-
1270{-
1271 if (FT_IS_SCALABLE(freetype->face))
( freetype->fa... ( 1L << 0 ) )Description
TRUEevaluated 2321 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEnever 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-
1277bool 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-
1282int QFontEngineFT::synthesized() const-
1283{-
1284 int s = 0;-
1285 if ((fontDef.style != QFont::StyleNormal) && !(freetype->face->style_flags & FT_STYLE_FLAG_ITALIC))
(fontDef.style...::StyleNormal)Description
TRUEnever evaluated
FALSEnever evaluated
!(freetype->fa... & ( 1 << 0 ))Description
TRUEnever evaluated
FALSEnever evaluated
0
1286 s = SynthesizedItalic;
never executed: s = SynthesizedItalic;
0
1287 if ((fontDef.weight >= QFont::Bold) && !(freetype->face->style_flags & FT_STYLE_FLAG_BOLD))
(fontDef.weigh...= QFont::Bold)Description
TRUEnever evaluated
FALSEnever evaluated
!(freetype->fa... & ( 1 << 1 ))Description
TRUEnever evaluated
FALSEnever evaluated
0
1288 s |= SynthesizedBold;
never executed: s |= SynthesizedBold;
0
1289 if (fontDef.stretch != 100 && FT_IS_SCALABLE(freetype->face))
fontDef.stretch != 100Description
TRUEnever evaluated
FALSEnever evaluated
( freetype->fa... ( 1L << 0 ) )Description
TRUEnever evaluated
FALSEnever evaluated
0
1290 s |= SynthesizedStretch;
never executed: s |= SynthesizedStretch;
0
1291 return s;
never executed: return s;
0
1292}-
1293-
1294QFixed QFontEngineFT::ascent() const-
1295{-
1296 QFixed v = QFixed::fromFixed(metrics.ascender);-
1297 if (scalableBitmapScaleFactor != 1)
scalableBitmapScaleFactor != 1Description
TRUEnever evaluated
FALSEevaluated 697846 times by 121 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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-
1302QFixed QFontEngineFT::descent() const-
1303{-
1304 QFixed v = QFixed::fromFixed(-metrics.descender);-
1305 if (scalableBitmapScaleFactor != 1)
scalableBitmapScaleFactor != 1Description
TRUEnever evaluated
FALSEevaluated 693872 times by 121 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
0-693872
1306 v *= scalableBitmapScaleFactor;
never executed: v *= scalableBitmapScaleFactor;
0
1307 return v;
executed 693872 times by 121 tests: return v;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
693872
1308}-
1309-
1310QFixed QFontEngineFT::leading() const-
1311{-
1312 QFixed v = QFixed::fromFixed(metrics.height - metrics.ascender + metrics.descender);-
1313 if (scalableBitmapScaleFactor != 1)
scalableBitmapScaleFactor != 1Description
TRUEnever evaluated
FALSEevaluated 630142 times by 117 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
0-630142
1314 v *= scalableBitmapScaleFactor;
never executed: v *= scalableBitmapScaleFactor;
0
1315 return v;
executed 630142 times by 117 tests: return v;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
630142
1316}-
1317-
1318QFixed QFontEngineFT::xHeight() const-
1319{-
1320 if (!isScalableBitmap()) {
!isScalableBitmap()Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QCssParser
FALSEnever evaluated
0-12
1321 TT_OS2 *os2 = (TT_OS2 *)FT_Get_Sfnt_Table(freetype->face, ft_sfnt_os2);-
1322 if (os2 && os2->sxHeight) {
os2Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QCssParser
FALSEnever evaluated
os2->sxHeightDescription
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QCssParser
0-12
1323 lockFace();-
1324 QFixed answer = QFixed(os2->sxHeight * freetype->face->size->metrics.y_ppem) / emSquareSize();-
1325 unlockFace();-
1326 return answer;
never executed: return answer;
0
1327 }-
1328 } else {
executed 12 times by 1 test: end of block
Executed by:
  • tst_QCssParser
12
1329 return QFixed(freetype->face->size->metrics.y_ppem) * scalableBitmapScaleFactor;
never executed: return QFixed(freetype->face->size->metrics.y_ppem) * scalableBitmapScaleFactor;
0
1330 }-
1331 return QFontEngine::xHeight();
executed 12 times by 1 test: return QFontEngine::xHeight();
Executed by:
  • tst_QCssParser
12
1332}-
1333-
1334QFixed QFontEngineFT::averageCharWidth() const-
1335{-
1336 if (!isScalableBitmap()) {
!isScalableBitmap()Description
TRUEevaluated 217 times by 22 tests
Evaluated by:
  • tst_QApplication
  • tst_QDataWidgetMapper
  • tst_QFontMetrics
  • tst_QGraphicsItem
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QMovie
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QProgressDialog
  • tst_QSplitter
  • tst_QStackedLayout
  • tst_QTabWidget
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextFormat
  • tst_QTextLayout
  • tst_QWidget
  • tst_QWizard
FALSEnever evaluated
0-217
1337 TT_OS2 *os2 = (TT_OS2 *)FT_Get_Sfnt_Table(freetype->face, ft_sfnt_os2);-
1338 if (os2 && os2->xAvgCharWidth) {
os2Description
TRUEevaluated 217 times by 22 tests
Evaluated by:
  • tst_QApplication
  • tst_QDataWidgetMapper
  • tst_QFontMetrics
  • tst_QGraphicsItem
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QMovie
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QProgressDialog
  • tst_QSplitter
  • tst_QStackedLayout
  • tst_QTabWidget
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextFormat
  • tst_QTextLayout
  • tst_QWidget
  • tst_QWizard
FALSEnever evaluated
os2->xAvgCharWidthDescription
TRUEevaluated 217 times by 22 tests
Evaluated by:
  • tst_QApplication
  • tst_QDataWidgetMapper
  • tst_QFontMetrics
  • tst_QGraphicsItem
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QMovie
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QProgressDialog
  • tst_QSplitter
  • tst_QStackedLayout
  • tst_QTabWidget
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextFormat
  • tst_QTextLayout
  • tst_QWidget
  • tst_QWizard
FALSEnever evaluated
0-217
1339 lockFace();-
1340 QFixed answer = QFixed(os2->xAvgCharWidth * freetype->face->size->metrics.x_ppem) / emSquareSize();-
1341 unlockFace();-
1342 return answer;
executed 217 times by 22 tests: return answer;
Executed by:
  • tst_QApplication
  • tst_QDataWidgetMapper
  • tst_QFontMetrics
  • tst_QGraphicsItem
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QMovie
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QProgressDialog
  • tst_QSplitter
  • tst_QStackedLayout
  • tst_QTabWidget
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextFormat
  • tst_QTextLayout
  • tst_QWidget
  • tst_QWizard
217
1343 }-
1344 } else {
never executed: end of block
0
1345 const qreal aspectRatio = (qreal)xsize / ysize;-
1346 return QFixed::fromReal(fontDef.pixelSize * aspectRatio);
never executed: return QFixed::fromReal(fontDef.pixelSize * aspectRatio);
0
1347 }-
1348-
1349 return QFontEngine::averageCharWidth();
never executed: return QFontEngine::averageCharWidth();
0
1350}-
1351-
1352qreal QFontEngineFT::maxCharWidth() const-
1353{-
1354 QFixed max_advance = QFixed::fromFixed(metrics.max_advance);-
1355 if (scalableBitmapScaleFactor != 1)
scalableBitmapScaleFactor != 1Description
TRUEnever evaluated
FALSEevaluated 3072 times by 49 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QHeaderView
  • ...
0-3072
1356 max_advance *= scalableBitmapScaleFactor;
never executed: max_advance *= scalableBitmapScaleFactor;
0
1357 return max_advance.toReal();
executed 3072 times by 49 tests: return max_advance.toReal();
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QHeaderView
  • ...
3072
1358}-
1359-
1360QFixed QFontEngineFT::lineThickness() const-
1361{-
1362 return line_thickness;
executed 499 times by 24 tests: return line_thickness;
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QPrinter
  • tst_QPushButton
  • tst_QStaticText
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolBar
  • tst_QWizard
  • tst_languageChange
499
1363}-
1364-
1365QFixed QFontEngineFT::underlinePosition() const-
1366{-
1367 return underline_position;
executed 496 times by 23 tests: return underline_position;
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QPrinter
  • tst_QPushButton
  • tst_QStaticText
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolBar
  • tst_QWizard
  • tst_languageChange
496
1368}-
1369-
1370void QFontEngineFT::doKerning(QGlyphLayout *g, QFontEngine::ShaperFlags flags) const-
1371{-
1372 if (!kerning_pairs_loaded) {
!kerning_pairs_loadedDescription
TRUEevaluated 24 times by 6 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_QTextLayout
FALSEevaluated 570 times by 6 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_QTextLayout
24-570
1373 kerning_pairs_loaded = true;-
1374 lockFace();-
1375 if (freetype->face->size->metrics.x_ppem != 0) {
freetype->face...cs.x_ppem != 0Description
TRUEevaluated 24 times by 6 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_QTextLayout
FALSEnever evaluated
0-24
1376 QFixed scalingFactor = emSquareSize() / QFixed(freetype->face->size->metrics.x_ppem);-
1377 unlockFace();-
1378 const_cast<QFontEngineFT *>(this)->loadKerningPairs(scalingFactor);-
1379 } else {
executed 24 times by 6 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_QTextLayout
24
1380 unlockFace();-
1381 }
never executed: end of block
0
1382 }-
1383-
1384 if (shouldUseDesignMetrics(flags) && !(fontDef.styleStrategy & QFont::ForceIntegerMetrics))
shouldUseDesignMetrics(flags)Description
TRUEnever evaluated
FALSEevaluated 594 times by 6 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_QTextLayout
!(fontDef.styl...ntegerMetrics)Description
TRUEnever evaluated
FALSEnever evaluated
0-594
1385 flags |= DesignMetrics;
never executed: flags |= DesignMetrics;
0
1386 else-
1387 flags &= ~DesignMetrics;
executed 594 times by 6 tests: flags &= ~DesignMetrics;
Executed by:
  • tst_QAccessibility
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_QTextLayout
594
1388-
1389 QFontEngine::doKerning(g, flags);-
1390}
executed 594 times by 6 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_QTextLayout
594
1391-
1392static inline FT_Matrix QTransformToFTMatrix(const QTransform &matrix)-
1393{-
1394 FT_Matrix m;-
1395-
1396 m.xx = FT_Fixed(matrix.m11() * 65536);-
1397 m.xy = FT_Fixed(-matrix.m21() * 65536);-
1398 m.yx = FT_Fixed(-matrix.m12() * 65536);-
1399 m.yy = FT_Fixed(matrix.m22() * 65536);-
1400-
1401 return m;
executed 311703 times by 76 tests: return m;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
311703
1402}-
1403-
1404QFontEngineFT::QGlyphSet *QFontEngineFT::loadGlyphSet(const QTransform &matrix)-
1405{-
1406 if (matrix.type() > QTransform::TxShear || !cacheEnabled)
matrix.type() ...sform::TxShearDescription
TRUEnever evaluated
FALSEevaluated 311703 times by 76 tests
Evaluated 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
  • ...
!cacheEnabledDescription
TRUEnever evaluated
FALSEevaluated 311703 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
0-311703
1407 return 0;
never executed: return 0;
0
1408-
1409 // FT_Set_Transform only supports scalable fonts-
1410 if (!FT_IS_SCALABLE(freetype->face))
!( freetype->f... ( 1L << 0 ) )Description
TRUEnever evaluated
FALSEevaluated 311703 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
0-311703
1411 return matrix.type() <= QTransform::TxTranslate ? &defaultGlyphSet : Q_NULLPTR;
never executed: return matrix.type() <= QTransform::TxTranslate ? &defaultGlyphSet : nullptr;
0
1412-
1413 FT_Matrix m = QTransformToFTMatrix(matrix);-
1414-
1415 QGlyphSet *gs = 0;-
1416-
1417 for (int i = 0; i < transformedGlyphSets.count(); ++i) {
i < transforme...phSets.count()Description
TRUEevaluated 312787 times by 76 tests
Evaluated 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
  • ...
FALSEevaluated 262 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
262-312787
1418 const QGlyphSet &g = transformedGlyphSets.at(i);-
1419 if (g.transformationMatrix.xx == m.xx
g.transformati...rix.xx == m.xxDescription
TRUEevaluated 311483 times by 76 tests
Evaluated 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
  • ...
FALSEevaluated 1304 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
1304-311483
1420 && g.transformationMatrix.xy == m.xy
g.transformati...rix.xy == m.xyDescription
TRUEevaluated 311441 times by 76 tests
Evaluated 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
  • ...
FALSEevaluated 42 times by 3 tests
Evaluated by:
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QTabWidget
42-311441
1421 && g.transformationMatrix.yx == m.yx
g.transformati...rix.yx == m.yxDescription
TRUEevaluated 311441 times by 76 tests
Evaluated 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
  • ...
FALSEnever evaluated
0-311441
1422 && g.transformationMatrix.yy == m.yy) {
g.transformati...rix.yy == m.yyDescription
TRUEevaluated 311441 times by 76 tests
Evaluated 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
  • ...
FALSEnever evaluated
0-311441
1423-
1424 // found a match, move it to the front-
1425 transformedGlyphSets.move(i, 0);-
1426 gs = &transformedGlyphSets[0];-
1427 break;
executed 311441 times by 76 tests: break;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
311441
1428 }-
1429 }
executed 1346 times by 7 tests: end of block
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
1346
1430-
1431 if (!gs) {
!gsDescription
TRUEevaluated 262 times by 76 tests
Evaluated 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
  • ...
FALSEevaluated 311441 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
262-311441
1432 // don't cache more than 10 transformations-
1433 if (transformedGlyphSets.count() >= 10) {
transformedGly....count() >= 10Description
TRUEevaluated 121 times by 2 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsView
FALSEevaluated 141 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
121-141
1434 transformedGlyphSets.move(transformedGlyphSets.size() - 1, 0);-
1435 } else {
executed 121 times by 2 tests: end of block
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsView
121
1436 transformedGlyphSets.prepend(QGlyphSet());-
1437 }
executed 141 times by 76 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
141
1438 gs = &transformedGlyphSets[0];-
1439 gs->clear();-
1440 gs->transformationMatrix = m;-
1441 gs->outline_drawing = fontDef.pixelSize * fontDef.pixelSize * qAbs(matrix.det()) >= QT_MAX_CACHED_GLYPH_SIZE * QT_MAX_CACHED_GLYPH_SIZE;-
1442 }
executed 262 times by 76 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
262
1443 Q_ASSERT(gs != 0);-
1444-
1445 return gs;
executed 311703 times by 76 tests: return gs;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
311703
1446}-
1447-
1448void QFontEngineFT::getUnscaledGlyph(glyph_t glyph, QPainterPath *path, glyph_metrics_t *metrics)-
1449{-
1450 FT_Face face = lockFace(Unscaled);-
1451 FT_Set_Transform(face, 0, 0);-
1452 FT_Load_Glyph(face, glyph, FT_LOAD_NO_BITMAP);-
1453-
1454 int left = face->glyph->metrics.horiBearingX;-
1455 int right = face->glyph->metrics.horiBearingX + face->glyph->metrics.width;-
1456 int top = face->glyph->metrics.horiBearingY;-
1457 int bottom = face->glyph->metrics.horiBearingY - face->glyph->metrics.height;-
1458-
1459 QFixedPoint p;-
1460 p.x = 0;-
1461 p.y = 0;-
1462-
1463 metrics->width = QFixed::fromFixed(right-left);-
1464 metrics->height = QFixed::fromFixed(top-bottom);-
1465 metrics->x = QFixed::fromFixed(left);-
1466 metrics->y = QFixed::fromFixed(-top);-
1467 metrics->xoff = QFixed::fromFixed(face->glyph->advance.x);-
1468-
1469 if (!FT_IS_SCALABLE(freetype->face))
!( freetype->f... ( 1L << 0 ) )Description
TRUEnever evaluated
FALSEnever evaluated
0
1470 QFreetypeFace::addBitmapToPath(face->glyph, p, path);
never executed: QFreetypeFace::addBitmapToPath(face->glyph, p, path);
0
1471 else-
1472 QFreetypeFace::addGlyphToPath(face, face->glyph, p, path, face->units_per_EM << 6, face->units_per_EM << 6);
never executed: QFreetypeFace::addGlyphToPath(face, face->glyph, p, path, face->units_per_EM << 6, face->units_per_EM << 6);
0
1473-
1474 FT_Set_Transform(face, &freetype->matrix, 0);-
1475 unlockFace();-
1476}
never executed: end of block
0
1477-
1478bool QFontEngineFT::supportsTransformation(const QTransform &transform) const-
1479{-
1480 return transform.type() <= QTransform::TxRotate;
executed 43 times by 4 tests: return transform.type() <= QTransform::TxRotate;
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QStaticText
43
1481}-
1482-
1483void QFontEngineFT::addOutlineToPath(qreal x, qreal y, const QGlyphLayout &glyphs, QPainterPath *path, QTextItem::RenderFlags flags)-
1484{-
1485 if (!glyphs.numGlyphs)
!glyphs.numGlyphsDescription
TRUEnever evaluated
FALSEevaluated 5 times by 3 tests
Evaluated by:
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
0-5
1486 return;
never executed: return;
0
1487-
1488 if (FT_IS_SCALABLE(freetype->face)) {
( freetype->fa... ( 1L << 0 ) )Description
TRUEevaluated 5 times by 3 tests
Evaluated by:
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
FALSEnever evaluated
0-5
1489 QFontEngine::addOutlineToPath(x, y, glyphs, path, flags);-
1490 } else {
executed 5 times by 3 tests: end of block
Executed by:
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
5
1491 QVarLengthArray<QFixedPoint> positions;-
1492 QVarLengthArray<glyph_t> positioned_glyphs;-
1493 QTransform matrix;-
1494 matrix.translate(x, y);-
1495 getGlyphPositions(glyphs, matrix, flags, positioned_glyphs, positions);-
1496-
1497 FT_Face face = lockFace(Unscaled);-
1498 for (int gl = 0; gl < glyphs.numGlyphs; gl++) {
gl < glyphs.numGlyphsDescription
TRUEnever evaluated
FALSEnever evaluated
0
1499 FT_UInt glyph = positioned_glyphs[gl];-
1500 FT_Load_Glyph(face, glyph, FT_LOAD_TARGET_MONO);-
1501 QFreetypeFace::addBitmapToPath(face->glyph, positions[gl], path);-
1502 }
never executed: end of block
0
1503 unlockFace();-
1504 }
never executed: end of block
0
1505}-
1506-
1507void QFontEngineFT::addGlyphsToPath(glyph_t *glyphs, QFixedPoint *positions, int numGlyphs,-
1508 QPainterPath *path, QTextItem::RenderFlags)-
1509{-
1510 FT_Face face = lockFace(Unscaled);-
1511-
1512 for (int gl = 0; gl < numGlyphs; gl++) {
gl < numGlyphsDescription
TRUEevaluated 163 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
FALSEevaluated 21 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
21-163
1513 FT_UInt glyph = glyphs[gl];-
1514-
1515 FT_Load_Glyph(face, glyph, FT_LOAD_NO_BITMAP);-
1516-
1517 FT_GlyphSlot g = face->glyph;-
1518 if (g->format != FT_GLYPH_FORMAT_OUTLINE)
g->format != F...FORMAT_OUTLINEDescription
TRUEnever evaluated
FALSEevaluated 163 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
0-163
1519 continue;
never executed: continue;
0
1520 if (embolden)
emboldenDescription
TRUEnever evaluated
FALSEevaluated 163 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
0-163
1521 FT_GlyphSlot_Embolden(g);
never executed: FT_GlyphSlot_Embolden(g);
0
1522 if (obliquen)
obliquenDescription
TRUEnever evaluated
FALSEevaluated 163 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
0-163
1523 FT_GlyphSlot_Oblique(g);
never executed: FT_GlyphSlot_Oblique(g);
0
1524 QFreetypeFace::addGlyphToPath(face, g, positions[gl], path, xsize, ysize);-
1525 }
executed 163 times by 6 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
163
1526 unlockFace();-
1527}
executed 21 times by 6 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
21
1528-
1529glyph_t QFontEngineFT::glyphIndex(uint ucs4) const-
1530{-
1531 glyph_t glyph = ucs4 < QFreetypeFace::cmapCacheSize ? freetype->cmapCache[ucs4] : 0;
ucs4 < QFreety...:cmapCacheSizeDescription
TRUEevaluated 5293595 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEevaluated 223310 times by 33 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QComplexText
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QPlainTextEdit
  • tst_QRawFont
  • tst_QStackedLayout
  • tst_QStaticText
  • tst_QTableView
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentLayout
  • ...
223310-5293595
1532 if (glyph == 0) {
glyph == 0Description
TRUEevaluated 224382 times by 69 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • ...
FALSEevaluated 5292523 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
224382-5292523
1533 FT_Face face = freetype->face;-
1534 glyph = FT_Get_Char_Index(face, ucs4);-
1535 if (glyph == 0) {
glyph == 0Description
TRUEevaluated 207355 times by 8 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QTextLayout
  • tst_QTextScriptEngine
FALSEevaluated 17027 times by 69 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • ...
17027-207355
1536 // Certain fonts don't have no-break space and tab,-
1537 // while we usually want to render them as space-
1538 if (ucs4 == QChar::Nbsp || ucs4 == QChar::Tabulation) {
ucs4 == QChar::NbspDescription
TRUEnever evaluated
FALSEevaluated 207355 times by 8 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QTextLayout
  • tst_QTextScriptEngine
ucs4 == QChar::TabulationDescription
TRUEnever evaluated
FALSEevaluated 207355 times by 8 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QTextLayout
  • tst_QTextScriptEngine
0-207355
1539 glyph = FT_Get_Char_Index(face, QChar::Space);-
1540 } else if (freetype->symbol_map) {
never executed: end of block
freetype->symbol_mapDescription
TRUEevaluated 39 times by 1 test
Evaluated by:
  • tst_QFontDialog
FALSEevaluated 207316 times by 8 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QTextLayout
  • tst_QTextScriptEngine
0-207316
1541 // Symbol fonts can have more than one CMAPs, FreeType should take the-
1542 // correct one for us by default, so we always try FT_Get_Char_Index-
1543 // first. If it didn't work (returns 0), we will explicitly set the-
1544 // CMAP to symbol font one and try again. symbol_map is not always the-
1545 // correct one because in certain fonts like Wingdings symbol_map only-
1546 // contains PUA codepoints instead of the common ones.-
1547 FT_Set_Charmap(face, freetype->symbol_map);-
1548 glyph = FT_Get_Char_Index(face, ucs4);-
1549 FT_Set_Charmap(face, freetype->unicode_map);-
1550 }
executed 39 times by 1 test: end of block
Executed by:
  • tst_QFontDialog
39
1551 }
executed 207355 times by 8 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QTextLayout
  • tst_QTextScriptEngine
207355
1552 if (ucs4 < QFreetypeFace::cmapCacheSize)
ucs4 < QFreety...:cmapCacheSizeDescription
TRUEevaluated 1072 times by 56 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 223310 times by 33 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QComplexText
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QPlainTextEdit
  • tst_QRawFont
  • tst_QStackedLayout
  • tst_QStaticText
  • tst_QTableView
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentLayout
  • ...
1072-223310
1553 freetype->cmapCache[ucs4] = glyph;
executed 1072 times by 56 tests: freetype->cmapCache[ucs4] = glyph;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
1072
1554 }
executed 224382 times by 69 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • ...
224382
1555-
1556 return glyph;
executed 5516905 times by 114 tests: return glyph;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
5516905
1557}-
1558-
1559bool QFontEngineFT::stringToCMap(const QChar *str, int len, QGlyphLayout *glyphs, int *nglyphs,-
1560 QFontEngine::ShaperFlags flags) const-
1561{-
1562 Q_ASSERT(glyphs->numGlyphs >= *nglyphs);-
1563 if (*nglyphs < len) {
*nglyphs < lenDescription
TRUEnever evaluated
FALSEevaluated 566630 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
0-566630
1564 *nglyphs = len;-
1565 return false;
never executed: return false;
0
1566 }-
1567-
1568 int glyph_pos = 0;-
1569 if (freetype->symbol_map) {
freetype->symbol_mapDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFontDialog
FALSEevaluated 566629 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
1-566629
1570 FT_Face face = freetype->face;-
1571 QStringIterator it(str, str + len);-
1572 while (it.hasNext()) {
it.hasNext()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QFontDialog
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFontDialog
1-8
1573 uint uc = it.next();-
1574 glyphs->glyphs[glyph_pos] = uc < QFreetypeFace::cmapCacheSize ? freetype->cmapCache[uc] : 0;
uc < QFreetype...:cmapCacheSizeDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QFontDialog
FALSEnever evaluated
0-8
1575 if ( !glyphs->glyphs[glyph_pos] ) {
!glyphs->glyphs[glyph_pos]Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QFontDialog
FALSEnever evaluated
0-8
1576 // Symbol fonts can have more than one CMAPs, FreeType should take the-
1577 // correct one for us by default, so we always try FT_Get_Char_Index-
1578 // first. If it didn't work (returns 0), we will explicitly set the-
1579 // CMAP to symbol font one and try again. symbol_map is not always the-
1580 // correct one because in certain fonts like Wingdings symbol_map only-
1581 // contains PUA codepoints instead of the common ones.-
1582 glyph_t glyph = FT_Get_Char_Index(face, uc);-
1583 // Certain symbol fonts don't have no-break space (0xa0) and tab (0x9),-
1584 // while we usually want to render them as space-
1585 if (!glyph && (uc == 0xa0 || uc == 0x9)) {
!glyphDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QFontDialog
FALSEnever evaluated
uc == 0xa0Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QFontDialog
uc == 0x9Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QFontDialog
0-8
1586 uc = 0x20;-
1587 glyph = FT_Get_Char_Index(face, uc);-
1588 }
never executed: end of block
0
1589 if (!glyph) {
!glyphDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QFontDialog
FALSEnever evaluated
0-8
1590 FT_Set_Charmap(face, freetype->symbol_map);-
1591 glyph = FT_Get_Char_Index(face, uc);-
1592 FT_Set_Charmap(face, freetype->unicode_map);-
1593 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_QFontDialog
8
1594 glyphs->glyphs[glyph_pos] = glyph;-
1595 if (uc < QFreetypeFace::cmapCacheSize)
uc < QFreetype...:cmapCacheSizeDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QFontDialog
FALSEnever evaluated
0-8
1596 freetype->cmapCache[uc] = glyph;
executed 8 times by 1 test: freetype->cmapCache[uc] = glyph;
Executed by:
  • tst_QFontDialog
8
1597 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_QFontDialog
8
1598 ++glyph_pos;-
1599 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_QFontDialog
8
1600 } else {
executed 1 time by 1 test: end of block
Executed by:
  • tst_QFontDialog
1
1601 FT_Face face = freetype->face;-
1602 QStringIterator it(str, str + len);-
1603 while (it.hasNext()) {
it.hasNext()Description
TRUEevaluated 5510738 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEevaluated 566629 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
566629-5510738
1604 uint uc = it.next();-
1605 glyphs->glyphs[glyph_pos] = uc < QFreetypeFace::cmapCacheSize ? freetype->cmapCache[uc] : 0;
uc < QFreetype...:cmapCacheSizeDescription
TRUEevaluated 5289887 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEevaluated 220851 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QComplexText
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QMdiArea
  • tst_QPlainTextEdit
  • tst_QRawFont
  • tst_QStackedLayout
  • tst_QStaticText
  • tst_QTableView
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextLayout
  • ...
220851-5289887
1606 if (!glyphs->glyphs[glyph_pos]) {
!glyphs->glyphs[glyph_pos]Description
TRUEevaluated 225430 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEevaluated 5285308 times by 109 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
225430-5285308
1607 {-
1608 redo:-
1609 glyph_t glyph = FT_Get_Char_Index(face, uc);-
1610 if (!glyph && (uc == 0xa0 || uc == 0x9)) {
!glyphDescription
TRUEevaluated 207352 times by 9 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QTextLayout
  • tst_QTextScriptEngine
FALSEevaluated 18078 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
uc == 0xa0Description
TRUEnever evaluated
FALSEevaluated 207352 times by 9 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QTextLayout
  • tst_QTextScriptEngine
uc == 0x9Description
TRUEnever evaluated
FALSEevaluated 207352 times by 9 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QTextLayout
  • tst_QTextScriptEngine
0-207352
1611 uc = 0x20;-
1612 goto redo;
never executed: goto redo;
0
1613 }-
1614 glyphs->glyphs[glyph_pos] = glyph;-
1615 if (uc < QFreetypeFace::cmapCacheSize)
uc < QFreetype...:cmapCacheSizeDescription
TRUEevaluated 4579 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEevaluated 220851 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QComplexText
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QMdiArea
  • tst_QPlainTextEdit
  • tst_QRawFont
  • tst_QStackedLayout
  • tst_QStaticText
  • tst_QTableView
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextLayout
  • ...
4579-220851
1616 freetype->cmapCache[uc] = glyph;
executed 4579 times by 111 tests: freetype->cmapCache[uc] = glyph;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
4579
1617 }-
1618 }
executed 225430 times by 111 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
225430
1619 ++glyph_pos;-
1620 }
executed 5510738 times by 111 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
5510738
1621 }
executed 566629 times by 111 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
566629
1622-
1623 *nglyphs = glyph_pos;-
1624 glyphs->numGlyphs = glyph_pos;-
1625-
1626 if (!(flags & GlyphIndicesOnly))
!(flags & GlyphIndicesOnly)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFontMetrics
FALSEevaluated 566629 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
1-566629
1627 recalcAdvances(glyphs, flags);
executed 1 time by 1 test: recalcAdvances(glyphs, flags);
Executed by:
  • tst_QFontMetrics
1
1628-
1629 return true;
executed 566630 times by 111 tests: return true;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
566630
1630}-
1631-
1632bool QFontEngineFT::shouldUseDesignMetrics(QFontEngine::ShaperFlags flags) const-
1633{-
1634 if (!FT_IS_SCALABLE(freetype->face))
!( freetype->f... ( 1L << 0 ) )Description
TRUEnever evaluated
FALSEevaluated 5515398 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
0-5515398
1635 return false;
never executed: return false;
0
1636-
1637 return default_hint_style == HintNone || default_hint_style == HintLight || (flags & DesignMetrics);
executed 5515398 times by 113 tests: return default_hint_style == HintNone || default_hint_style == HintLight || (flags & DesignMetrics);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
5515398
1638}-
1639-
1640QFixed QFontEngineFT::scaledBitmapMetrics(QFixed m) const-
1641{-
1642 return m * scalableBitmapScaleFactor;
never executed: return m * scalableBitmapScaleFactor;
0
1643}-
1644-
1645glyph_metrics_t QFontEngineFT::scaledBitmapMetrics(const glyph_metrics_t &m) const-
1646{-
1647 glyph_metrics_t metrics;-
1648 metrics.x = scaledBitmapMetrics(m.x);-
1649 metrics.y = scaledBitmapMetrics(m.y);-
1650 metrics.width = scaledBitmapMetrics(m.width);-
1651 metrics.height = scaledBitmapMetrics(m.height);-
1652 metrics.xoff = scaledBitmapMetrics(m.xoff);-
1653 metrics.yoff = scaledBitmapMetrics(m.yoff);-
1654 return metrics;
never executed: return metrics;
0
1655}-
1656-
1657void QFontEngineFT::recalcAdvances(QGlyphLayout *glyphs, QFontEngine::ShaperFlags flags) const-
1658{-
1659 FT_Face face = 0;-
1660 bool design = shouldUseDesignMetrics(flags);-
1661 for (int i = 0; i < glyphs->numGlyphs; i++) {
i < glyphs->numGlyphsDescription
TRUEevaluated 5515004 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEevaluated 5514804 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
5514804-5515004
1662 Glyph *g = cacheEnabled ? defaultGlyphSet.getGlyph(glyphs->glyphs[i]) : 0;
cacheEnabledDescription
TRUEevaluated 5515004 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEnever evaluated
0-5515004
1663 // Since we are passing Format_None to loadGlyph, use same default format logic as loadGlyph-
1664 GlyphFormat acceptableFormat = (defaultFormat != Format_None) ? defaultFormat : Format_Mono;
(defaultFormat != Format_None)Description
TRUEevaluated 5515004 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEnever evaluated
0-5515004
1665 if (g && g->format == acceptableFormat) {
gDescription
TRUEevaluated 5507743 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEevaluated 7261 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
g->format == acceptableFormatDescription
TRUEevaluated 5507743 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEnever evaluated
0-5507743
1666 glyphs->advances[i] = design ? QFixed::fromFixed(g->linearAdvance) : QFixed(g->advance);
designDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_QRawFont
FALSEevaluated 5507727 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
16-5507727
1667 } else {
executed 5507743 times by 111 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
5507743
1668 if (!face)
!faceDescription
TRUEevaluated 7189 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEevaluated 72 times by 3 tests
Evaluated by:
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
72-7189
1669 face = lockFace();
executed 7189 times by 113 tests: face = lockFace();
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
7189
1670 g = loadGlyph(cacheEnabled ? &defaultGlyphSet : 0, glyphs->glyphs[i], 0, Format_None, true);-
1671 if (g)
gDescription
TRUEevaluated 7247 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QFontDatabase
14-7247
1672 glyphs->advances[i] = design ? QFixed::fromFixed(g->linearAdvance) : QFixed(g->advance);
executed 7247 times by 113 tests: glyphs->advances[i] = design ? QFixed::fromFixed(g->linearAdvance) : QFixed(g->advance);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
designDescription
TRUEevaluated 81 times by 2 tests
Evaluated by:
  • tst_QPainter
  • tst_QRawFont
FALSEevaluated 7166 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
81-7247
1673 else-
1674 glyphs->advances[i] = design ? QFixed::fromFixed(face->glyph->linearHoriAdvance >> 10)
executed 14 times by 1 test: glyphs->advances[i] = design ? QFixed::fromFixed(face->glyph->linearHoriAdvance >> 10) : QFixed::fromFixed(face->glyph->metrics.horiAdvance).round();
Executed by:
  • tst_QFontDatabase
designDescription
TRUEnever evaluated
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QFontDatabase
0-14
1675 : QFixed::fromFixed(face->glyph->metrics.horiAdvance).round();
executed 14 times by 1 test: glyphs->advances[i] = design ? QFixed::fromFixed(face->glyph->linearHoriAdvance >> 10) : QFixed::fromFixed(face->glyph->metrics.horiAdvance).round();
Executed by:
  • tst_QFontDatabase
14
1676 if (!cacheEnabled && g != &emptyGlyph)
!cacheEnabledDescription
TRUEnever evaluated
FALSEevaluated 7261 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
g != &emptyGlyphDescription
TRUEnever evaluated
FALSEnever evaluated
0-7261
1677 delete g;
never executed: delete g;
0
1678 }
executed 7261 times by 113 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
7261
1679-
1680 if (scalableBitmapScaleFactor != 1)
scalableBitmapScaleFactor != 1Description
TRUEnever evaluated
FALSEevaluated 5515004 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
0-5515004
1681 glyphs->advances[i] *= scalableBitmapScaleFactor;
never executed: glyphs->advances[i] *= scalableBitmapScaleFactor;
0
1682 }
executed 5515004 times by 113 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
5515004
1683 if (face)
faceDescription
TRUEevaluated 7189 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEevaluated 5507615 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
7189-5507615
1684 unlockFace();
executed 7189 times by 113 tests: unlockFace();
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
7189
1685-
1686 if (fontDef.styleStrategy & QFont::ForceIntegerMetrics) {
fontDef.styleS...IntegerMetricsDescription
TRUEevaluated 156 times by 1 test
Evaluated by:
  • tst_QFontMetrics
FALSEevaluated 5514648 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
156-5514648
1687 for (int i = 0; i < glyphs->numGlyphs; ++i)
i < glyphs->numGlyphsDescription
TRUEevaluated 310 times by 1 test
Evaluated by:
  • tst_QFontMetrics
FALSEevaluated 156 times by 1 test
Evaluated by:
  • tst_QFontMetrics
156-310
1688 glyphs->advances[i] = glyphs->advances[i].round();
executed 310 times by 1 test: glyphs->advances[i] = glyphs->advances[i].round();
Executed by:
  • tst_QFontMetrics
310
1689 }
executed 156 times by 1 test: end of block
Executed by:
  • tst_QFontMetrics
156
1690}
executed 5514804 times by 113 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
5514804
1691-
1692glyph_metrics_t QFontEngineFT::boundingBox(const QGlyphLayout &glyphs)-
1693{-
1694 FT_Face face = 0;-
1695-
1696 glyph_metrics_t overall;-
1697 // initialize with line height, we get the same behaviour on all platforms-
1698 if (!isScalableBitmap()) {
!isScalableBitmap()Description
TRUEevaluated 3606 times by 21 tests
Evaluated by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTextLayout
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
FALSEnever evaluated
0-3606
1699 overall.y = -ascent();-
1700 overall.height = ascent() + descent();-
1701 } else {
executed 3606 times by 21 tests: end of block
Executed by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTextLayout
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
3606
1702 overall.y = QFixed::fromFixed(-metrics.ascender);-
1703 overall.height = QFixed::fromFixed(metrics.ascender - metrics.descender);-
1704 }
never executed: end of block
0
1705-
1706 QFixed ymax = 0;-
1707 QFixed xmax = 0;-
1708 for (int i = 0; i < glyphs.numGlyphs; i++) {
i < glyphs.numGlyphsDescription
TRUEevaluated 56297 times by 21 tests
Evaluated by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTextLayout
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
FALSEevaluated 3606 times by 21 tests
Evaluated by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTextLayout
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
3606-56297
1709 Glyph *g = cacheEnabled ? defaultGlyphSet.getGlyph(glyphs.glyphs[i]) : 0;
cacheEnabledDescription
TRUEevaluated 56297 times by 21 tests
Evaluated by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTextLayout
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
FALSEnever evaluated
0-56297
1710 if (!g) {
!gDescription
TRUEnever evaluated
FALSEevaluated 56297 times by 21 tests
Evaluated by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTextLayout
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
0-56297
1711 if (!face)
!faceDescription
TRUEnever evaluated
FALSEnever evaluated
0
1712 face = lockFace();
never executed: face = lockFace();
0
1713 g = loadGlyph(cacheEnabled ? &defaultGlyphSet : 0, glyphs.glyphs[i], 0, Format_None, true);-
1714 }
never executed: end of block
0
1715 if (g) {
gDescription
TRUEevaluated 56297 times by 21 tests
Evaluated by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTextLayout
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
FALSEnever evaluated
0-56297
1716 QFixed x = overall.xoff + glyphs.offsets[i].x + g->x;-
1717 QFixed y = overall.yoff + glyphs.offsets[i].y - g->y;-
1718 overall.x = qMin(overall.x, x);-
1719 overall.y = qMin(overall.y, y);-
1720 xmax = qMax(xmax, x + g->width);-
1721 ymax = qMax(ymax, y + g->height);-
1722 overall.xoff += g->advance;-
1723 if (!cacheEnabled && g != &emptyGlyph)
!cacheEnabledDescription
TRUEnever evaluated
FALSEevaluated 56297 times by 21 tests
Evaluated by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTextLayout
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
g != &emptyGlyphDescription
TRUEnever evaluated
FALSEnever evaluated
0-56297
1724 delete g;
never executed: delete g;
0
1725 } else {
executed 56297 times by 21 tests: end of block
Executed by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTextLayout
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
56297
1726 int left = FLOOR(face->glyph->metrics.horiBearingX);-
1727 int right = CEIL(face->glyph->metrics.horiBearingX + face->glyph->metrics.width);-
1728 int top = CEIL(face->glyph->metrics.horiBearingY);-
1729 int bottom = FLOOR(face->glyph->metrics.horiBearingY - face->glyph->metrics.height);-
1730-
1731 QFixed x = overall.xoff + glyphs.offsets[i].x - (-TRUNC(left));-
1732 QFixed y = overall.yoff + glyphs.offsets[i].y - TRUNC(top);-
1733 overall.x = qMin(overall.x, x);-
1734 overall.y = qMin(overall.y, y);-
1735 xmax = qMax(xmax, x + TRUNC(right - left));-
1736 ymax = qMax(ymax, y + TRUNC(top - bottom));-
1737 overall.xoff += int(TRUNC(ROUND(face->glyph->advance.x)));-
1738 }
never executed: end of block
0
1739 }-
1740 overall.height = qMax(overall.height, ymax - overall.y);-
1741 overall.width = xmax - overall.x;-
1742-
1743 if (face)
faceDescription
TRUEnever evaluated
FALSEevaluated 3606 times by 21 tests
Evaluated by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTextLayout
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
0-3606
1744 unlockFace();
never executed: unlockFace();
0
1745-
1746 if (isScalableBitmap())
isScalableBitmap()Description
TRUEnever evaluated
FALSEevaluated 3606 times by 21 tests
Evaluated by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTextLayout
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
0-3606
1747 overall = scaledBitmapMetrics(overall);
never executed: overall = scaledBitmapMetrics(overall);
0
1748 return overall;
executed 3606 times by 21 tests: return overall;
Executed by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTextLayout
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
3606
1749}-
1750-
1751glyph_metrics_t QFontEngineFT::boundingBox(glyph_t glyph)-
1752{-
1753 FT_Face face = 0;-
1754 glyph_metrics_t overall;-
1755 Glyph *g = cacheEnabled ? defaultGlyphSet.getGlyph(glyph) : 0;
cacheEnabledDescription
TRUEevaluated 288672 times by 110 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEnever evaluated
0-288672
1756 if (!g) {
!gDescription
TRUEevaluated 242 times by 7 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QPainter
  • tst_QTextLayout
FALSEevaluated 288430 times by 110 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
242-288430
1757 face = lockFace();-
1758 g = loadGlyph(cacheEnabled ? &defaultGlyphSet : 0, glyph, 0, Format_None, true);-
1759 }
executed 242 times by 7 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QPainter
  • tst_QTextLayout
242
1760 if (g) {
gDescription
TRUEevaluated 288672 times by 110 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEnever evaluated
0-288672
1761 overall.x = g->x;-
1762 overall.y = -g->y;-
1763 overall.width = g->width;-
1764 overall.height = g->height;-
1765 overall.xoff = g->advance;-
1766 if (fontDef.styleStrategy & QFont::ForceIntegerMetrics)
fontDef.styleS...IntegerMetricsDescription
TRUEnever evaluated
FALSEevaluated 288672 times by 110 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
0-288672
1767 overall.xoff = overall.xoff.round();
never executed: overall.xoff = overall.xoff.round();
0
1768 if (!cacheEnabled && g != &emptyGlyph)
!cacheEnabledDescription
TRUEnever evaluated
FALSEevaluated 288672 times by 110 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
g != &emptyGlyphDescription
TRUEnever evaluated
FALSEnever evaluated
0-288672
1769 delete g;
never executed: delete g;
0
1770 } else {
executed 288672 times by 110 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
288672
1771 int left = FLOOR(face->glyph->metrics.horiBearingX);-
1772 int right = CEIL(face->glyph->metrics.horiBearingX + face->glyph->metrics.width);-
1773 int top = CEIL(face->glyph->metrics.horiBearingY);-
1774 int bottom = FLOOR(face->glyph->metrics.horiBearingY - face->glyph->metrics.height);-
1775-
1776 overall.width = TRUNC(right-left);-
1777 overall.height = TRUNC(top-bottom);-
1778 overall.x = TRUNC(left);-
1779 overall.y = -TRUNC(top);-
1780 overall.xoff = TRUNC(ROUND(face->glyph->advance.x));-
1781 }
never executed: end of block
0
1782 if (face)
faceDescription
TRUEevaluated 242 times by 7 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QPainter
  • tst_QTextLayout
FALSEevaluated 288430 times by 110 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
242-288430
1783 unlockFace();
executed 242 times by 7 tests: unlockFace();
Executed by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QPainter
  • tst_QTextLayout
242
1784-
1785 if (isScalableBitmap())
isScalableBitmap()Description
TRUEnever evaluated
FALSEevaluated 288672 times by 110 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
0-288672
1786 overall = scaledBitmapMetrics(overall);
never executed: overall = scaledBitmapMetrics(overall);
0
1787 return overall;
executed 288672 times by 110 tests: return overall;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
288672
1788}-
1789-
1790glyph_metrics_t QFontEngineFT::boundingBox(glyph_t glyph, const QTransform &matrix)-
1791{-
1792 return alphaMapBoundingBox(glyph, 0, matrix, QFontEngine::Format_None);
never executed: return alphaMapBoundingBox(glyph, 0, matrix, QFontEngine::Format_None);
0
1793}-
1794-
1795glyph_metrics_t QFontEngineFT::alphaMapBoundingBox(glyph_t glyph, QFixed subPixelPosition, const QTransform &matrix, QFontEngine::GlyphFormat format)-
1796{-
1797 Glyph *g = loadGlyphFor(glyph, subPixelPosition, format, matrix, true);-
1798-
1799 glyph_metrics_t overall;-
1800 if (g) {
gDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_QGraphicsView
FALSEnever evaluated
0-11
1801 overall.x = g->x;-
1802 overall.y = -g->y;-
1803 overall.width = g->width;-
1804 overall.height = g->height;-
1805 overall.xoff = g->advance;-
1806 if (!cacheEnabled && g != &emptyGlyph)
!cacheEnabledDescription
TRUEnever evaluated
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_QGraphicsView
g != &emptyGlyphDescription
TRUEnever evaluated
FALSEnever evaluated
0-11
1807 delete g;
never executed: delete g;
0
1808 } else {
executed 11 times by 1 test: end of block
Executed by:
  • tst_QGraphicsView
11
1809 FT_Face face = lockFace();-
1810 int left = FLOOR(face->glyph->metrics.horiBearingX);-
1811 int right = CEIL(face->glyph->metrics.horiBearingX + face->glyph->metrics.width);-
1812 int top = CEIL(face->glyph->metrics.horiBearingY);-
1813 int bottom = FLOOR(face->glyph->metrics.horiBearingY - face->glyph->metrics.height);-
1814-
1815 overall.width = TRUNC(right-left);-
1816 overall.height = TRUNC(top-bottom);-
1817 overall.x = TRUNC(left);-
1818 overall.y = -TRUNC(top);-
1819 overall.xoff = TRUNC(ROUND(face->glyph->advance.x));-
1820 unlockFace();-
1821 }
never executed: end of block
0
1822-
1823 if (isScalableBitmap())
isScalableBitmap()Description
TRUEnever evaluated
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_QGraphicsView
0-11
1824 overall = scaledBitmapMetrics(overall);
never executed: overall = scaledBitmapMetrics(overall);
0
1825 return overall;
executed 11 times by 1 test: return overall;
Executed by:
  • tst_QGraphicsView
11
1826}-
1827-
1828static inline QImage alphaMapFromGlyphData(QFontEngineFT::Glyph *glyph, QFontEngine::GlyphFormat glyphFormat)-
1829{-
1830 if (glyph == Q_NULLPTR || glyph->height == 0 || glyph->width == 0)
glyph == nullptrDescription
TRUEnever evaluated
FALSEevaluated 311692 times by 76 tests
Evaluated 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
  • ...
glyph->height == 0Description
TRUEevaluated 13851 times by 59 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • ...
FALSEevaluated 297841 times by 76 tests
Evaluated 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
  • ...
glyph->width == 0Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QGraphicsView
FALSEevaluated 297829 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
0-311692
1831 return QImage();
executed 13863 times by 59 tests: return QImage();
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • ...
13863
1832-
1833 QImage::Format format = QImage::Format_Invalid;-
1834 int bytesPerLine = -1;-
1835 switch (glyphFormat) {-
1836 case QFontEngine::Format_Mono:
executed 365 times by 3 tests: case QFontEngine::Format_Mono:
Executed by:
  • tst_QPainter
  • tst_QStaticText
  • tst_QWizard
365
1837 format = QImage::Format_Mono;-
1838 bytesPerLine = ((glyph->width + 31) & ~31) >> 3;-
1839 break;
executed 365 times by 3 tests: break;
Executed by:
  • tst_QPainter
  • tst_QStaticText
  • tst_QWizard
365
1840 case QFontEngine::Format_A8:
executed 297464 times by 76 tests: case QFontEngine::Format_A8:
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
297464
1841 format = QImage::Format_Alpha8;-
1842 bytesPerLine = (glyph->width + 3) & ~3;-
1843 break;
executed 297464 times by 76 tests: break;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
297464
1844 case QFontEngine::Format_A32:
never executed: case QFontEngine::Format_A32:
0
1845 format = QImage::Format_ARGB32;-
1846 bytesPerLine = glyph->width * 4;-
1847 break;
never executed: break;
0
1848 default:
never executed: default:
0
1849 Q_UNREACHABLE();-
1850 };
never executed: end of block
0
1851-
1852 QImage img(static_cast<const uchar *>(glyph->data), glyph->width, glyph->height, bytesPerLine, format);-
1853 if (format == QImage::Format_Mono)
format == QImage::Format_MonoDescription
TRUEevaluated 365 times by 3 tests
Evaluated by:
  • tst_QPainter
  • tst_QStaticText
  • tst_QWizard
FALSEevaluated 297464 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
365-297464
1854 img.setColor(1, QColor(Qt::white).rgba()); // Expands color table to 2 items; item 0 set to transparent.
executed 365 times by 3 tests: img.setColor(1, QColor(Qt::white).rgba());
Executed by:
  • tst_QPainter
  • tst_QStaticText
  • tst_QWizard
365
1855 return img;
executed 297829 times by 76 tests: return img;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
297829
1856}-
1857-
1858QImage *QFontEngineFT::lockedAlphaMapForGlyph(glyph_t glyphIndex, QFixed subPixelPosition,-
1859 QFontEngine::GlyphFormat neededFormat,-
1860 const QTransform &t, QPoint *offset)-
1861{-
1862 Q_ASSERT(currentlyLockedAlphaMap.isNull());-
1863-
1864 if (isBitmapFont())
isBitmapFont()Description
TRUEevaluated 388 times by 2 tests
Evaluated by:
  • tst_QStaticText
  • tst_QWizard
FALSEevaluated 311293 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
388-311293
1865 neededFormat = Format_Mono;
executed 388 times by 2 tests: neededFormat = Format_Mono;
Executed by:
  • tst_QStaticText
  • tst_QWizard
388
1866 else if (neededFormat == Format_None && defaultFormat != Format_None)
neededFormat == Format_NoneDescription
TRUEevaluated 299429 times by 72 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
FALSEevaluated 11864 times by 9 tests
Evaluated by:
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QHeaderView
  • tst_QPainter
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTextDocument
  • tst_QTreeView
  • tst_QTreeWidget
defaultFormat != Format_NoneDescription
TRUEevaluated 299429 times by 72 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
FALSEnever evaluated
0-299429
1867 neededFormat = defaultFormat;
executed 299429 times by 72 tests: neededFormat = defaultFormat;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
299429
1868 else if (neededFormat == Format_None)
neededFormat == Format_NoneDescription
TRUEnever evaluated
FALSEevaluated 11864 times by 9 tests
Evaluated by:
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QHeaderView
  • tst_QPainter
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTextDocument
  • tst_QTreeView
  • tst_QTreeWidget
0-11864
1869 neededFormat = Format_A8;
never executed: neededFormat = Format_A8;
0
1870-
1871 Glyph *glyph = loadGlyphFor(glyphIndex, subPixelPosition, neededFormat, t);-
1872-
1873 if (offset != 0 && glyph != 0)
offset != 0Description
TRUEevaluated 311681 times by 76 tests
Evaluated 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
  • ...
FALSEnever evaluated
glyph != 0Description
TRUEevaluated 311681 times by 76 tests
Evaluated 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
  • ...
FALSEnever evaluated
0-311681
1874 *offset = QPoint(glyph->x, -glyph->y);
executed 311681 times by 76 tests: *offset = QPoint(glyph->x, -glyph->y);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
311681
1875-
1876 currentlyLockedAlphaMap = alphaMapFromGlyphData(glyph, neededFormat);-
1877-
1878 const bool glyphHasGeometry = glyph != Q_NULLPTR && glyph->height != 0 && glyph->width != 0;
glyph != nullptrDescription
TRUEevaluated 311681 times by 76 tests
Evaluated 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
  • ...
FALSEnever evaluated
glyph->height != 0Description
TRUEevaluated 297830 times by 76 tests
Evaluated 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
  • ...
FALSEevaluated 13851 times by 59 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • ...
glyph->width != 0Description
TRUEevaluated 297818 times by 76 tests
Evaluated 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
  • ...
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QGraphicsView
0-311681
1879 if (!cacheEnabled && glyph != &emptyGlyph) {
!cacheEnabledDescription
TRUEnever evaluated
FALSEevaluated 311681 times by 76 tests
Evaluated 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
  • ...
glyph != &emptyGlyphDescription
TRUEnever evaluated
FALSEnever evaluated
0-311681
1880 currentlyLockedAlphaMap = currentlyLockedAlphaMap.copy();-
1881 delete glyph;-
1882 }
never executed: end of block
0
1883-
1884 if (!glyphHasGeometry)
!glyphHasGeometryDescription
TRUEevaluated 13863 times by 59 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • ...
FALSEevaluated 297818 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
13863-297818
1885 return Q_NULLPTR;
executed 13863 times by 59 tests: return nullptr;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • ...
13863
1886-
1887 if (currentlyLockedAlphaMap.isNull())
currentlyLocke...haMap.isNull()Description
TRUEnever evaluated
FALSEevaluated 297818 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
0-297818
1888 return QFontEngine::lockedAlphaMapForGlyph(glyphIndex, subPixelPosition, neededFormat, t, offset);
never executed: return QFontEngine::lockedAlphaMapForGlyph(glyphIndex, subPixelPosition, neededFormat, t, offset);
0
1889-
1890 QImageData *data = currentlyLockedAlphaMap.data_ptr();-
1891 data->is_locked = true;-
1892-
1893 return &currentlyLockedAlphaMap;
executed 297818 times by 76 tests: return &currentlyLockedAlphaMap;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
297818
1894}-
1895-
1896void QFontEngineFT::unlockAlphaMapForGlyph()-
1897{-
1898 QFontEngine::unlockAlphaMapForGlyph();-
1899}
executed 297818 times by 76 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
297818
1900-
1901static inline bool is2dRotation(const QTransform &t)-
1902{-
1903 return qFuzzyCompare(t.m11(), t.m22()) && qFuzzyCompare(t.m12(), -t.m21())
executed 2498 times by 7 tests: return qFuzzyCompare(t.m11(), t.m22()) && qFuzzyCompare(t.m12(), -t.m21()) && qFuzzyCompare(t.m11()*t.m22() - t.m12()*t.m21(), qreal(1.0));
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
2498
1904 && qFuzzyCompare(t.m11()*t.m22() - t.m12()*t.m21(), qreal(1.0));
executed 2498 times by 7 tests: return qFuzzyCompare(t.m11(), t.m22()) && qFuzzyCompare(t.m12(), -t.m21()) && qFuzzyCompare(t.m11()*t.m22() - t.m12()*t.m21(), qreal(1.0));
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
2498
1905}-
1906-
1907QFontEngineFT::Glyph *QFontEngineFT::loadGlyphFor(glyph_t g,-
1908 QFixed subPixelPosition,-
1909 GlyphFormat format,-
1910 const QTransform &t,-
1911 bool fetchBoundingBox)-
1912{-
1913 QGlyphSet *glyphSet = loadGlyphSet(t);-
1914 if (glyphSet != 0 && glyphSet->outline_drawing && !fetchBoundingBox)
glyphSet != 0Description
TRUEevaluated 311703 times by 76 tests
Evaluated 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
  • ...
FALSEnever evaluated
glyphSet->outline_drawingDescription
TRUEnever evaluated
FALSEevaluated 311703 times by 76 tests
Evaluated 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
  • ...
!fetchBoundingBoxDescription
TRUEnever evaluated
FALSEnever evaluated
0-311703
1915 return 0;
never executed: return 0;
0
1916-
1917 Glyph *glyph = glyphSet != 0 ? glyphSet->getGlyph(g, subPixelPosition) : 0;
glyphSet != 0Description
TRUEevaluated 311703 times by 76 tests
Evaluated 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
  • ...
FALSEnever evaluated
0-311703
1918 if (!glyph || glyph->format != format || (!fetchBoundingBox && !glyph->data)) {
!glyphDescription
TRUEevaluated 4756 times by 76 tests
Evaluated 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
  • ...
FALSEevaluated 306947 times by 75 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
glyph->format != formatDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPainter
FALSEevaluated 306946 times by 75 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
!fetchBoundingBoxDescription
TRUEevaluated 306935 times by 75 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_QGraphicsView
!glyph->dataDescription
TRUEevaluated 13664 times by 56 tests
Evaluated 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
  • ...
FALSEevaluated 293271 times by 75 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
1-306947
1919 QScopedValueRollback<HintStyle> saved_default_hint_style(default_hint_style);-
1920 if (t.type() >= QTransform::TxScale && !is2dRotation(t))
t.type() >= QT...sform::TxScaleDescription
TRUEevaluated 2498 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
FALSEevaluated 15923 times by 76 tests
Evaluated 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
  • ...
!is2dRotation(t)Description
TRUEevaluated 936 times by 5 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QPrinter
  • tst_QStaticText
FALSEevaluated 1562 times by 4 tests
Evaluated by:
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QStaticText
  • tst_QTabWidget
936-15923
1921 default_hint_style = HintNone; // disable hinting if the glyphs are transformed
executed 936 times by 5 tests: default_hint_style = HintNone;
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QPrinter
  • tst_QStaticText
936
1922-
1923 lockFace();-
1924 FT_Matrix m = this->matrix;-
1925 FT_Matrix ftMatrix = glyphSet != 0 ? glyphSet->transformationMatrix : QTransformToFTMatrix(t);
glyphSet != 0Description
TRUEevaluated 18421 times by 76 tests
Evaluated 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
  • ...
FALSEnever evaluated
0-18421
1926 FT_Matrix_Multiply(&ftMatrix, &m);-
1927 freetype->matrix = m;-
1928 glyph = loadGlyph(glyphSet, g, subPixelPosition, format, false);-
1929 unlockFace();-
1930 }
executed 18421 times by 76 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
18421
1931-
1932 return glyph;
executed 311703 times by 76 tests: return glyph;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
311703
1933}-
1934-
1935QImage QFontEngineFT::alphaMapForGlyph(glyph_t g, QFixed subPixelPosition)-
1936{-
1937 return alphaMapForGlyph(g, subPixelPosition, QTransform());
never executed: return alphaMapForGlyph(g, subPixelPosition, QTransform());
0
1938}-
1939-
1940QImage QFontEngineFT::alphaMapForGlyph(glyph_t g, QFixed subPixelPosition, const QTransform &t)-
1941{-
1942 const GlyphFormat neededFormat = antialias ? Format_A8 : Format_Mono;
antialiasDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_QGraphicsView
FALSEnever evaluated
0-11
1943-
1944 Glyph *glyph = loadGlyphFor(g, subPixelPosition, neededFormat, t);-
1945-
1946 QImage img = alphaMapFromGlyphData(glyph, neededFormat);-
1947 img = img.copy();-
1948-
1949 if (!cacheEnabled && glyph != &emptyGlyph)
!cacheEnabledDescription
TRUEnever evaluated
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_QGraphicsView
glyph != &emptyGlyphDescription
TRUEnever evaluated
FALSEnever evaluated
0-11
1950 delete glyph;
never executed: delete glyph;
0
1951-
1952 if (!img.isNull())
!img.isNull()Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_QGraphicsView
FALSEnever evaluated
0-11
1953 return img;
executed 11 times by 1 test: return img;
Executed by:
  • tst_QGraphicsView
11
1954-
1955 return QFontEngine::alphaMapForGlyph(g);
never executed: return QFontEngine::alphaMapForGlyph(g);
0
1956}-
1957-
1958QImage QFontEngineFT::alphaRGBMapForGlyph(glyph_t g, QFixed subPixelPosition, const QTransform &t)-
1959{-
1960 if (t.type() > QTransform::TxRotate)
t.type() > QTr...form::TxRotateDescription
TRUEnever evaluated
FALSEnever evaluated
0
1961 return QFontEngine::alphaRGBMapForGlyph(g, subPixelPosition, t);
never executed: return QFontEngine::alphaRGBMapForGlyph(g, subPixelPosition, t);
0
1962-
1963 const GlyphFormat neededFormat = Format_A32;-
1964-
1965 Glyph *glyph = loadGlyphFor(g, subPixelPosition, neededFormat, t);-
1966-
1967 QImage img = alphaMapFromGlyphData(glyph, neededFormat);-
1968 img = img.copy();-
1969-
1970 if (!cacheEnabled && glyph != &emptyGlyph)
!cacheEnabledDescription
TRUEnever evaluated
FALSEnever evaluated
glyph != &emptyGlyphDescription
TRUEnever evaluated
FALSEnever evaluated
0
1971 delete glyph;
never executed: delete glyph;
0
1972-
1973 if (!img.isNull())
!img.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
0
1974 return img;
never executed: return img;
0
1975-
1976 return QFontEngine::alphaRGBMapForGlyph(g, subPixelPosition, t);
never executed: return QFontEngine::alphaRGBMapForGlyph(g, subPixelPosition, t);
0
1977}-
1978-
1979QImage QFontEngineFT::bitmapForGlyph(glyph_t g, QFixed subPixelPosition, const QTransform &t)-
1980{-
1981 Glyph *glyph = loadGlyphFor(g, subPixelPosition, defaultFormat, t);-
1982 if (glyph == Q_NULLPTR)
glyph == nullptrDescription
TRUEnever evaluated
FALSEnever evaluated
0
1983 return QImage();
never executed: return QImage();
0
1984-
1985 QImage img;-
1986 if (defaultFormat == GlyphFormat::Format_ARGB)
defaultFormat ...t::Format_ARGBDescription
TRUEnever evaluated
FALSEnever evaluated
0
1987 img = QImage(glyph->data, glyph->width, glyph->height, QImage::Format_ARGB32_Premultiplied).copy();
never executed: img = QImage(glyph->data, glyph->width, glyph->height, QImage::Format_ARGB32_Premultiplied).copy();
0
1988 else if (defaultFormat == GlyphFormat::Format_Mono)
defaultFormat ...t::Format_MonoDescription
TRUEnever evaluated
FALSEnever evaluated
0
1989 img = QImage(glyph->data, glyph->width, glyph->height, QImage::Format_Mono).copy();
never executed: img = QImage(glyph->data, glyph->width, glyph->height, QImage::Format_Mono).copy();
0
1990-
1991 if (!img.isNull() && (!t.isIdentity() || scalableBitmapScaleFactor != 1)) {
!img.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
!t.isIdentity()Description
TRUEnever evaluated
FALSEnever evaluated
scalableBitmapScaleFactor != 1Description
TRUEnever evaluated
FALSEnever evaluated
0
1992 QTransform trans(t);-
1993 const qreal scaleFactor = scalableBitmapScaleFactor.toReal();-
1994 trans.scale(scaleFactor, scaleFactor);-
1995 img = img.transformed(trans, Qt::SmoothTransformation);-
1996 }
never executed: end of block
0
1997-
1998 if (!cacheEnabled && glyph != &emptyGlyph)
!cacheEnabledDescription
TRUEnever evaluated
FALSEnever evaluated
glyph != &emptyGlyphDescription
TRUEnever evaluated
FALSEnever evaluated
0
1999 delete glyph;
never executed: delete glyph;
0
2000-
2001 return img;
never executed: return img;
0
2002}-
2003-
2004void QFontEngineFT::removeGlyphFromCache(glyph_t glyph)-
2005{-
2006 defaultGlyphSet.removeGlyphFromCache(glyph, 0);-
2007}
never executed: end of block
0
2008-
2009int QFontEngineFT::glyphCount() const-
2010{-
2011 int count = 0;-
2012 FT_Face face = lockFace();-
2013 if (face) {
faceDescription
TRUEnever evaluated
FALSEnever evaluated
0
2014 count = face->num_glyphs;-
2015 unlockFace();-
2016 }
never executed: end of block
0
2017 return count;
never executed: return count;
0
2018}-
2019-
2020FT_Face QFontEngineFT::lockFace(Scaling scale) const-
2021{-
2022 freetype->lock();-
2023 FT_Face face = freetype->face;-
2024 if (scale == Unscaled) {
scale == UnscaledDescription
TRUEevaluated 21 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
FALSEevaluated 28130 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
21-28130
2025 if (FT_Set_Char_Size(face, face->units_per_EM << 6, face->units_per_EM << 6, 0, 0) == 0) {
FT_Set_Char_Si... 6, 0, 0) == 0Description
TRUEevaluated 21 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
FALSEnever evaluated
0-21
2026 freetype->xsize = face->units_per_EM << 6;-
2027 freetype->ysize = face->units_per_EM << 6;-
2028 }
executed 21 times by 6 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
21
2029 } else if (freetype->xsize != xsize || freetype->ysize != ysize) {
executed 21 times by 6 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
freetype->xsize != xsizeDescription
TRUEevaluated 2053 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEevaluated 26077 times by 115 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
freetype->ysize != ysizeDescription
TRUEnever evaluated
FALSEevaluated 26077 times by 115 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
0-26077
2030 FT_Set_Char_Size(face, xsize, ysize, 0, 0);-
2031 freetype->xsize = xsize;-
2032 freetype->ysize = ysize;-
2033 }
executed 2053 times by 123 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
2053
2034 if (freetype->matrix.xx != matrix.xx ||
freetype->matr...x != matrix.xxDescription
TRUEevaluated 2496 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
FALSEevaluated 25655 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
2496-25655
2035 freetype->matrix.yy != matrix.yy ||
freetype->matr...y != matrix.yyDescription
TRUEnever evaluated
FALSEevaluated 25655 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
0-25655
2036 freetype->matrix.xy != matrix.xy ||
freetype->matr...y != matrix.xyDescription
TRUEnever evaluated
FALSEevaluated 25655 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
0-25655
2037 freetype->matrix.yx != matrix.yx) {
freetype->matr...x != matrix.yxDescription
TRUEnever evaluated
FALSEevaluated 25655 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
0-25655
2038 freetype->matrix = matrix;-
2039 FT_Set_Transform(face, &freetype->matrix, 0);-
2040 }
executed 2496 times by 7 tests: end of block
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
2496
2041-
2042 return face;
executed 28151 times by 123 tests: return face;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
28151
2043}-
2044-
2045void QFontEngineFT::unlockFace() const-
2046{-
2047 freetype->unlock();-
2048}
executed 28151 times by 123 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
28151
2049-
2050FT_Face QFontEngineFT::non_locked_face() const-
2051{-
2052 return freetype->face;
never executed: return freetype->face;
0
2053}-
2054-
2055-
2056QFontEngineFT::QGlyphSet::QGlyphSet()-
2057 : outline_drawing(false)-
2058{-
2059 transformationMatrix.xx = 0x10000;-
2060 transformationMatrix.yy = 0x10000;-
2061 transformationMatrix.xy = 0;-
2062 transformationMatrix.yx = 0;-
2063 memset(fast_glyph_data, 0, sizeof(fast_glyph_data));-
2064 fast_glyph_count = 0;-
2065}
executed 2180 times by 123 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
2180
2066-
2067QFontEngineFT::QGlyphSet::~QGlyphSet()-
2068{-
2069 clear();-
2070}
executed 2309 times by 199 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontCache
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • ...
2309
2071-
2072void QFontEngineFT::QGlyphSet::clear()-
2073{-
2074 if (fast_glyph_count > 0) {
fast_glyph_count > 0Description
TRUEevaluated 682 times by 120 tests
Evaluated 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
  • ...
FALSEevaluated 1889 times by 99 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontCache
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • ...
682-1889
2075 for (int i = 0; i < 256; ++i) {
i < 256Description
TRUEevaluated 174592 times by 120 tests
Evaluated 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
  • ...
FALSEevaluated 682 times by 120 tests
Evaluated by:
  • tst_QApplication
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • ...
682-174592
2076 if (fast_glyph_data[i]) {
fast_glyph_data[i]Description
TRUEevaluated 11455 times by 120 tests
Evaluated 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
  • ...
FALSEevaluated 163137 times by 120 tests
Evaluated by:
  • tst_QApplication
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • ...
11455-163137
2077 delete fast_glyph_data[i];-
2078 fast_glyph_data[i] = 0;-
2079 }
executed 11455 times by 120 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • ...
11455
2080 }
executed 174592 times by 120 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • ...
174592
2081 fast_glyph_count = 0;-
2082 }
executed 682 times by 120 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • ...
682
2083 qDeleteAll(glyph_data);-
2084 glyph_data.clear();-
2085}
executed 2571 times by 199 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontCache
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • ...
2571
2086-
2087void QFontEngineFT::QGlyphSet::removeGlyphFromCache(glyph_t index, QFixed subPixelPosition)-
2088{-
2089 if (useFastGlyphData(index, subPixelPosition)) {
useFastGlyphDa...PixelPosition)Description
TRUEnever evaluated
FALSEnever evaluated
0
2090 if (fast_glyph_data[index]) {
fast_glyph_data[index]Description
TRUEnever evaluated
FALSEnever evaluated
0
2091 delete fast_glyph_data[index];-
2092 fast_glyph_data[index] = 0;-
2093 if (fast_glyph_count > 0)
fast_glyph_count > 0Description
TRUEnever evaluated
FALSEnever evaluated
0
2094 --fast_glyph_count;
never executed: --fast_glyph_count;
0
2095 }
never executed: end of block
0
2096 } else {
never executed: end of block
0
2097 delete glyph_data.take(GlyphAndSubPixelPosition(index, subPixelPosition));-
2098 }
never executed: end of block
0
2099}-
2100-
2101void QFontEngineFT::QGlyphSet::setGlyph(glyph_t index, QFixed subPixelPosition, Glyph *glyph)-
2102{-
2103 if (useFastGlyphData(index, subPixelPosition)) {
useFastGlyphDa...PixelPosition)Description
TRUEevaluated 25565 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEevaluated 343 times by 34 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QComplexText
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QPainter
  • tst_QPlainTextEdit
  • tst_QRawFont
  • tst_QStackedLayout
  • tst_QStaticText
  • tst_QTableView
  • tst_QTextCursor
  • tst_QTextDocument
  • ...
343-25565
2104 if (!fast_glyph_data[index])
!fast_glyph_data[index]Description
TRUEevaluated 11900 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_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
  • ...
FALSEevaluated 13665 times by 57 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QLabel
  • ...
11900-13665
2105 ++fast_glyph_count;
executed 11900 times by 114 tests: ++fast_glyph_count;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
11900
2106 fast_glyph_data[index] = glyph;-
2107 } else {
executed 25565 times by 114 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
25565
2108 glyph_data.insert(GlyphAndSubPixelPosition(index, subPixelPosition), glyph);-
2109 }
executed 343 times by 34 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QComplexText
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QPainter
  • tst_QPlainTextEdit
  • tst_QRawFont
  • tst_QStackedLayout
  • tst_QStaticText
  • tst_QTableView
  • tst_QTextCursor
  • tst_QTextDocument
  • ...
343
2110}-
2111-
2112int QFontEngineFT::getPointInOutline(glyph_t glyph, int flags, quint32 point, QFixed *xpos, QFixed *ypos, quint32 *nPoints)-
2113{-
2114 lockFace();-
2115 bool hsubpixel = true;-
2116 int vfactor = 1;-
2117 int load_flags = loadFlags(0, Format_A8, flags, hsubpixel, vfactor);-
2118 int result = freetype->getPointInOutline(glyph, load_flags, point, xpos, ypos, nPoints);-
2119 unlockFace();-
2120 return result;
never executed: return result;
0
2121}-
2122-
2123bool QFontEngineFT::initFromFontEngine(const QFontEngineFT *fe)-
2124{-
2125 if (!init(fe->faceId(), fe->antialias, fe->defaultFormat, fe->freetype))
!init(fe->face... fe->freetype)Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QRawFont
0-4
2126 return false;
never executed: return false;
0
2127-
2128 // Increase the reference of this QFreetypeFace since one more QFontEngineFT-
2129 // will be using it-
2130 freetype->ref.ref();-
2131-
2132 default_load_flags = fe->default_load_flags;-
2133 default_hint_style = fe->default_hint_style;-
2134 antialias = fe->antialias;-
2135 transform = fe->transform;-
2136 embolden = fe->embolden;-
2137 obliquen = fe->obliquen;-
2138 subpixelType = fe->subpixelType;-
2139 lcdFilterType = fe->lcdFilterType;-
2140 embeddedbitmap = fe->embeddedbitmap;-
2141-
2142 return true;
executed 4 times by 1 test: return true;
Executed by:
  • tst_QRawFont
4
2143}-
2144-
2145QFontEngine *QFontEngineFT::cloneWithSize(qreal pixelSize) const-
2146{-
2147 QFontDef fontDef(this->fontDef);-
2148 fontDef.pixelSize = pixelSize;-
2149 QFontEngineFT *fe = new QFontEngineFT(fontDef);-
2150 if (!fe->initFromFontEngine(this)) {
!fe->initFromFontEngine(this)Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QRawFont
0-4
2151 delete fe;-
2152 return 0;
never executed: return 0;
0
2153 } else {-
2154 return fe;
executed 4 times by 1 test: return fe;
Executed by:
  • tst_QRawFont
4
2155 }-
2156}-
2157-
2158Qt::HANDLE QFontEngineFT::handle() const-
2159{-
2160 return non_locked_face();
never executed: return non_locked_face();
0
2161}-
2162-
2163QT_END_NAMESPACE-
2164-
2165#endif // QT_NO_FREETYPE-
Source codeSwitch to Preprocessed file

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