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) 2015 The Qt Company Ltd.-
4** Contact: http://www.qt.io/licensing/-
5**-
6** This file is part of the QtGui module of the Qt Toolkit.-
7**-
8** $QT_BEGIN_LICENSE:LGPL21$-
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 http://www.qt.io/terms-conditions. For further-
15** information use the contact form at http://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 2.1 or version 3 as published by the Free-
20** Software Foundation and appearing in the file LICENSE.LGPLv21 and-
21** LICENSE.LGPLv3 included in the packaging of this file. Please review the-
22** following information to ensure the GNU Lesser General Public License-
23** requirements will be met: https://www.gnu.org/licenses/lgpl.html and-
24** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.-
25**-
26** As a special exception, The Qt Company gives you certain additional-
27** rights. These rights are described in The Qt Company LGPL Exception-
28** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.-
29**-
30** $QT_END_LICENSE$-
31**-
32****************************************************************************/-
33-
34#include "qdir.h"-
35#include "qmetatype.h"-
36#include "qtextstream.h"-
37#include "qvariant.h"-
38#include "qfontengine_ft_p.h"-
39#include "private/qimage_p.h"-
40#include <private/qstringiterator_p.h>-
41-
42#ifndef QT_NO_FREETYPE-
43-
44#include "qfile.h"-
45#include "qfileinfo.h"-
46#include <qscopedvaluerollback.h>-
47#include "qthreadstorage.h"-
48#include <qmath.h>-
49-
50#include <ft2build.h>-
51#include FT_FREETYPE_H-
52#include FT_OUTLINE_H-
53#include FT_SYNTHESIS_H-
54#include FT_TRUETYPE_TABLES_H-
55#include FT_TYPE1_TABLES_H-
56#include FT_GLYPH_H-
57-
58#if defined(FT_LCD_FILTER_H)-
59#include FT_LCD_FILTER_H-
60#endif-
61-
62#if defined(FT_CONFIG_OPTIONS_H)-
63#include FT_CONFIG_OPTIONS_H-
64#endif-
65-
66#if defined(FT_LCD_FILTER_H)-
67#define QT_USE_FREETYPE_LCDFILTER-
68#endif-
69-
70#ifdef QT_LINUXBASE-
71#include FT_ERRORS_H-
72#endif-
73-
74#if !defined(QT_MAX_CACHED_GLYPH_SIZE)-
75# define QT_MAX_CACHED_GLYPH_SIZE 64-
76#endif-
77-
78QT_BEGIN_NAMESPACE-
79-
80#define FLOOR(x) ((x) & -64)-
81#define CEIL(x) (((x)+63) & -64)-
82#define TRUNC(x) ((x) >> 6)-
83#define ROUND(x) (((x)+32) & -64)-
84-
85static bool ft_getSfntTable(void *user_data, uint tag, uchar *buffer, uint *length)-
86{-
87 FT_Face face = (FT_Face)user_data;-
88-
89 bool result = false;-
90 if (FT_IS_SFNT(face)) {
( face->face_f... ( 1L << 3 ) )Description
TRUEevaluated 2001 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-2001
91 FT_ULong len = *length;-
92 result = FT_Load_Sfnt_Table(face, tag, 0, buffer, &len) == FT_Err_Ok;-
93 *length = len;-
94 Q_ASSERT(!result || int(*length) > 0);-
95 }
executed 2001 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
  • ...
2001
96-
97 return result;
executed 2084 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
  • ...
2084
98}-
99-
100static QFontEngineFT::Glyph emptyGlyph = {0, 0, 0, 0, 0, 0, 0, 0};-
101-
102static const QFontEngine::HintStyle ftInitialDefaultHintStyle =-
103#ifdef Q_OS_WIN-
104 QFontEngineFT::HintFull;-
105#else-
106 QFontEngineFT::HintNone;-
107#endif-
108-
109// -------------------------- Freetype support -------------------------------
110-
111class QtFreetypeData-
112{-
113public:-
114 QtFreetypeData()-
115 : library(0)-
116 { }
executed 134 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
  • ...
134
117 ~QtFreetypeData();-
118-
119 FT_Library library;-
120 QHash<QFontEngine::FaceId, QFreetypeFace *> faces;-
121};-
122-
123QtFreetypeData::~QtFreetypeData()-
124{-
125 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 133 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-133
126 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
127 faces.clear();-
128 FT_Done_FreeType(library);-
129 library = 0;-
130}
executed 133 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
  • ...
133
131-
132#ifdef QT_NO_THREAD-
133Q_GLOBAL_STATIC(QtFreetypeData, theFreetypeData)-
134-
135QtFreetypeData *qt_getFreetypeData()-
136{-
137 return theFreetypeData();-
138}-
139#else-
140Q_GLOBAL_STATIC(QThreadStorage<QtFreetypeData *>, theFreetypeData)
executed 123 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 123 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 3703 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 123 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-3703
141-
142QtFreetypeData *qt_getFreetypeData()-
143{-
144 QtFreetypeData *&freetypeData = theFreetypeData()->localData();-
145 if (!freetypeData)
!freetypeDataDescription
TRUEevaluated 134 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 3569 times by 169 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
  • ...
134-3569
146 freetypeData = new QtFreetypeData;
executed 134 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
  • ...
134
147 return freetypeData;
executed 3703 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
  • ...
3703
148}-
149#endif-
150-
151FT_Library qt_getFreetype()-
152{-
153 QtFreetypeData *freetypeData = qt_getFreetypeData();-
154 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
155 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
156 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
157}-
158-
159int QFreetypeFace::fsType() const-
160{-
161 int fsType = 0;-
162 TT_OS2 *os2 = (TT_OS2 *)FT_Get_Sfnt_Table(face, ft_sfnt_os2);-
163 if (os2)
os2Description
TRUEevaluated 1935 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-1935
164 fsType = os2->fsType;
executed 1935 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
  • ...
1935
165 return fsType;
executed 2010 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
  • ...
2010
166}-
167-
168int QFreetypeFace::getPointInOutline(glyph_t glyph, int flags, quint32 point, QFixed *xpos, QFixed *ypos, quint32 *nPoints)-
169{-
170 if (int error = FT_Load_Glyph(face, glyph, flags))
int error = FT... glyph, flags)Description
TRUEnever evaluated
FALSEnever evaluated
0
171 return error;
never executed: return error;
0
172-
173 if (face->glyph->format != FT_GLYPH_FORMAT_OUTLINE)
face->glyph->f...FORMAT_OUTLINEDescription
TRUEnever evaluated
FALSEnever evaluated
0
174 return Err_Invalid_SubTable;
never executed: return Err_Invalid_SubTable;
0
175-
176 *nPoints = face->glyph->outline.n_points;-
177 if (!(*nPoints))
!(*nPoints)Description
TRUEnever evaluated
FALSEnever evaluated
0
178 return Err_Ok;
never executed: return Err_Ok;
0
179-
180 if (point > *nPoints)
point > *nPointsDescription
TRUEnever evaluated
FALSEnever evaluated
0
181 return Err_Invalid_SubTable;
never executed: return Err_Invalid_SubTable;
0
182-
183 *xpos = QFixed::fromFixed(face->glyph->outline.points[point].x);-
184 *ypos = QFixed::fromFixed(face->glyph->outline.points[point].y);-
185-
186 return Err_Ok;
never executed: return Err_Ok;
0
187}-
188-
189extern QByteArray qt_fontdata_from_index(int);-
190-
191/*-
192 * One font file can contain more than one font (bold/italic for example)-
193 * find the right one and return it.-
194 *-
195 * Returns the freetype face or 0 in case of an empty file or any other problems-
196 * (like not being able to open the file)-
197 */-
198QFreetypeFace *QFreetypeFace::getFace(const QFontEngine::FaceId &face_id,-
199 const QByteArray &fontData)-
200{-
201 if (face_id.filename.isEmpty() && fontData.isEmpty())
face_id.filename.isEmpty()Description
TRUEevaluated 1249 times by 1 test
Evaluated by:
  • tst_QRawFont
FALSEevaluated 759 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 1249 times by 1 test
Evaluated by:
  • tst_QRawFont
0-1249
202 return 0;
never executed: return 0;
0
203-
204 QtFreetypeData *freetypeData = qt_getFreetypeData();-
205 if (!freetypeData->library)
!freetypeData->libraryDescription
TRUEevaluated 1351 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 657 times by 51 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
  • ...
657-1351
206 FT_Init_FreeType(&freetypeData->library);
executed 1351 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
  • ...
1351
207-
208 QFreetypeFace *freetype = freetypeData->faces.value(face_id, 0);-
209 if (freetype) {
freetypeDescription
TRUEevaluated 346 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 1662 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
  • ...
346-1662
210 freetype->ref.ref();-
211 } else {
executed 346 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
346
212 QScopedPointer<QFreetypeFace> newFreetype(new QFreetypeFace);-
213 FT_Face face;-
214 if (!face_id.filename.isEmpty()) {
!face_id.filename.isEmpty()Description
TRUEevaluated 413 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 1249 times by 1 test
Evaluated by:
  • tst_QRawFont
413-1249
215 QString fileName = QFile::decodeName(face_id.filename);-
216 if (face_id.filename.startsWith(":qmemoryfonts/")) {
face_id.filena...memoryfonts/")Description
TRUEnever evaluated
FALSEevaluated 413 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-413
217 // from qfontdatabase.cpp-
218 QByteArray idx = face_id.filename;-
219 idx.remove(0, 14); // remove ':qmemoryfonts/'-
220 bool ok = false;-
221 newFreetype->fontData = qt_fontdata_from_index(idx.toInt(&ok));-
222 if (!ok)
!okDescription
TRUEnever evaluated
FALSEnever evaluated
0
223 newFreetype->fontData = QByteArray();
never executed: newFreetype->fontData = QByteArray();
0
224 } 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 392 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-392
225 QFile file(fileName);-
226 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
227 return 0;
never executed: return 0;
0
228 }-
229 newFreetype->fontData = file.readAll();-
230 }
executed 21 times by 4 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
21
231 } else {
executed 413 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
  • ...
413
232 newFreetype->fontData = fontData;-
233 }
executed 1249 times by 1 test: end of block
Executed by:
  • tst_QRawFont
1249
234 if (!newFreetype->fontData.isEmpty()) {
!newFreetype->...Data.isEmpty()Description
TRUEevaluated 1270 times by 4 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
FALSEevaluated 392 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
  • ...
392-1270
235 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 1268 times by 4 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
2-1268
236 return 0;
executed 2 times by 1 test: return 0;
Executed by:
  • tst_QRawFont
2
237 }-
238 } else if (FT_New_Face(freetypeData->library, face_id.filename, face_id.index, &face)) {
executed 1268 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 392 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-1268
239 return 0;
never executed: return 0;
0
240 }-
241 newFreetype->face = face;-
242-
243 newFreetype->hbFace = 0;-
244 newFreetype->hbFace_destroy_func = 0;-
245-
246 newFreetype->ref.store(1);-
247 newFreetype->xsize = 0;-
248 newFreetype->ysize = 0;-
249 newFreetype->matrix.xx = 0x10000;-
250 newFreetype->matrix.yy = 0x10000;-
251 newFreetype->matrix.xy = 0;-
252 newFreetype->matrix.yx = 0;-
253 newFreetype->unicode_map = 0;-
254 newFreetype->symbol_map = 0;-
255-
256 memset(newFreetype->cmapCache, 0, sizeof(newFreetype->cmapCache));-
257-
258 for (int i = 0; i < newFreetype->face->num_charmaps; ++i) {
i < newFreetyp...->num_charmapsDescription
TRUEevaluated 5897 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 1660 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
  • ...
1660-5897
259 FT_CharMap cm = newFreetype->face->charmaps[i];-
260 switch(cm->encoding) {-
261 case FT_ENCODING_UNICODE:
executed 4283 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
  • ...
4283
262 newFreetype->unicode_map = cm;-
263 break;
executed 4283 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
  • ...
4283
264 case FT_ENCODING_APPLE_ROMAN:
executed 1537 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
  • ...
1537
265 case FT_ENCODING_ADOBE_LATIN_1:
never executed: case FT_ENCODING_ADOBE_LATIN_1:
0
266 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 1526 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 1526 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-1526
267 newFreetype->unicode_map = cm;
executed 11 times by 3 tests: newFreetype->unicode_map = cm;
Executed by:
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
11
268 break;
executed 1537 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
  • ...
1537
269 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
270 case FT_ENCODING_MS_SYMBOL:
never executed: case FT_ENCODING_MS_SYMBOL:
0
271 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
272 newFreetype->symbol_map = cm;
executed 6 times by 3 tests: newFreetype->symbol_map = cm;
Executed by:
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
6
273 break;
executed 6 times by 3 tests: break;
Executed by:
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
6
274 default:
executed 71 times by 7 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QLabel
  • tst_QPushButton
  • tst_QTextLayout
71
275 break;
executed 71 times by 7 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QLabel
  • tst_QPushButton
  • tst_QTextLayout
71
276 }-
277 }-
278-
279 if (!FT_IS_SCALABLE(newFreetype->face) && newFreetype->face->num_fixed_sizes == 1)
!( newFreetype... ( 1L << 0 ) )Description
TRUEnever evaluated
FALSEevaluated 1660 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-1660
280 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
281-
282 FT_Set_Charmap(newFreetype->face, newFreetype->unicode_map);-
283 QT_TRY {-
284 freetypeData->faces.insert(face_id, newFreetype.data());-
285 } QT_CATCH(...) {
executed 1660 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(); }
-
286 newFreetype.take()->release(face_id);
dead code: { newFreetype.take()->release(face_id); qt_noop(); }
-
287 // we could return null in principle instead of throwing
dead code: { newFreetype.take()->release(face_id); qt_noop(); }
-
288 QT_RETHROW;
dead code: { newFreetype.take()->release(face_id); qt_noop(); }
-
289 }
dead code: { newFreetype.take()->release(face_id); qt_noop(); }
-
290 freetype = newFreetype.take();-
291 }
executed 1660 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
  • ...
1660
292 return freetype;
executed 2006 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
  • ...
2006
293}-
294-
295void QFreetypeFace::cleanup()-
296{-
297 if (hbFace && hbFace_destroy_func) {
hbFaceDescription
TRUEevaluated 1659 times by 129 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
  • ...
FALSEnever evaluated
hbFace_destroy_funcDescription
TRUEevaluated 1659 times by 129 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
  • ...
FALSEnever evaluated
0-1659
298 hbFace_destroy_func(hbFace);-
299 hbFace = 0;-
300 }
executed 1659 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
  • ...
1659
301 FT_Done_Face(face);-
302 face = 0;-
303}
executed 1659 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
  • ...
1659
304-
305void QFreetypeFace::release(const QFontEngine::FaceId &face_id)-
306{-
307 if (!ref.deref()) {
!ref.deref()Description
TRUEevaluated 1654 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 350 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
  • ...
350-1654
308 if (face) {
faceDescription
TRUEevaluated 1651 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-1651
309 QtFreetypeData *freetypeData = qt_getFreetypeData();-
310-
311 cleanup();-
312-
313 if (freetypeData->faces.contains(face_id))
freetypeData->...tains(face_id)Description
TRUEevaluated 1651 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-1651
314 freetypeData->faces.take(face_id);
executed 1651 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
  • ...
1651
315-
316 if (freetypeData->faces.isEmpty()) {
freetypeData->faces.isEmpty()Description
TRUEevaluated 1363 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 288 times by 49 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
  • ...
288-1363
317 FT_Done_FreeType(freetypeData->library);-
318 freetypeData->library = 0;-
319 }
executed 1363 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
  • ...
1363
320 }
executed 1651 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
  • ...
1651
321-
322 delete this;-
323 }
executed 1654 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
  • ...
1654
324}
executed 2004 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
  • ...
2004
325-
326-
327void QFreetypeFace::computeSize(const QFontDef &fontDef, int *xsize, int *ysize, bool *outline_drawing)-
328{-
329 *ysize = qRound(fontDef.pixelSize * 64);-
330 *xsize = *ysize * fontDef.stretch / 100;-
331 *outline_drawing = false;-
332-
333 /*-
334 * Bitmap only faces must match exactly, so find the closest-
335 * one (height dominant search)-
336 */-
337 if (!(face->face_flags & FT_FACE_FLAG_SCALABLE)) {
!(face->face_f...& ( 1L << 0 ))Description
TRUEnever evaluated
FALSEevaluated 2010 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-2010
338 int best = 0;-
339 for (int i = 1; i < face->num_fixed_sizes; i++) {
i < face->num_fixed_sizesDescription
TRUEnever evaluated
FALSEnever evaluated
0
340 if (qAbs(*ysize - face->available_sizes[i].y_ppem) <
qAbs(*ysize - ...[best].y_ppem)Description
TRUEnever evaluated
FALSEnever evaluated
0
341 qAbs(*ysize - face->available_sizes[best].y_ppem) ||
qAbs(*ysize - ...[best].y_ppem)Description
TRUEnever evaluated
FALSEnever evaluated
0
342 (qAbs(*ysize - face->available_sizes[i].y_ppem) ==
qAbs(*ysize - ...[best].y_ppem)Description
TRUEnever evaluated
FALSEnever evaluated
0
343 qAbs(*ysize - face->available_sizes[best].y_ppem) &&
qAbs(*ysize - ...[best].y_ppem)Description
TRUEnever evaluated
FALSEnever evaluated
0
344 qAbs(*xsize - face->available_sizes[i].x_ppem) <
qAbs(*xsize - ...[best].x_ppem)Description
TRUEnever evaluated
FALSEnever evaluated
0
345 qAbs(*xsize - face->available_sizes[best].x_ppem))) {
qAbs(*xsize - ...[best].x_ppem)Description
TRUEnever evaluated
FALSEnever evaluated
0
346 best = i;-
347 }
never executed: end of block
0
348 }
never executed: end of block
0
349 if (FT_Set_Char_Size(face, face->available_sizes[best].x_ppem, face->available_sizes[best].y_ppem, 0, 0) == 0) {
FT_Set_Char_Si...em, 0, 0) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
350 *xsize = face->available_sizes[best].x_ppem;-
351 *ysize = face->available_sizes[best].y_ppem;-
352 } else {
never executed: end of block
0
353 int err = 1;-
354 if (!(face->face_flags & FT_FACE_FLAG_SCALABLE) && ysize == 0 && face->num_fixed_sizes >= 1) {
!(face->face_f...& ( 1L << 0 ))Description
TRUEnever evaluated
FALSEnever evaluated
ysize == 0Description
TRUEnever evaluated
FALSEnever evaluated
face->num_fixed_sizes >= 1Description
TRUEnever evaluated
FALSEnever evaluated
0
355 // work around FT 2.1.10 problem with BDF without PIXEL_SIZE property-
356 err = FT_Set_Pixel_Sizes(face, face->available_sizes[0].width, face->available_sizes[0].height);-
357 if (err && face->num_fixed_sizes == 1)
errDescription
TRUEnever evaluated
FALSEnever evaluated
face->num_fixed_sizes == 1Description
TRUEnever evaluated
FALSEnever evaluated
0
358 err = 0; //even more of a workaround...
never executed: err = 0;
0
359 }
never executed: end of block
0
360-
361 if (err)
errDescription
TRUEnever evaluated
FALSEnever evaluated
0
362 *xsize = *ysize = 0;
never executed: *xsize = *ysize = 0;
0
363 }
never executed: end of block
0
364 } else {-
365 *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 1926 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 1926 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-1926
366 }
executed 2010 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
  • ...
2010
367}-
368-
369QFontEngine::Properties QFreetypeFace::properties() const-
370{-
371 QFontEngine::Properties p;-
372 p.postscriptName = FT_Get_Postscript_Name(face);-
373 PS_FontInfoRec font_info;-
374 if (FT_Get_PS_Font_Info(face, &font_info) == 0)
FT_Get_PS_Font...ont_info) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
375 p.copyright = font_info.notice;
never executed: p.copyright = font_info.notice;
0
376 if (FT_IS_SCALABLE(face)) {
( face->face_f... ( 1L << 0 ) )Description
TRUEnever evaluated
FALSEnever evaluated
0
377 p.ascent = face->ascender;-
378 p.descent = -face->descender;-
379 p.leading = face->height - face->ascender + face->descender;-
380 p.emSquare = face->units_per_EM;-
381 p.boundingBox = QRectF(face->bbox.xMin, -face->bbox.yMax,-
382 face->bbox.xMax - face->bbox.xMin,-
383 face->bbox.yMax - face->bbox.yMin);-
384 } else {
never executed: end of block
0
385 p.ascent = QFixed::fromFixed(face->size->metrics.ascender);-
386 p.descent = QFixed::fromFixed(-face->size->metrics.descender);-
387 p.leading = QFixed::fromFixed(face->size->metrics.height - face->size->metrics.ascender + face->size->metrics.descender);-
388 p.emSquare = face->size->metrics.y_ppem;-
389// p.boundingBox = QRectF(-p.ascent.toReal(), 0, (p.ascent + p.descent).toReal(), face->size->metrics.max_advance/64.);-
390 p.boundingBox = QRectF(0, -p.ascent.toReal(),-
391 face->size->metrics.max_advance/64, (p.ascent + p.descent).toReal() );-
392 }
never executed: end of block
0
393 p.italicAngle = 0;-
394 p.capHeight = p.ascent;-
395 p.lineWidth = face->underline_thickness;-
396 return p;
never executed: return p;
0
397}-
398-
399bool QFreetypeFace::getSfntTable(uint tag, uchar *buffer, uint *length) const-
400{-
401 return ft_getSfntTable(face, tag, buffer, length);
never executed: return ft_getSfntTable(face, tag, buffer, length);
0
402}-
403-
404/* Some fonts (such as MingLiu rely on hinting to scale different-
405 components to their correct sizes. While this is really broken (it-
406 should be done in the component glyph itself, not the hinter) we-
407 will have to live with it.-
408-
409 This means we can not use FT_LOAD_NO_HINTING to get the glyph-
410 outline. All we can do is to load the unscaled glyph and scale it-
411 down manually when required.-
412*/-
413static void scaleOutline(FT_Face face, FT_GlyphSlot g, FT_Fixed x_scale, FT_Fixed y_scale)-
414{-
415 x_scale = FT_MulDiv(x_scale, 1 << 10, face->units_per_EM);-
416 y_scale = FT_MulDiv(y_scale, 1 << 10, face->units_per_EM);-
417 FT_Vector *p = g->outline.points;-
418 const FT_Vector *e = p + g->outline.n_points;-
419 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
420 p->x = FT_MulFix(p->x, x_scale);-
421 p->y = FT_MulFix(p->y, y_scale);-
422 ++p;-
423 }
executed 3260 times by 6 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
3260
424}
executed 163 times by 6 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
163
425-
426#define GLYPH2PATH_DEBUG QT_NO_QDEBUG_MACRO // qDebug-
427void QFreetypeFace::addGlyphToPath(FT_Face face, FT_GlyphSlot g, const QFixedPoint &point, QPainterPath *path, FT_Fixed x_scale, FT_Fixed y_scale)-
428{-
429 const qreal factor = 1/64.;-
430 scaleOutline(face, g, x_scale, y_scale);-
431-
432 QPointF cp = point.toPointF();-
433-
434 // convert the outline to a painter path-
435 int i = 0;-
436 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
437 int last_point = g->outline.contours[j];-
438 GLYPH2PATH_DEBUG() << "contour:" << i << "to" << last_point;
dead code: QMessageLogger().noDebug() << "contour:" << i << "to" << last_point;
-
439 QPointF start = QPointF(g->outline.points[i].x*factor, -g->outline.points[i].y*factor);-
440 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
441 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
442 GLYPH2PATH_DEBUG() << " start and end point are not on curve";
dead code: QMessageLogger().noDebug() << " start and end point are not on curve";
-
443 start = (QPointF(g->outline.points[last_point].x*factor,-
444 -g->outline.points[last_point].y*factor) + start) / 2.0;-
445 } else {
never executed: end of block
0
446 GLYPH2PATH_DEBUG() << " end point is on curve, start is not";
dead code: QMessageLogger().noDebug() << " end point is on curve, start is not";
-
447 start = QPointF(g->outline.points[last_point].x*factor,-
448 -g->outline.points[last_point].y*factor);-
449 }
never executed: end of block
0
450 --i; // to use original start point as control point below-
451 }
never executed: end of block
0
452 start += cp;-
453 GLYPH2PATH_DEBUG() << " start at" << start;
dead code: QMessageLogger().noDebug() << " start at" << start;
-
454-
455 path->moveTo(start);-
456 QPointF c[4];-
457 c[0] = start;-
458 int n = 1;-
459 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
460 ++i;-
461 c[n] = cp + QPointF(g->outline.points[i].x*factor, -g->outline.points[i].y*factor);-
462 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);
-
463 << ": 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);
-
464 ++n;-
465 switch (g->outline.tags[i] & 3) {-
466 case 2:
never executed: case 2:
0
467 // cubic bezier element-
468 if (n < 4)
n < 4Description
TRUEnever evaluated
FALSEnever evaluated
0
469 continue;
never executed: continue;
0
470 c[3] = (c[3] + c[2])/2;-
471 --i;-
472 break;
never executed: break;
0
473 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
474 // quadratic bezier element-
475 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
476 continue;
executed 1548 times by 6 tests: continue;
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
1548
477 c[3] = (c[1] + c[2])/2;-
478 c[2] = (2*c[1] + c[3])/3;-
479 c[1] = (2*c[1] + c[0])/3;-
480 --i;-
481 break;
executed 774 times by 6 tests: break;
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
774
482 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
483 case 3:
never executed: case 3:
0
484 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
485 GLYPH2PATH_DEBUG() << " lineTo" << c[1];
dead code: QMessageLogger().noDebug() << " lineTo" << c[1];
-
486 path->lineTo(c[1]);-
487 c[0] = c[1];-
488 n = 1;-
489 continue;
executed 834 times by 6 tests: continue;
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
834
490 } 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
491 c[3] = c[2];-
492 c[2] = (2*c[1] + c[3])/3;-
493 c[1] = (2*c[1] + c[0])/3;-
494 }
executed 662 times by 6 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
662
495 break;
executed 662 times by 6 tests: break;
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
662
496 }-
497 GLYPH2PATH_DEBUG() << " cubicTo" << c[1] << c[2] << c[3];
dead code: QMessageLogger().noDebug() << " cubicTo" << c[1] << c[2] << c[3];
-
498 path->cubicTo(c[1], c[2], c[3]);-
499 c[0] = c[3];-
500 n = 1;-
501 }
executed 1436 times by 6 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
1436
502-
503 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
504 GLYPH2PATH_DEBUG() << " closeSubpath";
dead code: QMessageLogger().noDebug() << " closeSubpath";
-
505 path->closeSubpath();-
506 } 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
507 c[3] = start;-
508 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
509 c[2] = (2*c[1] + c[3])/3;-
510 c[1] = (2*c[1] + c[0])/3;-
511 }
executed 112 times by 5 tests: end of block
Executed by:
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
112
512 GLYPH2PATH_DEBUG() << " close cubicTo" << c[1] << c[2] << c[3];
dead code: QMessageLogger().noDebug() << " close cubicTo" << c[1] << c[2] << c[3];
-
513 path->cubicTo(c[1], c[2], c[3]);-
514 }
executed 112 times by 5 tests: end of block
Executed by:
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
112
515 ++i;-
516 }
executed 216 times by 6 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
216
517}
executed 163 times by 6 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
163
518-
519extern void qt_addBitmapToPath(qreal x0, qreal y0, const uchar *image_data, int bpl, int w, int h, QPainterPath *path);-
520-
521void QFreetypeFace::addBitmapToPath(FT_GlyphSlot slot, const QFixedPoint &point, QPainterPath *path)-
522{-
523 if (slot->format != FT_GLYPH_FORMAT_BITMAP
slot->format !..._FORMAT_BITMAPDescription
TRUEnever evaluated
FALSEnever evaluated
0
524 || slot->bitmap.pixel_mode != FT_PIXEL_MODE_MONO)
slot->bitmap.p...IXEL_MODE_MONODescription
TRUEnever evaluated
FALSEnever evaluated
0
525 return;
never executed: return;
0
526-
527 QPointF cp = point.toPointF();-
528 qt_addBitmapToPath(cp.x() + TRUNC(slot->metrics.horiBearingX), cp.y() - TRUNC(slot->metrics.horiBearingY),-
529 slot->bitmap.buffer, slot->bitmap.pitch, slot->bitmap.width, slot->bitmap.rows, path);-
530}
never executed: end of block
0
531-
532QFontEngineFT::Glyph::~Glyph()-
533{-
534 delete [] data;-
535}
executed 11783 times by 119 tests: end of block
Executed by:
  • tst_QApplication
  • 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
  • tst_qcompleter - unknown status
  • ...
11783
536-
537struct LcdFilterDummy-
538{-
539 static inline void filterPixel(uchar &, uchar &, uchar &)-
540 {}-
541};-
542-
543struct LcdFilterLegacy-
544{-
545 static inline void filterPixel(uchar &red, uchar &green, uchar &blue)-
546 {-
547 uint r = red, g = green, b = blue;-
548 // intra-pixel filter used by the legacy filter (adopted from _ft_lcd_filter_legacy)-
549 red = (r * uint(65538 * 9/13) + g * uint(65538 * 1/6) + b * uint(65538 * 1/13)) / 65536;-
550 green = (r * uint(65538 * 3/13) + g * uint(65538 * 4/6) + b * uint(65538 * 3/13)) / 65536;-
551 blue = (r * uint(65538 * 1/13) + g * uint(65538 * 1/6) + b * uint(65538 * 9/13)) / 65536;-
552 }
never executed: end of block
0
553};-
554-
555template <typename LcdFilter>-
556static void convertRGBToARGB_helper(const uchar *src, uint *dst, int width, int height, int src_pitch, bool bgr)-
557{-
558 const int offs = bgr ? -1 : 1;-
559 const int w = width * 3;-
560 while (height--) {
height--Description
TRUEnever evaluated
FALSEnever evaluated
0
561 uint *dd = dst;-
562 for (int x = 0; x < w; x += 3) {
x < wDescription
TRUEnever evaluated
FALSEnever evaluated
0
563 uchar red = src[x + 1 - offs];-
564 uchar green = src[x + 1];-
565 uchar blue = src[x + 1 + offs];-
566 LcdFilter::filterPixel(red, green, blue);-
567 // alpha = green-
568 *dd++ = (green << 24) | (red << 16) | (green << 8) | blue;-
569 }
never executed: end of block
0
570 dst += width;-
571 src += src_pitch;-
572 }
never executed: end of block
0
573}
never executed: end of block
0
574-
575static inline void convertRGBToARGB(const uchar *src, uint *dst, int width, int height, int src_pitch, bool bgr, bool legacyFilter)-
576{-
577 if (!legacyFilter)
!legacyFilterDescription
TRUEnever evaluated
FALSEnever evaluated
0
578 convertRGBToARGB_helper<LcdFilterDummy>(src, dst, width, height, src_pitch, bgr);
never executed: convertRGBToARGB_helper<LcdFilterDummy>(src, dst, width, height, src_pitch, bgr);
0
579 else-
580 convertRGBToARGB_helper<LcdFilterLegacy>(src, dst, width, height, src_pitch, bgr);
never executed: convertRGBToARGB_helper<LcdFilterLegacy>(src, dst, width, height, src_pitch, bgr);
0
581}-
582-
583template <typename LcdFilter>-
584static void convertRGBToARGB_V_helper(const uchar *src, uint *dst, int width, int height, int src_pitch, bool bgr)-
585{-
586 const int offs = bgr ? -src_pitch : src_pitch;-
587 while (height--) {
height--Description
TRUEnever evaluated
FALSEnever evaluated
0
588 for (int x = 0; x < width; x++) {
x < widthDescription
TRUEnever evaluated
FALSEnever evaluated
0
589 uchar red = src[x + src_pitch - offs];-
590 uchar green = src[x + src_pitch];-
591 uchar blue = src[x + src_pitch + offs];-
592 LcdFilter::filterPixel(red, green, blue);-
593 // alpha = green-
594 *dst++ = (green << 24) | (red << 16) | (green << 8) | blue;-
595 }
never executed: end of block
0
596 src += 3*src_pitch;-
597 }
never executed: end of block
0
598}
never executed: end of block
0
599-
600static inline void convertRGBToARGB_V(const uchar *src, uint *dst, int width, int height, int src_pitch, bool bgr, bool legacyFilter)-
601{-
602 if (!legacyFilter)
!legacyFilterDescription
TRUEnever evaluated
FALSEnever evaluated
0
603 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
604 else-
605 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
606}-
607-
608static inline void convertGRAYToARGB(const uchar *src, uint *dst, int width, int height, int src_pitch)-
609{-
610 while (height--) {
height--Description
TRUEnever evaluated
FALSEnever evaluated
0
611 const uchar *p = src;-
612 const uchar * const e = p + width;-
613 while (p < e) {
p < eDescription
TRUEnever evaluated
FALSEnever evaluated
0
614 uchar gray = *p++;-
615 *dst++ = (0xFF << 24) | (gray << 16) | (gray << 8) | gray;-
616 }
never executed: end of block
0
617 src += src_pitch;-
618 }
never executed: end of block
0
619}
never executed: end of block
0
620-
621static void convoluteBitmap(const uchar *src, uchar *dst, int width, int height, int pitch)-
622{-
623 // convolute the bitmap with a triangle filter to get rid of color fringes-
624 // If we take account for a gamma value of 2, we end up with-
625 // weights of 1, 4, 9, 4, 1. We use an approximation of 1, 3, 8, 3, 1 here,-
626 // as this nicely sums up to 16 :)-
627 int h = height;-
628 while (h--) {
h--Description
TRUEnever evaluated
FALSEnever evaluated
0
629 dst[0] = dst[1] = 0;-
630 //-
631 for (int x = 2; x < width - 2; ++x) {
x < width - 2Description
TRUEnever evaluated
FALSEnever evaluated
0
632 uint sum = src[x-2] + 3*src[x-1] + 8*src[x] + 3*src[x+1] + src[x+2];-
633 dst[x] = (uchar) (sum >> 4);-
634 }
never executed: end of block
0
635 dst[width - 2] = dst[width - 1] = 0;-
636 src += pitch;-
637 dst += pitch;-
638 }
never executed: end of block
0
639}
never executed: end of block
0
640-
641QFontEngineFT::QFontEngineFT(const QFontDef &fd)-
642 : QFontEngine(Freetype)-
643{-
644 fontDef = fd;-
645 matrix.xx = 0x10000;-
646 matrix.yy = 0x10000;-
647 matrix.xy = 0;-
648 matrix.yx = 0;-
649 cache_cost = 100 * 1024;-
650 kerning_pairs_loaded = false;-
651 transform = false;-
652 embolden = false;-
653 obliquen = false;-
654 antialias = true;-
655 freetype = 0;-
656 default_load_flags = FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH;-
657 default_hint_style = ftInitialDefaultHintStyle;-
658 subpixelType = Subpixel_None;-
659 lcdFilterType = 0;-
660#if defined(FT_LCD_FILTER_H)-
661 lcdFilterType = (int)((quintptr) FT_LCD_FILTER_DEFAULT);-
662#endif-
663 defaultFormat = Format_None;-
664 embeddedbitmap = false;-
665 const QByteArray env = qgetenv("QT_NO_FT_CACHE");-
666 cacheEnabled = env.isEmpty() || env.toInt() == 0;
env.isEmpty()Description
TRUEevaluated 2012 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-2012
667 m_subPixelPositionCount = 4;-
668 forceAutoHint = false;-
669}
executed 2012 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
  • ...
2012
670-
671QFontEngineFT::~QFontEngineFT()-
672{-
673 if (freetype)
freetypeDescription
TRUEevaluated 2004 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-2004
674 freetype->release(face_id);
executed 2004 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
  • ...
2004
675}
executed 2006 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
  • ...
2006
676-
677bool QFontEngineFT::init(FaceId faceId, bool antialias, GlyphFormat format,-
678 const QByteArray &fontData)-
679{-
680 return init(faceId, antialias, format, QFreetypeFace::getFace(faceId, fontData));
executed 2008 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
  • ...
2008
681}-
682-
683bool QFontEngineFT::init(FaceId faceId, bool antialias, GlyphFormat format,-
684 QFreetypeFace *freetypeFace)-
685{-
686 freetype = freetypeFace;-
687 if (!freetype) {
!freetypeDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QRawFont
FALSEevaluated 2010 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-2010
688 xsize = 0;-
689 ysize = 0;-
690 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_QRawFont
2
691 }-
692 defaultFormat = format;-
693 this->antialias = antialias;-
694-
695 if (!antialias)
!antialiasDescription
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QStaticText
  • tst_QWizard
FALSEevaluated 2007 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-2007
696 glyphFormat = QFontEngine::Format_Mono;
executed 3 times by 2 tests: glyphFormat = QFontEngine::Format_Mono;
Executed by:
  • tst_QStaticText
  • tst_QWizard
3
697 else-
698 glyphFormat = defaultFormat;
executed 2007 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
  • ...
2007
699-
700 face_id = faceId;-
701-
702 symbol = freetype->symbol_map != 0;-
703 PS_FontInfoRec psrec;-
704 // don't assume that type1 fonts are symbol fonts by default-
705 if (FT_Get_PS_Font_Info(freetype->face, &psrec) == FT_Err_Ok) {
FT_Get_PS_Font...) == FT_Err_OkDescription
TRUEevaluated 80 times by 7 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QLabel
  • tst_QPushButton
  • tst_QTextLayout
FALSEevaluated 1930 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
  • ...
80-1930
706 symbol = bool(fontDef.family.contains(QLatin1String("symbol"), Qt::CaseInsensitive));-
707 }
executed 80 times by 7 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QLabel
  • tst_QPushButton
  • tst_QTextLayout
80
708-
709 freetype->computeSize(fontDef, &xsize, &ysize, &defaultGlyphSet.outline_drawing);-
710-
711 FT_Face face = lockFace();-
712-
713 if (FT_IS_SCALABLE(face)) {
( face->face_f... ( 1L << 0 ) )Description
TRUEevaluated 2010 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-2010
714 bool fake_oblique = (fontDef.style != QFont::StyleNormal) && !(face->style_flags & FT_STYLE_FLAG_ITALIC);
(fontDef.style...::StyleNormal)Description
TRUEevaluated 190 times by 4 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QItemDelegate
  • tst_QTextLayout
FALSEevaluated 1820 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 190 times by 4 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QItemDelegate
  • tst_QTextLayout
0-1820
715 if (fake_oblique)
fake_obliqueDescription
TRUEnever evaluated
FALSEevaluated 2010 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-2010
716 obliquen = true;
never executed: obliquen = true;
0
717 FT_Set_Transform(face, &matrix, 0);-
718 freetype->matrix = matrix;-
719 // fake bold-
720 if ((fontDef.weight >= QFont::Bold) && !(face->style_flags & FT_STYLE_FLAG_BOLD) && !FT_IS_FIXED_WIDTH(face)) {
(fontDef.weigh...= QFont::Bold)Description
TRUEevaluated 251 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 1759 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 251 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-1759
721 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
722 if (os2->usWeightClass < 750)
os2->usWeightClass < 750Description
TRUEnever evaluated
FALSEnever evaluated
0
723 embolden = true;
never executed: embolden = true;
0
724 }
never executed: end of block
0
725 }
never executed: end of block
0
726 // underline metrics-
727 line_thickness = QFixed::fromFixed(FT_MulFix(face->underline_thickness, face->size->metrics.y_scale));-
728 underline_position = QFixed::fromFixed(-FT_MulFix(face->underline_position, face->size->metrics.y_scale));-
729 } else {
executed 2010 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
  • ...
2010
730 // ad hoc algorithm-
731 int score = fontDef.weight * fontDef.pixelSize;-
732 line_thickness = score / 700;-
733 // looks better with thicker line for small pointsizes-
734 if (line_thickness < 2 && score >= 1050)
line_thickness < 2Description
TRUEnever evaluated
FALSEnever evaluated
score >= 1050Description
TRUEnever evaluated
FALSEnever evaluated
0
735 line_thickness = 2;
never executed: line_thickness = 2;
0
736 underline_position = ((line_thickness * 2) + 3) / 6;-
737 }
never executed: end of block
0
738 if (line_thickness < 1)
line_thickness < 1Description
TRUEevaluated 1715 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 295 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
295-1715
739 line_thickness = 1;
executed 1715 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
  • ...
1715
740-
741 metrics = face->size->metrics;-
742-
743 /*-
744 TrueType fonts with embedded bitmaps may have a bitmap font specific-
745 ascent/descent in the EBLC table. There is no direct public API-
746 to extract those values. The only way we've found is to trick freetype-
747 into thinking that it's not a scalable font in FT_SelectSize so that-
748 the metrics are retrieved from the bitmap strikes.-
749 */-
750 if (FT_IS_SCALABLE(face)) {
( face->face_f... ( 1L << 0 ) )Description
TRUEevaluated 2010 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-2010
751 for (int i = 0; i < face->num_fixed_sizes; ++i) {
i < face->num_fixed_sizesDescription
TRUEnever evaluated
FALSEevaluated 2010 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-2010
752 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
753 face->face_flags &= ~FT_FACE_FLAG_SCALABLE;-
754-
755 FT_Select_Size(face, i);-
756 if (face->size->metrics.ascender + face->size->metrics.descender > 0) {
face->size->me....descender > 0Description
TRUEnever evaluated
FALSEnever evaluated
0
757 metrics.ascender = face->size->metrics.ascender;-
758 metrics.descender = face->size->metrics.descender;-
759 }
never executed: end of block
0
760 FT_Set_Char_Size(face, xsize, ysize, 0, 0);-
761-
762 face->face_flags |= FT_FACE_FLAG_SCALABLE;-
763 break;
never executed: break;
0
764 }-
765 }
never executed: end of block
0
766 }
executed 2010 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
  • ...
2010
767-
768 fontDef.styleName = QString::fromUtf8(face->style_name);-
769-
770 if (!freetype->hbFace) {
!freetype->hbFaceDescription
TRUEevaluated 1660 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 350 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
350-1660
771 faceData.user_data = face;-
772 faceData.get_font_table = ft_getSfntTable;-
773 freetype->hbFace = harfbuzzFace();-
774 freetype->hbFace_destroy_func = face_destroy_func;-
775 } else {
executed 1660 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
  • ...
1660
776 Q_ASSERT(!face_);-
777 face_ = freetype->hbFace;-
778 }
executed 350 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
350
779 face_destroy_func = 0; // we share the HB face in QFreeTypeFace, so do not let ~QFontEngine() destroy it-
780-
781 unlockFace();-
782-
783 fsType = freetype->fsType();-
784 return true;
executed 2010 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
  • ...
2010
785}-
786-
787void QFontEngineFT::setQtDefaultHintStyle(QFont::HintingPreference hintingPreference)-
788{-
789 switch (hintingPreference) {-
790 case QFont::PreferNoHinting:
executed 311 times by 1 test: case QFont::PreferNoHinting:
Executed by:
  • tst_QRawFont
311
791 setDefaultHintStyle(HintNone);-
792 break;
executed 311 times by 1 test: break;
Executed by:
  • tst_QRawFont
311
793 case QFont::PreferFullHinting:
executed 311 times by 1 test: case QFont::PreferFullHinting:
Executed by:
  • tst_QRawFont
311
794 setDefaultHintStyle(HintFull);-
795 break;
executed 311 times by 1 test: break;
Executed by:
  • tst_QRawFont
311
796 case QFont::PreferVerticalHinting:
executed 311 times by 1 test: case QFont::PreferVerticalHinting:
Executed by:
  • tst_QRawFont
311
797 setDefaultHintStyle(HintLight);-
798 break;
executed 311 times by 1 test: break;
Executed by:
  • tst_QRawFont
311
799 case QFont::PreferDefaultHinting:
executed 314 times by 1 test: case QFont::PreferDefaultHinting:
Executed by:
  • tst_QRawFont
314
800 setDefaultHintStyle(ftInitialDefaultHintStyle);-
801 break;
executed 314 times by 1 test: break;
Executed by:
  • tst_QRawFont
314
802 }-
803}
executed 1247 times by 1 test: end of block
Executed by:
  • tst_QRawFont
1247
804-
805void QFontEngineFT::setDefaultHintStyle(HintStyle style)-
806{-
807 default_hint_style = style;-
808}
executed 3253 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
  • ...
3253
809-
810int QFontEngineFT::loadFlags(QGlyphSet *set, GlyphFormat format, int flags,-
811 bool &hsubpixel, int &vfactor) const-
812{-
813 int load_flags = FT_LOAD_DEFAULT | default_load_flags;-
814 int load_target = default_hint_style == HintLight
default_hint_s...e == HintLightDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QRawFont
FALSEevaluated 25766 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-25766
815 ? FT_LOAD_TARGET_LIGHT-
816 : FT_LOAD_TARGET_NORMAL;-
817-
818 if (format == Format_Mono) {
format == Format_MonoDescription
TRUEevaluated 114 times by 3 tests
Evaluated by:
  • tst_QPainter
  • tst_QStaticText
  • tst_QWizard
FALSEevaluated 25666 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-25666
819 load_target = FT_LOAD_TARGET_MONO;-
820 } 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 25666 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-25666
821 if (subpixelType == Subpixel_RGB || subpixelType == Subpixel_BGR) {
subpixelType == Subpixel_RGBDescription
TRUEnever evaluated
FALSEnever evaluated
subpixelType == Subpixel_BGRDescription
TRUEnever evaluated
FALSEnever evaluated
0
822 if (default_hint_style == HintFull)
default_hint_style == HintFullDescription
TRUEnever evaluated
FALSEnever evaluated
0
823 load_target = FT_LOAD_TARGET_LCD;
never executed: load_target = ( (FT_Int32)( (FT_RENDER_MODE_LCD) & 15 ) << 16 );
0
824 hsubpixel = true;-
825 } 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
826 if (default_hint_style == HintFull)
default_hint_style == HintFullDescription
TRUEnever evaluated
FALSEnever evaluated
0
827 load_target = FT_LOAD_TARGET_LCD_V;
never executed: load_target = ( (FT_Int32)( (FT_RENDER_MODE_LCD_V) & 15 ) << 16 );
0
828 vfactor = 3;-
829 }
never executed: end of block
0
830 }
never executed: end of block
0
831-
832 if (set && set->outline_drawing)
setDescription
TRUEevaluated 25780 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 41 times by 4 tests
Evaluated by:
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QPainter
  • tst_QToolTip
FALSEevaluated 25739 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-25780
833 load_flags |= FT_LOAD_NO_BITMAP;
executed 41 times by 4 tests: load_flags |= ( 1L << 3 );
Executed by:
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QPainter
  • tst_QToolTip
41
834-
835 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 24725 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 24725 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 24725 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 41 times by 4 tests
Evaluated by:
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QPainter
  • tst_QToolTip
FALSEevaluated 24684 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-24725
836 load_flags |= FT_LOAD_NO_HINTING;
executed 1096 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
1096
837 else-
838 load_flags |= load_target;
executed 24684 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
  • ...
24684
839-
840 if (forceAutoHint)
forceAutoHintDescription
TRUEnever evaluated
FALSEevaluated 25780 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-25780
841 load_flags |= FT_LOAD_FORCE_AUTOHINT;
never executed: load_flags |= ( 1L << 5 );
0
842-
843 return load_flags;
executed 25780 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
  • ...
25780
844}-
845-
846static inline bool areMetricsTooLarge(const QFontEngineFT::GlyphInfo &info)-
847{-
848 // false if exceeds QFontEngineFT::Glyph metrics-
849 return (short)(info.linearAdvance) != info.linearAdvance
executed 25778 times by 114 tests: return (short)(info.linearAdvance) != info.linearAdvance || (signed char)(info.xOff) != info.xOff || (uchar)(info.width) != info.width || (uchar)(info.height) != info.height || (signed char)(info.x) != info.x || (signed char)(info.y) != info.y;
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
  • ...
(short)(info.l....linearAdvanceDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QFontDatabase
FALSEevaluated 25768 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
  • ...
10-25778
850 || (signed char)(info.xOff) != info.xOff
executed 25778 times by 114 tests: return (short)(info.linearAdvance) != info.linearAdvance || (signed char)(info.xOff) != info.xOff || (uchar)(info.width) != info.width || (uchar)(info.height) != info.height || (signed char)(info.x) != info.x || (signed char)(info.y) != info.y;
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
  • ...
(signed char)(...) != info.xOffDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QFontDatabase
FALSEevaluated 25762 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
  • ...
6-25778
851 || (uchar)(info.width) != info.width
executed 25778 times by 114 tests: return (short)(info.linearAdvance) != info.linearAdvance || (signed char)(info.xOff) != info.xOff || (uchar)(info.width) != info.width || (uchar)(info.height) != info.height || (signed char)(info.x) != info.x || (signed char)(info.y) != info.y;
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
  • ...
(uchar)(info.w... != info.widthDescription
TRUEnever evaluated
FALSEevaluated 25762 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-25778
852 || (uchar)(info.height) != info.height
executed 25778 times by 114 tests: return (short)(info.linearAdvance) != info.linearAdvance || (signed char)(info.xOff) != info.xOff || (uchar)(info.width) != info.width || (uchar)(info.height) != info.height || (signed char)(info.x) != info.x || (signed char)(info.y) != info.y;
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
  • ...
(uchar)(info.h...!= info.heightDescription
TRUEnever evaluated
FALSEevaluated 25762 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-25778
853 || (signed char)(info.x) != info.x
executed 25778 times by 114 tests: return (short)(info.linearAdvance) != info.linearAdvance || (signed char)(info.xOff) != info.xOff || (uchar)(info.width) != info.width || (uchar)(info.height) != info.height || (signed char)(info.x) != info.x || (signed char)(info.y) != info.y;
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
  • ...
(signed char)(...o.x) != info.xDescription
TRUEnever evaluated
FALSEevaluated 25762 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-25778
854 || (signed char)(info.y) != info.y;
executed 25778 times by 114 tests: return (short)(info.linearAdvance) != info.linearAdvance || (signed char)(info.xOff) != info.xOff || (uchar)(info.width) != info.width || (uchar)(info.height) != info.height || (signed char)(info.x) != info.x || (signed char)(info.y) != info.y;
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
  • ...
(signed char)(...o.y) != info.yDescription
TRUEnever evaluated
FALSEevaluated 25762 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-25778
855}-
856-
857QFontEngineFT::Glyph *QFontEngineFT::loadGlyph(QGlyphSet *set, uint glyph,-
858 QFixed subPixelPosition,-
859 GlyphFormat format,-
860 bool fetchMetricsOnly) const-
861{-
862// Q_ASSERT(freetype->lock == 1);-
863-
864 if (format == Format_None)
format == Format_NoneDescription
TRUEevaluated 7447 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 18333 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
  • ...
7447-18333
865 format = defaultFormat != Format_None ? defaultFormat : Format_Mono;
executed 7447 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 7447 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-7447
866 Q_ASSERT(format != Format_None);-
867-
868 Glyph *g = set ? set->getGlyph(glyph, subPixelPosition) : 0;
setDescription
TRUEevaluated 25780 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-25780
869 if (g && g->format == format && (fetchMetricsOnly || g->data))
gDescription
TRUEevaluated 13533 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 12247 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 13532 times by 55 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 13532 times by 55 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 13532 times by 55 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-13533
870 return g;
never executed: return g;
0
871-
872 if (!g && set && set->isGlyphMissing(glyph))
!gDescription
TRUEevaluated 12247 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 13533 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
  • ...
setDescription
TRUEevaluated 12247 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 12247 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-13533
873 return &emptyGlyph;
never executed: return &emptyGlyph;
0
874-
875-
876 FT_Face face = freetype->face;-
877-
878 FT_Matrix matrix = freetype->matrix;-
879-
880 FT_Vector v;-
881 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 25666 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-25666
882 v.y = 0;-
883 FT_Set_Transform(face, &matrix, &v);-
884-
885 bool hsubpixel = false;-
886 int vfactor = 1;-
887 int load_flags = loadFlags(set, format, 0, hsubpixel, vfactor);-
888-
889 bool transform = matrix.xx != 0x10000
matrix.xx != 0x10000Description
TRUEevaluated 2552 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
FALSEevaluated 23228 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
  • ...
2552-23228
890 || matrix.yy != 0x10000
matrix.yy != 0x10000Description
TRUEnever evaluated
FALSEevaluated 23228 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-23228
891 || matrix.xy != 0
matrix.xy != 0Description
TRUEnever evaluated
FALSEevaluated 23228 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-23228
892 || matrix.yx != 0;
matrix.yx != 0Description
TRUEnever evaluated
FALSEevaluated 23228 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-23228
893-
894 if (transform || (format != Format_Mono && !embeddedbitmap))
transformDescription
TRUEevaluated 2552 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
FALSEevaluated 23228 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 23114 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
!embeddedbitmapDescription
TRUEevaluated 23114 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-23228
895 load_flags |= FT_LOAD_NO_BITMAP;
executed 25666 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
  • ...
25666
896-
897 FT_Error err = FT_Load_Glyph(face, glyph, load_flags);-
898 if (err && (load_flags & FT_LOAD_NO_BITMAP)) {
errDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QGlyphRun
FALSEevaluated 25778 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-25778
899 load_flags &= ~FT_LOAD_NO_BITMAP;-
900 err = FT_Load_Glyph(face, glyph, load_flags);-
901 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QGlyphRun
2
902 if (err == FT_Err_Too_Few_Arguments) {
err == FT_Err_..._Few_ArgumentsDescription
TRUEnever evaluated
FALSEevaluated 25780 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-25780
903 // this is an error in the bytecode interpreter, just try to run without it-
904 load_flags |= FT_LOAD_FORCE_AUTOHINT;-
905 err = FT_Load_Glyph(face, glyph, load_flags);-
906 } else if (err == FT_Err_Execution_Too_Long) {
never executed: end of block
err == FT_Err_...ution_Too_LongDescription
TRUEnever evaluated
FALSEevaluated 25780 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-25780
907 // This is an error in the bytecode, probably a web font made by someone who-
908 // didn't test bytecode hinting at all so disable for it for all glyphs.-
909 qWarning("load glyph failed due to broken hinting bytecode in font, switching to auto hinting");-
910 default_load_flags |= FT_LOAD_FORCE_AUTOHINT;-
911 load_flags |= FT_LOAD_FORCE_AUTOHINT;-
912 err = FT_Load_Glyph(face, glyph, load_flags);-
913 }
never executed: end of block
0
914 if (err != FT_Err_Ok) {
err != FT_Err_OkDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QGlyphRun
FALSEevaluated 25778 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-25778
915 qWarning("load glyph failed err=%x face=%p, glyph=%d", err, face, glyph);-
916 if (set)
setDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QGlyphRun
FALSEnever evaluated
0-2
917 set->setGlyphMissing(glyph);
executed 2 times by 1 test: set->setGlyphMissing(glyph);
Executed by:
  • tst_QGlyphRun
2
918 return &emptyGlyph;
executed 2 times by 1 test: return &emptyGlyph;
Executed by:
  • tst_QGlyphRun
2
919 }-
920-
921 FT_GlyphSlot slot = face->glyph;-
922-
923 if (embolden)
emboldenDescription
TRUEnever evaluated
FALSEevaluated 25778 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-25778
924 FT_GlyphSlot_Embolden(slot);
never executed: FT_GlyphSlot_Embolden(slot);
0
925 if (obliquen) {
obliquenDescription
TRUEnever evaluated
FALSEevaluated 25778 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-25778
926 FT_GlyphSlot_Oblique(slot);-
927-
928 // While Embolden alters the metrics of the slot, oblique does not, so we need-
929 // to fix this ourselves.-
930 transform = true;-
931 FT_Matrix m;-
932 m.xx = 0x10000;-
933 m.yx = 0x0;-
934 m.xy = 0x6000;-
935 m.yy = 0x10000;-
936-
937 FT_Matrix_Multiply(&m, &matrix);-
938 }
never executed: end of block
0
939-
940 GlyphInfo info;-
941 info.linearAdvance = slot->linearHoriAdvance >> 10;-
942 info.xOff = TRUNC(ROUND(slot->advance.x));-
943 info.yOff = 0;-
944-
945 if ((set && set->outline_drawing) || fetchMetricsOnly) {
setDescription
TRUEevaluated 25778 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 41 times by 4 tests
Evaluated by:
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QPainter
  • tst_QToolTip
FALSEevaluated 25737 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 7405 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 18332 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-25778
946 int left = FLOOR(slot->metrics.horiBearingX);-
947 int right = CEIL(slot->metrics.horiBearingX + slot->metrics.width);-
948 int top = CEIL(slot->metrics.horiBearingY);-
949 int bottom = FLOOR(slot->metrics.horiBearingY - slot->metrics.height);-
950 info.x = TRUNC(left);-
951 info.y = TRUNC(top);-
952 info.width = TRUNC(right - left);-
953 info.height = TRUNC(top - bottom);-
954-
955 // If any of the metrics are too large to fit, don't cache them-
956 if (areMetricsTooLarge(info))
areMetricsTooLarge(info)Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_QFontDatabase
FALSEevaluated 7430 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
  • ...
16-7430
957 return 0;
executed 16 times by 1 test: return 0;
Executed by:
  • tst_QFontDatabase
16
958-
959 g = new Glyph;-
960 g->data = 0;-
961 g->linearAdvance = info.linearAdvance;-
962 g->width = info.width;-
963 g->height = info.height;-
964 g->x = info.x;-
965 g->y = info.y;-
966 g->advance = info.xOff;-
967 g->format = format;-
968-
969 if (set)
setDescription
TRUEevaluated 7430 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-7430
970 set->setGlyph(glyph, subPixelPosition, g);
executed 7430 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
  • ...
7430
971-
972 return g;
executed 7430 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
  • ...
7430
973 }-
974-
975 int glyph_buffer_size = 0;-
976 QScopedArrayPointer<uchar> glyph_buffer;-
977#if defined(QT_USE_FREETYPE_LCDFILTER)-
978 bool useFreetypeRenderGlyph = false;-
979 if (slot->format == FT_GLYPH_FORMAT_OUTLINE && (hsubpixel || vfactor != 1)) {
slot->format =...FORMAT_OUTLINEDescription
TRUEevaluated 18332 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 18332 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 18332 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-18332
980 err = FT_Library_SetLcdFilter(slot->library, (FT_LcdFilter)lcdFilterType);-
981 if (err == FT_Err_Ok)
err == FT_Err_OkDescription
TRUEnever evaluated
FALSEnever evaluated
0
982 useFreetypeRenderGlyph = true;
never executed: useFreetypeRenderGlyph = true;
0
983 }
never executed: end of block
0
984-
985 if (useFreetypeRenderGlyph) {
useFreetypeRenderGlyphDescription
TRUEnever evaluated
FALSEevaluated 18332 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-18332
986 err = FT_Render_Glyph(slot, hsubpixel ? FT_RENDER_MODE_LCD : FT_RENDER_MODE_LCD_V);-
987-
988 if (err != FT_Err_Ok)
err != FT_Err_OkDescription
TRUEnever evaluated
FALSEnever evaluated
0
989 qWarning("render glyph failed err=%x face=%p, glyph=%d", err, face, glyph);
never executed: QMessageLogger(__FILE__, 989, __PRETTY_FUNCTION__).warning("render glyph failed err=%x face=%p, glyph=%d", err, face, glyph);
0
990-
991 FT_Library_SetLcdFilter(slot->library, FT_LCD_FILTER_NONE);-
992-
993 info.height = slot->bitmap.rows / vfactor;-
994 info.width = hsubpixel ? slot->bitmap.width / 3 : slot->bitmap.width;
hsubpixelDescription
TRUEnever evaluated
FALSEnever evaluated
0
995 info.x = slot->bitmap_left;-
996 info.y = slot->bitmap_top;-
997-
998 glyph_buffer_size = info.width * info.height * 4;-
999 glyph_buffer.reset(new uchar[glyph_buffer_size]);-
1000-
1001 if (hsubpixel)
hsubpixelDescription
TRUEnever evaluated
FALSEnever evaluated
0
1002 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
1003 else if (vfactor != 1)
vfactor != 1Description
TRUEnever evaluated
FALSEnever evaluated
0
1004 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
1005 } else
never executed: end of block
0
1006#endif-
1007 {-
1008 int left = slot->metrics.horiBearingX;-
1009 int right = slot->metrics.horiBearingX + slot->metrics.width;-
1010 int top = slot->metrics.horiBearingY;-
1011 int bottom = slot->metrics.horiBearingY - slot->metrics.height;-
1012 if(transform && slot->format != FT_GLYPH_FORMAT_BITMAP) {
transformDescription
TRUEevaluated 2552 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
FALSEevaluated 15780 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 2552 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
FALSEnever evaluated
0-15780
1013 int l, r, t, b;-
1014 FT_Vector vector;-
1015 vector.x = left;-
1016 vector.y = top;-
1017 FT_Vector_Transform(&vector, &matrix);-
1018 l = r = vector.x;-
1019 t = b = vector.y;-
1020 vector.x = right;-
1021 vector.y = top;-
1022 FT_Vector_Transform(&vector, &matrix);-
1023 if (l > vector.x) l = vector.x;
executed 656 times by 1 test: l = vector.x;
Executed by:
  • tst_QGraphicsView
l > vector.xDescription
TRUEevaluated 656 times by 1 test
Evaluated by:
  • tst_QGraphicsView
FALSEevaluated 1896 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
656-1896
1024 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 1273 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
1273-1279
1025 if (t < vector.y) t = vector.y;
executed 736 times by 3 tests: t = vector.y;
Executed by:
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QTabWidget
t < vector.yDescription
TRUEevaluated 736 times by 3 tests
Evaluated by:
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QTabWidget
FALSEevaluated 1816 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
736-1816
1026 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 1864 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
688-1864
1027 vector.x = right;-
1028 vector.y = bottom;-
1029 FT_Vector_Transform(&vector, &matrix);-
1030 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 1962 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
590-1962
1031 if (r < vector.x) r = vector.x;
executed 631 times by 3 tests: r = vector.x;
Executed by:
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QTabWidget
r < vector.xDescription
TRUEevaluated 631 times by 3 tests
Evaluated by:
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QTabWidget
FALSEevaluated 1921 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
631-1921
1032 if (t < vector.y) t = vector.y;
executed 572 times by 1 test: t = vector.y;
Executed by:
  • tst_QGraphicsView
t < vector.yDescription
TRUEevaluated 572 times by 1 test
Evaluated by:
  • tst_QGraphicsView
FALSEevaluated 1980 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
572-1980
1033 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 1366 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
1186-1366
1034 vector.x = left;-
1035 vector.y = bottom;-
1036 FT_Vector_Transform(&vector, &matrix);-
1037 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 2218 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
334-2218
1038 if (r < vector.x) r = vector.x;
executed 320 times by 1 test: r = vector.x;
Executed by:
  • tst_QGraphicsView
r < vector.xDescription
TRUEevaluated 320 times by 1 test
Evaluated by:
  • tst_QGraphicsView
FALSEevaluated 2232 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
320-2232
1039 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 2296 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
256-2296
1040 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 2232 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
320-2232
1041 left = l;-
1042 right = r;-
1043 top = t;-
1044 bottom = b;-
1045 }
executed 2552 times by 7 tests: end of block
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
2552
1046 left = FLOOR(left);-
1047 right = CEIL(right);-
1048 bottom = FLOOR(bottom);-
1049 top = CEIL(top);-
1050-
1051 int hpixels = TRUNC(right - left);-
1052 // subpixel position requires one more pixel-
1053 if (subPixelPosition > 0 && format != Format_Mono)
subPixelPosition > 0Description
TRUEevaluated 50 times by 1 test
Evaluated by:
  • tst_QPainter
FALSEevaluated 18282 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-18282
1054 hpixels++;
executed 50 times by 1 test: hpixels++;
Executed by:
  • tst_QPainter
50
1055-
1056 if (hsubpixel)
hsubpixelDescription
TRUEnever evaluated
FALSEevaluated 18332 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-18332
1057 hpixels = hpixels*3 + 8;
never executed: hpixels = hpixels*3 + 8;
0
1058 info.width = hpixels;-
1059 info.height = TRUNC(top - bottom);-
1060 info.x = TRUNC(left);-
1061 info.y = TRUNC(top);-
1062 if (hsubpixel) {
hsubpixelDescription
TRUEnever evaluated
FALSEevaluated 18332 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-18332
1063 info.width /= 3;-
1064 info.x -= 1;-
1065 }
never executed: end of block
0
1066-
1067 // If any of the metrics are too large to fit, don't cache them-
1068 if (areMetricsTooLarge(info))
areMetricsTooLarge(info)Description
TRUEnever evaluated
FALSEevaluated 18332 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-18332
1069 return 0;
never executed: return 0;
0
1070-
1071 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 18266 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-18266
1072 (format == Format_A8 ? (info.width + 3) & ~3 : info.width * 4));
format == Format_A8Description
TRUEevaluated 18266 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-18266
1073 if (glyph_buffer_size < pitch * info.height) {
glyph_buffer_s... * info.heightDescription
TRUEevaluated 4599 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 13733 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
  • ...
4599-13733
1074 glyph_buffer_size = pitch * info.height;-
1075 glyph_buffer.reset(new uchar[glyph_buffer_size]);-
1076 memset(glyph_buffer.data(), 0, glyph_buffer_size);-
1077 }
executed 4599 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
  • ...
4599
1078-
1079 if (slot->format == FT_GLYPH_FORMAT_OUTLINE) {
slot->format =...FORMAT_OUTLINEDescription
TRUEevaluated 18332 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-18332
1080 FT_Bitmap bitmap;-
1081 bitmap.rows = info.height*vfactor;-
1082 bitmap.width = hpixels;-
1083 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 18266 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-18266
1084 int bitmap_buffer_size = bitmap.rows * bitmap.pitch;-
1085 if (!hsubpixel && vfactor == 1 && format != Format_A32) {
!hsubpixelDescription
TRUEevaluated 18332 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 18332 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 18332 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-18332
1086 Q_ASSERT(glyph_buffer_size <= bitmap_buffer_size);-
1087 bitmap.buffer = glyph_buffer.data();-
1088 } else {
executed 18332 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
  • ...
18332
1089 bitmap.buffer = new uchar[bitmap_buffer_size];-
1090 memset(bitmap.buffer, 0, bitmap_buffer_size);-
1091 }
never executed: end of block
0
1092 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 18266 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-18266
1093 FT_Matrix matrix;-
1094 matrix.xx = (hsubpixel ? 3 : 1) << 16;
hsubpixelDescription
TRUEnever evaluated
FALSEevaluated 18332 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-18332
1095 matrix.yy = vfactor << 16;-
1096 matrix.yx = matrix.xy = 0;-
1097-
1098 FT_Outline_Transform(&slot->outline, &matrix);-
1099 FT_Outline_Translate (&slot->outline, (hsubpixel ? -3*left +(4<<6) : -left), -bottom*vfactor);-
1100 FT_Outline_Get_Bitmap(slot->library, &slot->outline, &bitmap);-
1101 if (hsubpixel) {
hsubpixelDescription
TRUEnever evaluated
FALSEevaluated 18332 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-18332
1102 Q_ASSERT (bitmap.pixel_mode == FT_PIXEL_MODE_GRAY);-
1103 Q_ASSERT(antialias);-
1104 uchar *convoluted = new uchar[bitmap_buffer_size];-
1105 bool useLegacyLcdFilter = false;-
1106#if defined(FC_LCD_FILTER) && defined(FT_LCD_FILTER_H)-
1107 useLegacyLcdFilter = (lcdFilterType == FT_LCD_FILTER_LEGACY);-
1108#endif-
1109 uchar *buffer = bitmap.buffer;-
1110 if (!useLegacyLcdFilter) {
!useLegacyLcdFilterDescription
TRUEnever evaluated
FALSEnever evaluated
0
1111 convoluteBitmap(bitmap.buffer, convoluted, bitmap.width, info.height, bitmap.pitch);-
1112 buffer = convoluted;-
1113 }
never executed: end of block
0
1114 convertRGBToARGB(buffer + 1, (uint *)glyph_buffer.data(), info.width, info.height, bitmap.pitch, subpixelType != Subpixel_RGB, useLegacyLcdFilter);-
1115 delete [] convoluted;-
1116 } else if (vfactor != 1) {
never executed: end of block
vfactor != 1Description
TRUEnever evaluated
FALSEevaluated 18332 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-18332
1117 convertRGBToARGB_V(bitmap.buffer, (uint *)glyph_buffer.data(), info.width, info.height, bitmap.pitch, subpixelType != Subpixel_VRGB, true);-
1118 } else if (format == Format_A32 && bitmap.pixel_mode == FT_PIXEL_MODE_GRAY) {
never executed: end of block
format == Format_A32Description
TRUEnever evaluated
FALSEevaluated 18332 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-18332
1119 convertGRAYToARGB(bitmap.buffer, (uint *)glyph_buffer.data(), info.width, info.height, bitmap.pitch);-
1120 }
never executed: end of block
0
1121-
1122 if (bitmap.buffer != glyph_buffer.data())
bitmap.buffer ..._buffer.data()Description
TRUEnever evaluated
FALSEevaluated 18332 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-18332
1123 delete [] bitmap.buffer;
never executed: delete [] bitmap.buffer;
0
1124 } else if (slot->format == FT_GLYPH_FORMAT_BITMAP) {
executed 18332 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-18332
1125 Q_ASSERT(slot->bitmap.pixel_mode == FT_PIXEL_MODE_MONO);-
1126 uchar *src = slot->bitmap.buffer;-
1127 uchar *dst = glyph_buffer.data();-
1128 int h = slot->bitmap.rows;-
1129 if (format == Format_Mono) {
format == Format_MonoDescription
TRUEnever evaluated
FALSEnever evaluated
0
1130 int bytes = ((info.width + 7) & ~7) >> 3;-
1131 while (h--) {
h--Description
TRUEnever evaluated
FALSEnever evaluated
0
1132 memcpy (dst, src, bytes);-
1133 dst += pitch;-
1134 src += slot->bitmap.pitch;-
1135 }
never executed: end of block
0
1136 } else {
never executed: end of block
0
1137 if (hsubpixel) {
hsubpixelDescription
TRUEnever evaluated
FALSEnever evaluated
0
1138 while (h--) {
h--Description
TRUEnever evaluated
FALSEnever evaluated
0
1139 uint *dd = (uint *)dst;-
1140 *dd++ = 0;-
1141 for (int x = 0; x < static_cast<int>(slot->bitmap.width); x++) {
x < static_cas...>bitmap.width)Description
TRUEnever evaluated
FALSEnever evaluated
0
1142 uint a = ((src[x >> 3] & (0x80 >> (x & 7))) ? 0xffffff : 0x000000);
(src[x >> 3] &...0 >> (x & 7)))Description
TRUEnever evaluated
FALSEnever evaluated
0
1143 *dd++ = a;-
1144 }
never executed: end of block
0
1145 *dd++ = 0;-
1146 dst += pitch;-
1147 src += slot->bitmap.pitch;-
1148 }
never executed: end of block
0
1149 } else if (vfactor != 1) {
never executed: end of block
vfactor != 1Description
TRUEnever evaluated
FALSEnever evaluated
0
1150 while (h--) {
h--Description
TRUEnever evaluated
FALSEnever evaluated
0
1151 uint *dd = (uint *)dst;-
1152 for (int x = 0; x < static_cast<int>(slot->bitmap.width); x++) {
x < static_cas...>bitmap.width)Description
TRUEnever evaluated
FALSEnever evaluated
0
1153 uint a = ((src[x >> 3] & (0x80 >> (x & 7))) ? 0xffffff : 0x000000);
(src[x >> 3] &...0 >> (x & 7)))Description
TRUEnever evaluated
FALSEnever evaluated
0
1154 *dd++ = a;-
1155 }
never executed: end of block
0
1156 dst += pitch;-
1157 src += slot->bitmap.pitch;-
1158 }
never executed: end of block
0
1159 } else {
never executed: end of block
0
1160 while (h--) {
h--Description
TRUEnever evaluated
FALSEnever evaluated
0
1161 for (int x = 0; x < static_cast<int>(slot->bitmap.width); x++) {
x < static_cas...>bitmap.width)Description
TRUEnever evaluated
FALSEnever evaluated
0
1162 unsigned char a = ((src[x >> 3] & (0x80 >> (x & 7))) ? 0xff : 0x00);
(src[x >> 3] &...0 >> (x & 7)))Description
TRUEnever evaluated
FALSEnever evaluated
0
1163 dst[x] = a;-
1164 }
never executed: end of block
0
1165 dst += pitch;-
1166 src += slot->bitmap.pitch;-
1167 }
never executed: end of block
0
1168 }
never executed: end of block
0
1169 }-
1170 } else {-
1171 qWarning("QFontEngine: Glyph neither outline nor bitmap format=%d", slot->format);-
1172 return 0;
never executed: return 0;
0
1173 }-
1174 }-
1175-
1176-
1177 if (!g) {
!gDescription
TRUEevaluated 4799 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 13533 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
  • ...
4799-13533
1178 g = new Glyph;-
1179 g->data = 0;-
1180 }
executed 4799 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
  • ...
4799
1181-
1182 g->linearAdvance = info.linearAdvance;-
1183 g->width = info.width;-
1184 g->height = info.height;-
1185 g->x = info.x;-
1186 g->y = info.y;-
1187 g->advance = info.xOff;-
1188 g->format = format;-
1189 delete [] g->data;-
1190 g->data = glyph_buffer.take();-
1191-
1192 if (set)
setDescription
TRUEevaluated 18332 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-18332
1193 set->setGlyph(glyph, subPixelPosition, g);
executed 18332 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
  • ...
18332
1194-
1195 return g;
executed 18332 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
  • ...
18332
1196}-
1197-
1198QFontEngine::FaceId QFontEngineFT::faceId() const-
1199{-
1200 return face_id;
executed 3670 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
  • ...
3670
1201}-
1202-
1203QFontEngine::Properties QFontEngineFT::properties() const-
1204{-
1205 Properties p = freetype->properties();-
1206 if (p.postscriptName.isEmpty()) {
p.postscriptName.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
0
1207 p.postscriptName = QFontEngine::convertToPostscriptFontFamilyName(fontDef.family.toUtf8());-
1208 }
never executed: end of block
0
1209-
1210 return freetype->properties();
never executed: return freetype->properties();
0
1211}-
1212-
1213QFixed QFontEngineFT::emSquareSize() const-
1214{-
1215 if (FT_IS_SCALABLE(freetype->face))
( freetype->fa... ( 1L << 0 ) )Description
TRUEevaluated 2311 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-2311
1216 return freetype->face->units_per_EM;
executed 2311 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
  • ...
2311
1217 else-
1218 return freetype->face->size->metrics.y_ppem;
never executed: return freetype->face->size->metrics.y_ppem;
0
1219}-
1220-
1221bool QFontEngineFT::getSfntTableData(uint tag, uchar *buffer, uint *length) const-
1222{-
1223 return ft_getSfntTable(freetype->face, tag, buffer, length);
executed 935 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
  • ...
935
1224}-
1225-
1226int QFontEngineFT::synthesized() const-
1227{-
1228 int s = 0;-
1229 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
1230 s = SynthesizedItalic;
never executed: s = SynthesizedItalic;
0
1231 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
1232 s |= SynthesizedBold;
never executed: s |= SynthesizedBold;
0
1233 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
1234 s |= SynthesizedStretch;
never executed: s |= SynthesizedStretch;
0
1235 return s;
never executed: return s;
0
1236}-
1237-
1238QFixed QFontEngineFT::ascent() const-
1239{-
1240 return QFixed::fromFixed(metrics.ascender);
executed 793506 times by 121 tests: return QFixed::fromFixed(metrics.ascender);
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
  • ...
793506
1241}-
1242-
1243QFixed QFontEngineFT::descent() const-
1244{-
1245 return QFixed::fromFixed(-metrics.descender);
executed 789516 times by 121 tests: return QFixed::fromFixed(-metrics.descender);
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
  • ...
789516
1246}-
1247-
1248QFixed QFontEngineFT::leading() const-
1249{-
1250 return QFixed::fromFixed(metrics.height - metrics.ascender + metrics.descender);
executed 726541 times by 117 tests: return QFixed::fromFixed(metrics.height - metrics.ascender + metrics.descender);
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
  • ...
726541
1251}-
1252-
1253QFixed QFontEngineFT::xHeight() const-
1254{-
1255 TT_OS2 *os2 = (TT_OS2 *)FT_Get_Sfnt_Table(freetype->face, ft_sfnt_os2);-
1256 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
1257 lockFace();-
1258 QFixed answer = QFixed(os2->sxHeight * freetype->face->size->metrics.y_ppem) / emSquareSize();-
1259 unlockFace();-
1260 return answer;
never executed: return answer;
0
1261 }-
1262 return QFontEngine::xHeight();
executed 12 times by 1 test: return QFontEngine::xHeight();
Executed by:
  • tst_QCssParser
12
1263}-
1264-
1265QFixed QFontEngineFT::averageCharWidth() const-
1266{-
1267 TT_OS2 *os2 = (TT_OS2 *)FT_Get_Sfnt_Table(freetype->face, ft_sfnt_os2);-
1268 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
1269 lockFace();-
1270 QFixed answer = QFixed(os2->xAvgCharWidth * freetype->face->size->metrics.x_ppem) / emSquareSize();-
1271 unlockFace();-
1272 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
1273 }-
1274 return QFontEngine::averageCharWidth();
never executed: return QFontEngine::averageCharWidth();
0
1275}-
1276-
1277qreal QFontEngineFT::maxCharWidth() const-
1278{-
1279 return metrics.max_advance >> 6;
executed 2960 times by 49 tests: return metrics.max_advance >> 6;
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
  • ...
2960
1280}-
1281-
1282QFixed QFontEngineFT::lineThickness() const-
1283{-
1284 return line_thickness;
executed 454 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
454
1285}-
1286-
1287QFixed QFontEngineFT::underlinePosition() const-
1288{-
1289 return underline_position;
executed 451 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
451
1290}-
1291-
1292void QFontEngineFT::doKerning(QGlyphLayout *g, QFontEngine::ShaperFlags flags) const-
1293{-
1294 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 3089 times by 6 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_QTextLayout
24-3089
1295 kerning_pairs_loaded = true;-
1296 lockFace();-
1297 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
1298 QFixed scalingFactor = emSquareSize() / QFixed(freetype->face->size->metrics.x_ppem);-
1299 unlockFace();-
1300 const_cast<QFontEngineFT *>(this)->loadKerningPairs(scalingFactor);-
1301 } 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
1302 unlockFace();-
1303 }
never executed: end of block
0
1304 }-
1305-
1306 if (shouldUseDesignMetrics(flags) && !(fontDef.styleStrategy & QFont::ForceIntegerMetrics))
shouldUseDesignMetrics(flags)Description
TRUEnever evaluated
FALSEevaluated 3113 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-3113
1307 flags |= DesignMetrics;
never executed: flags |= DesignMetrics;
0
1308 else-
1309 flags &= ~DesignMetrics;
executed 3113 times by 6 tests: flags &= ~DesignMetrics;
Executed by:
  • tst_QAccessibility
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_QTextLayout
3113
1310-
1311 QFontEngine::doKerning(g, flags);-
1312}
executed 3113 times by 6 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_QTextLayout
3113
1313-
1314static inline FT_Matrix QTransformToFTMatrix(const QTransform &matrix)-
1315{-
1316 FT_Matrix m;-
1317-
1318 m.xx = FT_Fixed(matrix.m11() * 65536);-
1319 m.xy = FT_Fixed(-matrix.m21() * 65536);-
1320 m.yx = FT_Fixed(-matrix.m12() * 65536);-
1321 m.yy = FT_Fixed(matrix.m22() * 65536);-
1322-
1323 return m;
executed 406773 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
  • ...
406773
1324}-
1325-
1326QFontEngineFT::QGlyphSet *QFontEngineFT::loadGlyphSet(const QTransform &matrix)-
1327{-
1328 if (matrix.type() > QTransform::TxShear || !cacheEnabled)
matrix.type() ...sform::TxShearDescription
TRUEnever evaluated
FALSEevaluated 406773 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 406773 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-406773
1329 return 0;
never executed: return 0;
0
1330-
1331 // FT_Set_Transform only supports scalable fonts-
1332 if (!FT_IS_SCALABLE(freetype->face))
!( freetype->f... ( 1L << 0 ) )Description
TRUEnever evaluated
FALSEevaluated 406773 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-406773
1333 return matrix.type() <= QTransform::TxTranslate ? &defaultGlyphSet : Q_NULLPTR;
never executed: return matrix.type() <= QTransform::TxTranslate ? &defaultGlyphSet : nullptr;
matrix.type() ...m::TxTranslateDescription
TRUEnever evaluated
FALSEnever evaluated
0
1334-
1335 FT_Matrix m = QTransformToFTMatrix(matrix);-
1336-
1337 QGlyphSet *gs = 0;-
1338-
1339 for (int i = 0; i < transformedGlyphSets.count(); ++i) {
i < transforme...phSets.count()Description
TRUEevaluated 407885 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 267 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
  • ...
267-407885
1340 const QGlyphSet &g = transformedGlyphSets.at(i);-
1341 if (g.transformationMatrix.xx == m.xx
g.transformati...rix.xx == m.xxDescription
TRUEevaluated 406548 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 1337 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
1337-406548
1342 && g.transformationMatrix.xy == m.xy
g.transformati...rix.xy == m.xyDescription
TRUEevaluated 406506 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-406506
1343 && g.transformationMatrix.yx == m.yx
g.transformati...rix.yx == m.yxDescription
TRUEevaluated 406506 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-406506
1344 && g.transformationMatrix.yy == m.yy) {
g.transformati...rix.yy == m.yyDescription
TRUEevaluated 406506 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-406506
1345-
1346 // found a match, move it to the front-
1347 transformedGlyphSets.move(i, 0);-
1348 gs = &transformedGlyphSets[0];-
1349 break;
executed 406506 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
  • ...
406506
1350 }-
1351 }
executed 1379 times by 7 tests: end of block
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
1379
1352-
1353 if (!gs) {
!gsDescription
TRUEevaluated 267 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 406506 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
  • ...
267-406506
1354 // don't cache more than 10 transformations-
1355 if (transformedGlyphSets.count() >= 10) {
transformedGly....count() >= 10Description
TRUEevaluated 125 times by 2 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsView
FALSEevaluated 142 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
  • ...
125-142
1356 transformedGlyphSets.move(transformedGlyphSets.size() - 1, 0);-
1357 } else {
executed 125 times by 2 tests: end of block
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsView
125
1358 transformedGlyphSets.prepend(QGlyphSet());-
1359 }
executed 142 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
  • ...
142
1360 gs = &transformedGlyphSets[0];-
1361 gs->clear();-
1362 gs->transformationMatrix = m;-
1363 gs->outline_drawing = fontDef.pixelSize * fontDef.pixelSize * qAbs(matrix.det()) >= QT_MAX_CACHED_GLYPH_SIZE * QT_MAX_CACHED_GLYPH_SIZE;-
1364 }
executed 267 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
  • ...
267
1365 Q_ASSERT(gs != 0);-
1366-
1367 return gs;
executed 406773 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
  • ...
406773
1368}-
1369-
1370void QFontEngineFT::getUnscaledGlyph(glyph_t glyph, QPainterPath *path, glyph_metrics_t *metrics)-
1371{-
1372 FT_Face face = lockFace(Unscaled);-
1373 FT_Set_Transform(face, 0, 0);-
1374 FT_Load_Glyph(face, glyph, FT_LOAD_NO_BITMAP);-
1375-
1376 int left = face->glyph->metrics.horiBearingX;-
1377 int right = face->glyph->metrics.horiBearingX + face->glyph->metrics.width;-
1378 int top = face->glyph->metrics.horiBearingY;-
1379 int bottom = face->glyph->metrics.horiBearingY - face->glyph->metrics.height;-
1380-
1381 QFixedPoint p;-
1382 p.x = 0;-
1383 p.y = 0;-
1384-
1385 metrics->width = QFixed::fromFixed(right-left);-
1386 metrics->height = QFixed::fromFixed(top-bottom);-
1387 metrics->x = QFixed::fromFixed(left);-
1388 metrics->y = QFixed::fromFixed(-top);-
1389 metrics->xoff = QFixed::fromFixed(face->glyph->advance.x);-
1390-
1391 if (!FT_IS_SCALABLE(freetype->face))
!( freetype->f... ( 1L << 0 ) )Description
TRUEnever evaluated
FALSEnever evaluated
0
1392 QFreetypeFace::addBitmapToPath(face->glyph, p, path);
never executed: QFreetypeFace::addBitmapToPath(face->glyph, p, path);
0
1393 else-
1394 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
1395-
1396 FT_Set_Transform(face, &freetype->matrix, 0);-
1397 unlockFace();-
1398}
never executed: end of block
0
1399-
1400bool QFontEngineFT::supportsTransformation(const QTransform &transform) const-
1401{-
1402 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
1403}-
1404-
1405void QFontEngineFT::addOutlineToPath(qreal x, qreal y, const QGlyphLayout &glyphs, QPainterPath *path, QTextItem::RenderFlags flags)-
1406{-
1407 if (!glyphs.numGlyphs)
!glyphs.numGlyphsDescription
TRUEnever evaluated
FALSEevaluated 5 times by 3 tests
Evaluated by:
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
0-5
1408 return;
never executed: return;
0
1409-
1410 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
1411 QFontEngine::addOutlineToPath(x, y, glyphs, path, flags);-
1412 } else {
executed 5 times by 3 tests: end of block
Executed by:
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
5
1413 QVarLengthArray<QFixedPoint> positions;-
1414 QVarLengthArray<glyph_t> positioned_glyphs;-
1415 QTransform matrix;-
1416 matrix.translate(x, y);-
1417 getGlyphPositions(glyphs, matrix, flags, positioned_glyphs, positions);-
1418-
1419 FT_Face face = lockFace(Unscaled);-
1420 for (int gl = 0; gl < glyphs.numGlyphs; gl++) {
gl < glyphs.numGlyphsDescription
TRUEnever evaluated
FALSEnever evaluated
0
1421 FT_UInt glyph = positioned_glyphs[gl];-
1422 FT_Load_Glyph(face, glyph, FT_LOAD_TARGET_MONO);-
1423 QFreetypeFace::addBitmapToPath(face->glyph, positions[gl], path);-
1424 }
never executed: end of block
0
1425 unlockFace();-
1426 }
never executed: end of block
0
1427}-
1428-
1429void QFontEngineFT::addGlyphsToPath(glyph_t *glyphs, QFixedPoint *positions, int numGlyphs,-
1430 QPainterPath *path, QTextItem::RenderFlags)-
1431{-
1432 FT_Face face = lockFace(Unscaled);-
1433-
1434 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
1435 FT_UInt glyph = glyphs[gl];-
1436-
1437 FT_Load_Glyph(face, glyph, FT_LOAD_NO_BITMAP);-
1438-
1439 FT_GlyphSlot g = face->glyph;-
1440 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
1441 continue;
never executed: continue;
0
1442 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
1443 FT_GlyphSlot_Embolden(g);
never executed: FT_GlyphSlot_Embolden(g);
0
1444 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
1445 FT_GlyphSlot_Oblique(g);
never executed: FT_GlyphSlot_Oblique(g);
0
1446 QFreetypeFace::addGlyphToPath(face, g, positions[gl], path, xsize, ysize);-
1447 }
executed 163 times by 6 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
163
1448 unlockFace();-
1449}
executed 21 times by 6 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
21
1450-
1451glyph_t QFontEngineFT::glyphIndex(uint ucs4) const-
1452{-
1453 glyph_t glyph = ucs4 < QFreetypeFace::cmapCacheSize ? freetype->cmapCache[ucs4] : 0;
ucs4 < QFreety...:cmapCacheSizeDescription
TRUEevaluated 5388109 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 15209 times by 32 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
  • ...
15209-5388109
1454 if (glyph == 0) {
glyph == 0Description
TRUEevaluated 16281 times by 67 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 5387037 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
  • ...
16281-5387037
1455 FT_Face face = freetype->face;-
1456 glyph = FT_Get_Char_Index(face, ucs4);-
1457 if (glyph == 0) {
glyph == 0Description
TRUEevaluated 250 times by 5 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QRawFont
  • tst_QTextLayout
FALSEevaluated 16031 times by 67 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
  • ...
250-16031
1458 // Certain fonts don't have no-break space and tab,-
1459 // while we usually want to render them as space-
1460 if (ucs4 == QChar::Nbsp || ucs4 == QChar::Tabulation) {
ucs4 == QChar::NbspDescription
TRUEnever evaluated
FALSEevaluated 250 times by 5 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QRawFont
  • tst_QTextLayout
ucs4 == QChar::TabulationDescription
TRUEnever evaluated
FALSEevaluated 250 times by 5 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QRawFont
  • tst_QTextLayout
0-250
1461 glyph = FT_Get_Char_Index(face, QChar::Space);-
1462 } else if (freetype->symbol_map) {
never executed: end of block
freetype->symbol_mapDescription
TRUEevaluated 39 times by 1 test
Evaluated by:
  • tst_QFontDialog
FALSEevaluated 211 times by 5 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QRawFont
  • tst_QTextLayout
0-211
1463 // Symbol fonts can have more than one CMAPs, FreeType should take the-
1464 // correct one for us by default, so we always try FT_Get_Char_Index-
1465 // first. If it didn't work (returns 0), we will explicitly set the-
1466 // CMAP to symbol font one and try again. symbol_map is not always the-
1467 // correct one because in certain fonts like Wingdings symbol_map only-
1468 // contains PUA codepoints instead of the common ones.-
1469 FT_Set_Charmap(face, freetype->symbol_map);-
1470 glyph = FT_Get_Char_Index(face, ucs4);-
1471 FT_Set_Charmap(face, freetype->unicode_map);-
1472 }
executed 39 times by 1 test: end of block
Executed by:
  • tst_QFontDialog
39
1473 }
executed 250 times by 5 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QRawFont
  • tst_QTextLayout
250
1474 if (ucs4 < QFreetypeFace::cmapCacheSize)
ucs4 < QFreety...:cmapCacheSizeDescription
TRUEevaluated 1072 times by 54 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 15209 times by 32 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-15209
1475 freetype->cmapCache[ucs4] = glyph;
executed 1072 times by 54 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
1476 }
executed 16281 times by 67 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
  • ...
16281
1477-
1478 return glyph;
executed 5403318 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
  • ...
5403318
1479}-
1480-
1481bool QFontEngineFT::stringToCMap(const QChar *str, int len, QGlyphLayout *glyphs, int *nglyphs,-
1482 QFontEngine::ShaperFlags flags) const-
1483{-
1484 Q_ASSERT(glyphs->numGlyphs >= *nglyphs);-
1485 if (*nglyphs < len) {
*nglyphs < lenDescription
TRUEnever evaluated
FALSEevaluated 663953 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-663953
1486 *nglyphs = len;-
1487 return false;
never executed: return false;
0
1488 }-
1489-
1490 int glyph_pos = 0;-
1491 if (freetype->symbol_map) {
freetype->symbol_mapDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFontDialog
FALSEevaluated 663952 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-663952
1492 FT_Face face = freetype->face;-
1493 QStringIterator it(str, str + len);-
1494 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
1495 uint uc = it.next();-
1496 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
1497 if ( !glyphs->glyphs[glyph_pos] ) {
!glyphs->glyphs[glyph_pos]Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QFontDialog
FALSEnever evaluated
0-8
1498 // Symbol fonts can have more than one CMAPs, FreeType should take the-
1499 // correct one for us by default, so we always try FT_Get_Char_Index-
1500 // first. If it didn't work (returns 0), we will explicitly set the-
1501 // CMAP to symbol font one and try again. symbol_map is not always the-
1502 // correct one because in certain fonts like Wingdings symbol_map only-
1503 // contains PUA codepoints instead of the common ones.-
1504 glyph_t glyph = FT_Get_Char_Index(face, uc);-
1505 // Certain symbol fonts don't have no-break space (0xa0) and tab (0x9),-
1506 // while we usually want to render them as space-
1507 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
1508 uc = 0x20;-
1509 glyph = FT_Get_Char_Index(face, uc);-
1510 }
never executed: end of block
0
1511 if (!glyph) {
!glyphDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QFontDialog
FALSEnever evaluated
0-8
1512 FT_Set_Charmap(face, freetype->symbol_map);-
1513 glyph = FT_Get_Char_Index(face, uc);-
1514 FT_Set_Charmap(face, freetype->unicode_map);-
1515 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_QFontDialog
8
1516 glyphs->glyphs[glyph_pos] = glyph;-
1517 if (uc < QFreetypeFace::cmapCacheSize)
uc < QFreetype...:cmapCacheSizeDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QFontDialog
FALSEnever evaluated
0-8
1518 freetype->cmapCache[uc] = glyph;
executed 8 times by 1 test: freetype->cmapCache[uc] = glyph;
Executed by:
  • tst_QFontDialog
8
1519 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_QFontDialog
8
1520 ++glyph_pos;-
1521 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_QFontDialog
8
1522 } else {
executed 1 time by 1 test: end of block
Executed by:
  • tst_QFontDialog
1
1523 FT_Face face = freetype->face;-
1524 QStringIterator it(str, str + len);-
1525 while (it.hasNext()) {
it.hasNext()Description
TRUEevaluated 5397305 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 663952 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
  • ...
663952-5397305
1526 uint uc = it.next();-
1527 glyphs->glyphs[glyph_pos] = uc < QFreetypeFace::cmapCacheSize ? freetype->cmapCache[uc] : 0;
uc < QFreetype...:cmapCacheSizeDescription
TRUEevaluated 5384467 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 12838 times by 30 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
  • ...
12838-5384467
1528 if (!glyphs->glyphs[glyph_pos]) {
!glyphs->glyphs[glyph_pos]Description
TRUEevaluated 17370 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 5379935 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
  • ...
17370-5379935
1529 {-
1530 redo:-
1531 glyph_t glyph = FT_Get_Char_Index(face, uc);-
1532 if (!glyph && (uc == 0xa0 || uc == 0x9)) {
!glyphDescription
TRUEevaluated 323 times by 6 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QLabel
  • tst_QTextLayout
FALSEevaluated 17047 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 323 times by 6 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QLabel
  • tst_QTextLayout
uc == 0x9Description
TRUEnever evaluated
FALSEevaluated 323 times by 6 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QLabel
  • tst_QTextLayout
0-17047
1533 uc = 0x20;-
1534 goto redo;
never executed: goto redo;
0
1535 }-
1536 glyphs->glyphs[glyph_pos] = glyph;-
1537 if (uc < QFreetypeFace::cmapCacheSize)
uc < QFreetype...:cmapCacheSizeDescription
TRUEevaluated 4532 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 12838 times by 30 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
  • ...
4532-12838
1538 freetype->cmapCache[uc] = glyph;
executed 4532 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
  • ...
4532
1539 }-
1540 }
executed 17370 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
  • ...
17370
1541 ++glyph_pos;-
1542 }
executed 5397305 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
  • ...
5397305
1543 }
executed 663952 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
  • ...
663952
1544-
1545 *nglyphs = glyph_pos;-
1546 glyphs->numGlyphs = glyph_pos;-
1547-
1548 if (!(flags & GlyphIndicesOnly))
!(flags & GlyphIndicesOnly)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFontMetrics
FALSEevaluated 663952 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-663952
1549 recalcAdvances(glyphs, flags);
executed 1 time by 1 test: recalcAdvances(glyphs, flags);
Executed by:
  • tst_QFontMetrics
1
1550-
1551 return true;
executed 663953 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
  • ...
663953
1552}-
1553-
1554bool QFontEngineFT::shouldUseDesignMetrics(QFontEngine::ShaperFlags flags) const-
1555{-
1556 if (!FT_IS_SCALABLE(freetype->face))
!( freetype->f... ( 1L << 0 ) )Description
TRUEnever evaluated
FALSEevaluated 5404483 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-5404483
1557 return false;
never executed: return false;
0
1558-
1559 return default_hint_style == HintNone || default_hint_style == HintLight || (flags & DesignMetrics);
executed 5404483 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
  • ...
default_hint_style == HintNoneDescription
TRUEevaluated 65 times by 2 tests
Evaluated by:
  • tst_QPainter
  • tst_QRawFont
FALSEevaluated 5404418 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
  • ...
default_hint_s...e == HintLightDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QRawFont
FALSEevaluated 5404406 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
  • ...
12-5404483
1560}-
1561-
1562void QFontEngineFT::recalcAdvances(QGlyphLayout *glyphs, QFontEngine::ShaperFlags flags) const-
1563{-
1564 FT_Face face = 0;-
1565 bool design = shouldUseDesignMetrics(flags);-
1566 for (int i = 0; i < glyphs->numGlyphs; i++) {
i < glyphs->numGlyphsDescription
TRUEevaluated 5401568 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 5401370 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
  • ...
5401370-5401568
1567 Glyph *g = cacheEnabled ? defaultGlyphSet.getGlyph(glyphs->glyphs[i]) : 0;
cacheEnabledDescription
TRUEevaluated 5401568 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-5401568
1568 // Since we are passing Format_None to loadGlyph, use same default format logic as loadGlyph-
1569 GlyphFormat acceptableFormat = (defaultFormat != Format_None) ? defaultFormat : Format_Mono;
(defaultFormat != Format_None)Description
TRUEevaluated 5401568 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-5401568
1570 if (g && g->format == acceptableFormat) {
gDescription
TRUEevaluated 5394363 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 7205 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 5394363 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-5394363
1571 glyphs->advances[i] = design ? QFixed::fromFixed(g->linearAdvance) : QFixed(g->advance);
designDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_QRawFont
FALSEevaluated 5394347 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-5394347
1572 } else {
executed 5394363 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
  • ...
5394363
1573 if (!face)
!faceDescription
TRUEevaluated 7133 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-7133
1574 face = lockFace();
executed 7133 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
  • ...
7133
1575 g = loadGlyph(cacheEnabled ? &defaultGlyphSet : 0, glyphs->glyphs[i], 0, Format_None, true);-
1576 if (g)
gDescription
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 16 times by 1 test
Evaluated by:
  • tst_QFontDatabase
16-7189
1577 glyphs->advances[i] = design ? QFixed::fromFixed(g->linearAdvance) : QFixed(g->advance);
executed 7189 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 7108 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-7189
1578 else-
1579 glyphs->advances[i] = design ? QFixed::fromFixed(face->glyph->linearHoriAdvance >> 10)
executed 16 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 16 times by 1 test
Evaluated by:
  • tst_QFontDatabase
0-16
1580 : QFixed::fromFixed(face->glyph->metrics.horiAdvance).round();
executed 16 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
16
1581 if (!cacheEnabled && g != &emptyGlyph)
!cacheEnabledDescription
TRUEnever evaluated
FALSEevaluated 7205 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-7205
1582 delete g;
never executed: delete g;
0
1583 }
executed 7205 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
  • ...
7205
1584 }-
1585 if (face)
faceDescription
TRUEevaluated 7133 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 5394237 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
  • ...
7133-5394237
1586 unlockFace();
executed 7133 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
  • ...
7133
1587-
1588 if (fontDef.styleStrategy & QFont::ForceIntegerMetrics) {
fontDef.styleS...IntegerMetricsDescription
TRUEevaluated 156 times by 1 test
Evaluated by:
  • tst_QFontMetrics
FALSEevaluated 5401214 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-5401214
1589 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
1590 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
1591 }
executed 156 times by 1 test: end of block
Executed by:
  • tst_QFontMetrics
156
1592}
executed 5401370 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
  • ...
5401370
1593-
1594glyph_metrics_t QFontEngineFT::boundingBox(const QGlyphLayout &glyphs)-
1595{-
1596 FT_Face face = 0;-
1597-
1598 glyph_metrics_t overall;-
1599 // initialize with line height, we get the same behaviour on all platforms-
1600 overall.y = -ascent();-
1601 overall.height = ascent() + descent();-
1602-
1603 QFixed ymax = 0;-
1604 QFixed xmax = 0;-
1605 for (int i = 0; i < glyphs.numGlyphs; i++) {
i < glyphs.numGlyphsDescription
TRUEevaluated 55548 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 3590 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
3590-55548
1606 Glyph *g = cacheEnabled ? defaultGlyphSet.getGlyph(glyphs.glyphs[i]) : 0;
cacheEnabledDescription
TRUEevaluated 55548 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-55548
1607 if (!g) {
!gDescription
TRUEnever evaluated
FALSEevaluated 55548 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-55548
1608 if (!face)
!faceDescription
TRUEnever evaluated
FALSEnever evaluated
0
1609 face = lockFace();
never executed: face = lockFace();
0
1610 g = loadGlyph(cacheEnabled ? &defaultGlyphSet : 0, glyphs.glyphs[i], 0, Format_None, true);-
1611 }
never executed: end of block
0
1612 if (g) {
gDescription
TRUEevaluated 55548 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-55548
1613 QFixed x = overall.xoff + glyphs.offsets[i].x + g->x;-
1614 QFixed y = overall.yoff + glyphs.offsets[i].y - g->y;-
1615 overall.x = qMin(overall.x, x);-
1616 overall.y = qMin(overall.y, y);-
1617 xmax = qMax(xmax, x + g->width);-
1618 ymax = qMax(ymax, y + g->height);-
1619 overall.xoff += g->advance;-
1620 if (!cacheEnabled && g != &emptyGlyph)
!cacheEnabledDescription
TRUEnever evaluated
FALSEevaluated 55548 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-55548
1621 delete g;
never executed: delete g;
0
1622 } else {
executed 55548 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
55548
1623 int left = FLOOR(face->glyph->metrics.horiBearingX);-
1624 int right = CEIL(face->glyph->metrics.horiBearingX + face->glyph->metrics.width);-
1625 int top = CEIL(face->glyph->metrics.horiBearingY);-
1626 int bottom = FLOOR(face->glyph->metrics.horiBearingY - face->glyph->metrics.height);-
1627-
1628 QFixed x = overall.xoff + glyphs.offsets[i].x - (-TRUNC(left));-
1629 QFixed y = overall.yoff + glyphs.offsets[i].y - TRUNC(top);-
1630 overall.x = qMin(overall.x, x);-
1631 overall.y = qMin(overall.y, y);-
1632 xmax = qMax(xmax, x + TRUNC(right - left));-
1633 ymax = qMax(ymax, y + TRUNC(top - bottom));-
1634 overall.xoff += int(TRUNC(ROUND(face->glyph->advance.x)));-
1635 }
never executed: end of block
0
1636 }-
1637 overall.height = qMax(overall.height, ymax - overall.y);-
1638 overall.width = xmax - overall.x;-
1639-
1640 if (face)
faceDescription
TRUEnever evaluated
FALSEevaluated 3590 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-3590
1641 unlockFace();
never executed: unlockFace();
0
1642-
1643 return overall;
executed 3590 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
3590
1644}-
1645-
1646glyph_metrics_t QFontEngineFT::boundingBox(glyph_t glyph)-
1647{-
1648 FT_Face face = 0;-
1649 glyph_metrics_t overall;-
1650 Glyph *g = cacheEnabled ? defaultGlyphSet.getGlyph(glyph) : 0;
cacheEnabledDescription
TRUEevaluated 287176 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-287176
1651 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 286934 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-286934
1652 face = lockFace();-
1653 g = loadGlyph(cacheEnabled ? &defaultGlyphSet : 0, glyph, 0, Format_None, true);-
1654 }
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
1655 if (g) {
gDescription
TRUEevaluated 287176 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-287176
1656 overall.x = g->x;-
1657 overall.y = -g->y;-
1658 overall.width = g->width;-
1659 overall.height = g->height;-
1660 overall.xoff = g->advance;-
1661 if (fontDef.styleStrategy & QFont::ForceIntegerMetrics)
fontDef.styleS...IntegerMetricsDescription
TRUEnever evaluated
FALSEevaluated 287176 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-287176
1662 overall.xoff = overall.xoff.round();
never executed: overall.xoff = overall.xoff.round();
0
1663 if (!cacheEnabled && g != &emptyGlyph)
!cacheEnabledDescription
TRUEnever evaluated
FALSEevaluated 287176 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-287176
1664 delete g;
never executed: delete g;
0
1665 } else {
executed 287176 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
  • ...
287176
1666 int left = FLOOR(face->glyph->metrics.horiBearingX);-
1667 int right = CEIL(face->glyph->metrics.horiBearingX + face->glyph->metrics.width);-
1668 int top = CEIL(face->glyph->metrics.horiBearingY);-
1669 int bottom = FLOOR(face->glyph->metrics.horiBearingY - face->glyph->metrics.height);-
1670-
1671 overall.width = TRUNC(right-left);-
1672 overall.height = TRUNC(top-bottom);-
1673 overall.x = TRUNC(left);-
1674 overall.y = -TRUNC(top);-
1675 overall.xoff = TRUNC(ROUND(face->glyph->advance.x));-
1676 }
never executed: end of block
0
1677 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 286934 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-286934
1678 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
1679 return overall;
executed 287176 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
  • ...
287176
1680}-
1681-
1682glyph_metrics_t QFontEngineFT::boundingBox(glyph_t glyph, const QTransform &matrix)-
1683{-
1684 return alphaMapBoundingBox(glyph, 0, matrix, QFontEngine::Format_None);
never executed: return alphaMapBoundingBox(glyph, 0, matrix, QFontEngine::Format_None);
0
1685}-
1686-
1687glyph_metrics_t QFontEngineFT::alphaMapBoundingBox(glyph_t glyph, QFixed subPixelPosition, const QTransform &matrix, QFontEngine::GlyphFormat format)-
1688{-
1689 Glyph *g = loadGlyphFor(glyph, subPixelPosition, format, matrix, true);-
1690-
1691 glyph_metrics_t overall;-
1692 if (g) {
gDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_QGraphicsView
FALSEnever evaluated
0-11
1693 overall.x = g->x;-
1694 overall.y = -g->y;-
1695 overall.width = g->width;-
1696 overall.height = g->height;-
1697 overall.xoff = g->advance;-
1698 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
1699 delete g;
never executed: delete g;
0
1700 } else {
executed 11 times by 1 test: end of block
Executed by:
  • tst_QGraphicsView
11
1701 FT_Face face = lockFace();-
1702 int left = FLOOR(face->glyph->metrics.horiBearingX);-
1703 int right = CEIL(face->glyph->metrics.horiBearingX + face->glyph->metrics.width);-
1704 int top = CEIL(face->glyph->metrics.horiBearingY);-
1705 int bottom = FLOOR(face->glyph->metrics.horiBearingY - face->glyph->metrics.height);-
1706-
1707 overall.width = TRUNC(right-left);-
1708 overall.height = TRUNC(top-bottom);-
1709 overall.x = TRUNC(left);-
1710 overall.y = -TRUNC(top);-
1711 overall.xoff = TRUNC(ROUND(face->glyph->advance.x));-
1712 unlockFace();-
1713 }
never executed: end of block
0
1714 return overall;
executed 11 times by 1 test: return overall;
Executed by:
  • tst_QGraphicsView
11
1715}-
1716-
1717static inline QImage alphaMapFromGlyphData(QFontEngineFT::Glyph *glyph, QFontEngine::GlyphFormat glyphFormat)-
1718{-
1719 if (glyph == Q_NULLPTR || glyph->height == 0 || glyph->width == 0)
glyph == nullptrDescription
TRUEnever evaluated
FALSEevaluated 406762 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 13722 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_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • ...
FALSEevaluated 393040 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 393028 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-406762
1720 return QImage();
executed 13734 times by 58 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
  • ...
13734
1721-
1722 QImage::Format format = QImage::Format_Invalid;-
1723 int bytesPerLine = -1;-
1724 switch (glyphFormat) {-
1725 case QFontEngine::Format_Mono:
executed 365 times by 3 tests: case QFontEngine::Format_Mono:
Executed by:
  • tst_QPainter
  • tst_QStaticText
  • tst_QWizard
365
1726 format = QImage::Format_Mono;-
1727 bytesPerLine = ((glyph->width + 31) & ~31) >> 3;-
1728 break;
executed 365 times by 3 tests: break;
Executed by:
  • tst_QPainter
  • tst_QStaticText
  • tst_QWizard
365
1729 case QFontEngine::Format_A8:
executed 392663 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
  • ...
392663
1730 format = QImage::Format_Alpha8;-
1731 bytesPerLine = (glyph->width + 3) & ~3;-
1732 break;
executed 392663 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
  • ...
392663
1733 case QFontEngine::Format_A32:
never executed: case QFontEngine::Format_A32:
0
1734 format = QImage::Format_ARGB32;-
1735 bytesPerLine = glyph->width * 4;-
1736 break;
never executed: break;
0
1737 default:
never executed: default:
0
1738 Q_UNREACHABLE();-
1739 };
never executed: end of block
0
1740-
1741 QImage img(static_cast<const uchar *>(glyph->data), glyph->width, glyph->height, bytesPerLine, format);-
1742 if (format == QImage::Format_Mono)
format == QImage::Format_MonoDescription
TRUEevaluated 365 times by 3 tests
Evaluated by:
  • tst_QPainter
  • tst_QStaticText
  • tst_QWizard
FALSEevaluated 392663 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-392663
1743 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
1744 return img;
executed 393028 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
  • ...
393028
1745}-
1746-
1747QImage *QFontEngineFT::lockedAlphaMapForGlyph(glyph_t glyphIndex, QFixed subPixelPosition,-
1748 QFontEngine::GlyphFormat neededFormat,-
1749 const QTransform &t, QPoint *offset)-
1750{-
1751 Q_ASSERT(currentlyLockedAlphaMap.isNull());-
1752-
1753 if (isBitmapFont())
isBitmapFont()Description
TRUEevaluated 388 times by 2 tests
Evaluated by:
  • tst_QStaticText
  • tst_QWizard
FALSEevaluated 406363 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-406363
1754 neededFormat = Format_Mono;
executed 388 times by 2 tests: neededFormat = Format_Mono;
Executed by:
  • tst_QStaticText
  • tst_QWizard
388
1755 else if (neededFormat == Format_None && defaultFormat != Format_None)
neededFormat == Format_NoneDescription
TRUEevaluated 394499 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 394499 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-394499
1756 neededFormat = defaultFormat;
executed 394499 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
  • ...
394499
1757 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
1758 neededFormat = Format_A8;
never executed: neededFormat = Format_A8;
0
1759-
1760 Glyph *glyph = loadGlyphFor(glyphIndex, subPixelPosition, neededFormat, t);-
1761-
1762 if (offset != 0 && glyph != 0)
offset != 0Description
TRUEevaluated 406751 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 406751 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-406751
1763 *offset = QPoint(glyph->x, -glyph->y);
executed 406751 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
  • ...
406751
1764-
1765 currentlyLockedAlphaMap = alphaMapFromGlyphData(glyph, neededFormat);-
1766-
1767 const bool glyphHasGeometry = glyph != Q_NULLPTR && glyph->height != 0 && glyph->width != 0;
glyph != nullptrDescription
TRUEevaluated 406751 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 393029 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 13722 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_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • ...
glyph->width != 0Description
TRUEevaluated 393017 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-406751
1768 if (!cacheEnabled && glyph != &emptyGlyph) {
!cacheEnabledDescription
TRUEnever evaluated
FALSEevaluated 406751 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-406751
1769 currentlyLockedAlphaMap = currentlyLockedAlphaMap.copy();-
1770 delete glyph;-
1771 }
never executed: end of block
0
1772-
1773 if (!glyphHasGeometry)
!glyphHasGeometryDescription
TRUEevaluated 13734 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_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • ...
FALSEevaluated 393017 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
  • ...
13734-393017
1774 return Q_NULLPTR;
executed 13734 times by 58 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
  • ...
13734
1775-
1776 if (currentlyLockedAlphaMap.isNull())
currentlyLocke...haMap.isNull()Description
TRUEnever evaluated
FALSEevaluated 393017 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-393017
1777 return QFontEngine::lockedAlphaMapForGlyph(glyphIndex, subPixelPosition, neededFormat, t, offset);
never executed: return QFontEngine::lockedAlphaMapForGlyph(glyphIndex, subPixelPosition, neededFormat, t, offset);
0
1778-
1779 QImageData *data = currentlyLockedAlphaMap.data_ptr();-
1780 data->is_locked = true;-
1781-
1782 return &currentlyLockedAlphaMap;
executed 393017 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
  • ...
393017
1783}-
1784-
1785void QFontEngineFT::unlockAlphaMapForGlyph()-
1786{-
1787 QFontEngine::unlockAlphaMapForGlyph();-
1788}
executed 393017 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
  • ...
393017
1789-
1790static inline bool is2dRotation(const QTransform &t)-
1791{-
1792 return qFuzzyCompare(t.m11(), t.m22()) && qFuzzyCompare(t.m12(), -t.m21())
executed 2552 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
qFuzzyCompare(...11(), t.m22())Description
TRUEevaluated 2456 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
FALSEevaluated 96 times by 1 test
Evaluated by:
  • tst_QStaticText
qFuzzyCompare(...2(), -t.m21())Description
TRUEevaluated 2456 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
FALSEnever evaluated
0-2552
1793 && qFuzzyCompare(t.m11()*t.m22() - t.m12()*t.m21(), qreal(1.0));
executed 2552 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
qFuzzyCompare(...), qreal(1.0))Description
TRUEevaluated 1616 times by 4 tests
Evaluated by:
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QStaticText
  • tst_QTabWidget
FALSEevaluated 840 times by 5 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QPrinter
  • tst_QStaticText
840-2552
1794}-
1795-
1796QFontEngineFT::Glyph *QFontEngineFT::loadGlyphFor(glyph_t g,-
1797 QFixed subPixelPosition,-
1798 GlyphFormat format,-
1799 const QTransform &t,-
1800 bool fetchBoundingBox)-
1801{-
1802 QGlyphSet *glyphSet = loadGlyphSet(t);-
1803 if (glyphSet != 0 && glyphSet->outline_drawing && !fetchBoundingBox)
glyphSet != 0Description
TRUEevaluated 406773 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 406773 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-406773
1804 return 0;
never executed: return 0;
0
1805-
1806 Glyph *glyph = glyphSet != 0 ? glyphSet->getGlyph(g, subPixelPosition) : 0;
glyphSet != 0Description
TRUEevaluated 406773 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-406773
1807 if (!glyph || glyph->format != format || (!fetchBoundingBox && !glyph->data)) {
!glyphDescription
TRUEevaluated 4800 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 401973 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 401972 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 401961 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 13532 times by 55 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 388429 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-401973
1808 QScopedValueRollback<HintStyle> saved_default_hint_style(default_hint_style);-
1809 if (t.type() >= QTransform::TxScale && !is2dRotation(t))
t.type() >= QT...sform::TxScaleDescription
TRUEevaluated 2552 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
FALSEevaluated 15781 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 1616 times by 4 tests
Evaluated by:
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QStaticText
  • tst_QTabWidget
936-15781
1810 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
1811-
1812 lockFace();-
1813 FT_Matrix m = this->matrix;-
1814 FT_Matrix ftMatrix = glyphSet != 0 ? glyphSet->transformationMatrix : QTransformToFTMatrix(t);
glyphSet != 0Description
TRUEevaluated 18333 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-18333
1815 FT_Matrix_Multiply(&ftMatrix, &m);-
1816 freetype->matrix = m;-
1817 glyph = loadGlyph(glyphSet, g, subPixelPosition, format, false);-
1818 unlockFace();-
1819 }
executed 18333 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
  • ...
18333
1820-
1821 return glyph;
executed 406773 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
  • ...
406773
1822}-
1823-
1824QImage QFontEngineFT::alphaMapForGlyph(glyph_t g, QFixed subPixelPosition)-
1825{-
1826 return alphaMapForGlyph(g, subPixelPosition, QTransform());
never executed: return alphaMapForGlyph(g, subPixelPosition, QTransform());
0
1827}-
1828-
1829QImage QFontEngineFT::alphaMapForGlyph(glyph_t g, QFixed subPixelPosition, const QTransform &t)-
1830{-
1831 const GlyphFormat neededFormat = antialias ? Format_A8 : Format_Mono;
antialiasDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_QGraphicsView
FALSEnever evaluated
0-11
1832-
1833 Glyph *glyph = loadGlyphFor(g, subPixelPosition, neededFormat, t);-
1834-
1835 QImage img = alphaMapFromGlyphData(glyph, neededFormat);-
1836 img = img.copy();-
1837-
1838 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
1839 delete glyph;
never executed: delete glyph;
0
1840-
1841 if (!img.isNull())
!img.isNull()Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_QGraphicsView
FALSEnever evaluated
0-11
1842 return img;
executed 11 times by 1 test: return img;
Executed by:
  • tst_QGraphicsView
11
1843-
1844 return QFontEngine::alphaMapForGlyph(g);
never executed: return QFontEngine::alphaMapForGlyph(g);
0
1845}-
1846-
1847QImage QFontEngineFT::alphaRGBMapForGlyph(glyph_t g, QFixed subPixelPosition, const QTransform &t)-
1848{-
1849 if (t.type() > QTransform::TxRotate)
t.type() > QTr...form::TxRotateDescription
TRUEnever evaluated
FALSEnever evaluated
0
1850 return QFontEngine::alphaRGBMapForGlyph(g, subPixelPosition, t);
never executed: return QFontEngine::alphaRGBMapForGlyph(g, subPixelPosition, t);
0
1851-
1852 const GlyphFormat neededFormat = Format_A32;-
1853-
1854 Glyph *glyph = loadGlyphFor(g, subPixelPosition, neededFormat, t);-
1855-
1856 QImage img = alphaMapFromGlyphData(glyph, neededFormat);-
1857 img = img.copy();-
1858-
1859 if (!cacheEnabled && glyph != &emptyGlyph)
!cacheEnabledDescription
TRUEnever evaluated
FALSEnever evaluated
glyph != &emptyGlyphDescription
TRUEnever evaluated
FALSEnever evaluated
0
1860 delete glyph;
never executed: delete glyph;
0
1861-
1862 if (!img.isNull())
!img.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
0
1863 return img;
never executed: return img;
0
1864-
1865 return QFontEngine::alphaRGBMapForGlyph(g, subPixelPosition, t);
never executed: return QFontEngine::alphaRGBMapForGlyph(g, subPixelPosition, t);
0
1866}-
1867-
1868void QFontEngineFT::removeGlyphFromCache(glyph_t glyph)-
1869{-
1870 defaultGlyphSet.removeGlyphFromCache(glyph, 0);-
1871}
never executed: end of block
0
1872-
1873int QFontEngineFT::glyphCount() const-
1874{-
1875 int count = 0;-
1876 FT_Face face = lockFace();-
1877 if (face) {
faceDescription
TRUEnever evaluated
FALSEnever evaluated
0
1878 count = face->num_glyphs;-
1879 unlockFace();-
1880 }
never executed: end of block
0
1881 return count;
never executed: return count;
0
1882}-
1883-
1884FT_Face QFontEngineFT::lockFace(Scaling scale) const-
1885{-
1886 freetype->lock();-
1887 FT_Face face = freetype->face;-
1888 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 27959 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-27959
1889 FT_Set_Char_Size(face, face->units_per_EM << 6, face->units_per_EM << 6, 0, 0);-
1890 freetype->xsize = face->units_per_EM << 6;-
1891 freetype->ysize = face->units_per_EM << 6;-
1892 } 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 2052 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 25907 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 25907 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-25907
1893 FT_Set_Char_Size(face, xsize, ysize, 0, 0);-
1894 freetype->xsize = xsize;-
1895 freetype->ysize = ysize;-
1896 }
executed 2052 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
  • ...
2052
1897 if (freetype->matrix.xx != matrix.xx ||
freetype->matr...x != matrix.xxDescription
TRUEevaluated 2551 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
FALSEevaluated 25429 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
  • ...
2551-25429
1898 freetype->matrix.yy != matrix.yy ||
freetype->matr...y != matrix.yyDescription
TRUEnever evaluated
FALSEevaluated 25429 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-25429
1899 freetype->matrix.xy != matrix.xy ||
freetype->matr...y != matrix.xyDescription
TRUEnever evaluated
FALSEevaluated 25429 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-25429
1900 freetype->matrix.yx != matrix.yx) {
freetype->matr...x != matrix.yxDescription
TRUEnever evaluated
FALSEevaluated 25429 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-25429
1901 freetype->matrix = matrix;-
1902 FT_Set_Transform(face, &freetype->matrix, 0);-
1903 }
executed 2551 times by 7 tests: end of block
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
2551
1904-
1905 return face;
executed 27980 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
  • ...
27980
1906}-
1907-
1908void QFontEngineFT::unlockFace() const-
1909{-
1910 freetype->unlock();-
1911}
executed 27980 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
  • ...
27980
1912-
1913FT_Face QFontEngineFT::non_locked_face() const-
1914{-
1915 return freetype->face;
never executed: return freetype->face;
0
1916}-
1917-
1918-
1919QFontEngineFT::QGlyphSet::QGlyphSet()-
1920 : outline_drawing(false)-
1921{-
1922 transformationMatrix.xx = 0x10000;-
1923 transformationMatrix.yy = 0x10000;-
1924 transformationMatrix.xy = 0;-
1925 transformationMatrix.yx = 0;-
1926 memset(fast_glyph_data, 0, sizeof(fast_glyph_data));-
1927 fast_glyph_count = 0;-
1928}
executed 2154 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
  • ...
2154
1929-
1930QFontEngineFT::QGlyphSet::~QGlyphSet()-
1931{-
1932 clear();-
1933}
executed 2284 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
  • ...
2284
1934-
1935void QFontEngineFT::QGlyphSet::clear()-
1936{-
1937 if (fast_glyph_count > 0) {
fast_glyph_count > 0Description
TRUEevaluated 681 times by 119 tests
Evaluated by:
  • tst_QApplication
  • 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
  • tst_qcompleter - unknown status
  • ...
FALSEevaluated 1870 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
  • ...
681-1870
1938 for (int i = 0; i < 256; ++i) {
i < 256Description
TRUEevaluated 174336 times by 119 tests
Evaluated by:
  • tst_QApplication
  • 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
  • tst_qcompleter - unknown status
  • ...
FALSEevaluated 681 times by 119 tests
Evaluated by:
  • tst_QApplication
  • 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
  • tst_qcompleter - unknown status
  • ...
681-174336
1939 if (fast_glyph_data[i]) {
fast_glyph_data[i]Description
TRUEevaluated 11451 times by 119 tests
Evaluated by:
  • tst_QApplication
  • 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
  • tst_qcompleter - unknown status
  • ...
FALSEevaluated 162885 times by 119 tests
Evaluated by:
  • tst_QApplication
  • 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
  • tst_qcompleter - unknown status
  • ...
11451-162885
1940 delete fast_glyph_data[i];-
1941 fast_glyph_data[i] = 0;-
1942 }
executed 11451 times by 119 tests: end of block
Executed by:
  • tst_QApplication
  • 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
  • tst_qcompleter - unknown status
  • ...
11451
1943 }
executed 174336 times by 119 tests: end of block
Executed by:
  • tst_QApplication
  • 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
  • tst_qcompleter - unknown status
  • ...
174336
1944 fast_glyph_count = 0;-
1945 }
executed 681 times by 119 tests: end of block
Executed by:
  • tst_QApplication
  • 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
  • tst_qcompleter - unknown status
  • ...
681
1946 qDeleteAll(glyph_data);-
1947 glyph_data.clear();-
1948}
executed 2551 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
  • ...
2551
1949-
1950void QFontEngineFT::QGlyphSet::removeGlyphFromCache(glyph_t index, QFixed subPixelPosition)-
1951{-
1952 if (useFastGlyphData(index, subPixelPosition)) {
useFastGlyphDa...PixelPosition)Description
TRUEnever evaluated
FALSEnever evaluated
0
1953 if (fast_glyph_data[index]) {
fast_glyph_data[index]Description
TRUEnever evaluated
FALSEnever evaluated
0
1954 delete fast_glyph_data[index];-
1955 fast_glyph_data[index] = 0;-
1956 if (fast_glyph_count > 0)
fast_glyph_count > 0Description
TRUEnever evaluated
FALSEnever evaluated
0
1957 --fast_glyph_count;
never executed: --fast_glyph_count;
0
1958 }
never executed: end of block
0
1959 } else {
never executed: end of block
0
1960 delete glyph_data.take(GlyphAndSubPixelPosition(index, subPixelPosition));-
1961 }
never executed: end of block
0
1962}-
1963-
1964void QFontEngineFT::QGlyphSet::setGlyph(glyph_t index, QFixed subPixelPosition, Glyph *glyph)-
1965{-
1966 if (useFastGlyphData(index, subPixelPosition)) {
useFastGlyphDa...PixelPosition)Description
TRUEevaluated 25429 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 333 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_QPushButton
  • tst_QRawFont
  • tst_QStackedLayout
  • tst_QStaticText
  • tst_QTableView
  • tst_QTextCursor
  • ...
333-25429
1967 if (!fast_glyph_data[index])
!fast_glyph_data[index]Description
TRUEevaluated 11896 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 13533 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
  • ...
11896-13533
1968 ++fast_glyph_count;
executed 11896 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
  • ...
11896
1969 fast_glyph_data[index] = glyph;-
1970 } else {
executed 25429 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
  • ...
25429
1971 glyph_data.insert(GlyphAndSubPixelPosition(index, subPixelPosition), glyph);-
1972 }
executed 333 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_QPushButton
  • tst_QRawFont
  • tst_QStackedLayout
  • tst_QStaticText
  • tst_QTableView
  • tst_QTextCursor
  • ...
333
1973}-
1974-
1975int QFontEngineFT::getPointInOutline(glyph_t glyph, int flags, quint32 point, QFixed *xpos, QFixed *ypos, quint32 *nPoints)-
1976{-
1977 lockFace();-
1978 bool hsubpixel = true;-
1979 int vfactor = 1;-
1980 int load_flags = loadFlags(0, Format_A8, flags, hsubpixel, vfactor);-
1981 int result = freetype->getPointInOutline(glyph, load_flags, point, xpos, ypos, nPoints);-
1982 unlockFace();-
1983 return result;
never executed: return result;
0
1984}-
1985-
1986bool QFontEngineFT::initFromFontEngine(const QFontEngineFT *fe)-
1987{-
1988 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
1989 return false;
never executed: return false;
0
1990-
1991 // Increase the reference of this QFreetypeFace since one more QFontEngineFT-
1992 // will be using it-
1993 freetype->ref.ref();-
1994-
1995 default_load_flags = fe->default_load_flags;-
1996 default_hint_style = fe->default_hint_style;-
1997 antialias = fe->antialias;-
1998 transform = fe->transform;-
1999 embolden = fe->embolden;-
2000 obliquen = fe->obliquen;-
2001 subpixelType = fe->subpixelType;-
2002 lcdFilterType = fe->lcdFilterType;-
2003 embeddedbitmap = fe->embeddedbitmap;-
2004-
2005 return true;
executed 4 times by 1 test: return true;
Executed by:
  • tst_QRawFont
4
2006}-
2007-
2008QFontEngine *QFontEngineFT::cloneWithSize(qreal pixelSize) const-
2009{-
2010 QFontDef fontDef(this->fontDef);-
2011 fontDef.pixelSize = pixelSize;-
2012 QFontEngineFT *fe = new QFontEngineFT(fontDef);-
2013 if (!fe->initFromFontEngine(this)) {
!fe->initFromFontEngine(this)Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QRawFont
0-4
2014 delete fe;-
2015 return 0;
never executed: return 0;
0
2016 } else {-
2017 return fe;
executed 4 times by 1 test: return fe;
Executed by:
  • tst_QRawFont
4
2018 }-
2019}-
2020-
2021Qt::HANDLE QFontEngineFT::handle() const-
2022{-
2023 return non_locked_face();
never executed: return non_locked_face();
0
2024}-
2025-
2026QT_END_NAMESPACE-
2027-
2028#endif // QT_NO_FREETYPE-
Source codeSwitch to Preprocessed file

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