![]() |
Qt 6.x
The Qt SDK
|
#include "qfontsubset_p.h"
#include <qdebug.h>
#include <qendian.h>
#include <qpainterpath.h>
#include "private/qpdf_p.h"
#include "qfontsubset_agl.cpp"
#include <algorithm>
Go to the source code of this file.
Classes | |
class | QTtfStream |
struct | QTtfTable |
struct | qttf_head_table |
struct | qttf_hhea_table |
struct | qttf_maxp_table |
struct | qttf_name_table |
struct | qttf_font_tables |
struct | QTtfGlyph |
struct | QTtfNameRecord |
struct | TTF_POINT |
Macros | |
#define | TAG(x) char(t.tag >> 24) << char((t.tag >> 16) & 0xff) << char((t.tag >> 8) & 0xff) << char(t.tag & 0xff) |
#define | TO_TTF(x) qRound(x * 2048. / ppem) |
Typedefs | |
typedef qint16 | F2DOT14 |
typedef quint32 | Tag |
typedef quint16 | GlyphID |
typedef quint16 | Offset |
Enumerations | |
enum | Flags { OffCurve = 0 , OnCurve = (1 << 0) , XShortVector = (1 << 1) , YShortVector = (1 << 2) , Repeat = (1 << 3) , XSame = (1 << 4) , XShortPositive = (1 << 4) , YSame = (1 << 5) , YShortPositive = (1 << 5) } |
Variables | |
static const unsigned short | symbol_map [0x100] |
#define TAG | ( | x | ) | char(t.tag >> 24) << char((t.tag >> 16) & 0xff) << char((t.tag >> 8) & 0xff) << char(t.tag & 0xff) |
Definition at line 265 of file qfontsubset.cpp.
Definition at line 267 of file qfontsubset.cpp.
Definition at line 268 of file qfontsubset.cpp.
Definition at line 266 of file qfontsubset.cpp.
enum Flags |
Enumerator | |
---|---|
OffCurve | |
OnCurve | |
XShortVector | |
YShortVector | |
Repeat | |
XSame | |
XShortPositive | |
YSame | |
YShortPositive |
Definition at line 650 of file qfontsubset.cpp.
|
static |
Definition at line 1023 of file qfontsubset.cpp.
References QList< T >::at(), QList< T >::begin(), checksum(), QList< T >::end(), font, i, log2(), MAKE_TAG, qToBigEndian(), qWarning, and QList< T >::size().
Referenced by QFontSubset::toTruetype().
|
static |
Definition at line 138 of file qfontsubset.cpp.
Referenced by QFontSubset::createToUnicodeMap().
|
static |
Definition at line 379 of file qfontsubset.cpp.
References d, shift(), and sum.
Referenced by bindFont(), QmlIR::QmlUnitGenerator::generate(), QV4::Compiler::JSUnitGenerator::generateUnitChecksum(), QLocationUtils::hasValidNmeaChecksum(), and QV4::ExecutableCompilationUnit::verifyChecksum().
|
static |
Definition at line 668 of file qfontsubset.cpp.
References QList< T >::append(), QList< T >::at(), base, QPainterPath::CurveToDataElement, QPainterPath::CurveToElement, d, e, TTF_POINT::flags, i, QPainterPath::LineToElement, list, QPainterPath::MoveToElement, OffCurve, OnCurve, Q_ASSERT, Q_FALLTHROUGH, qAbs(), qRound(), QList< T >::size(), QPainterPath::Element::x, TTF_POINT::x, QPainterPath::Element::y, and TTF_POINT::y.
Referenced by generateGlyph().
Definition at line 805 of file qfontsubset.cpp.
References TTF_POINT::flags, i, Q_ASSERT, TTF_POINT::x, XSame, XShortPositive, XShortVector, TTF_POINT::y, YSame, YShortPositive, and YShortVector.
Referenced by generateGlyph().
|
static |
Definition at line 906 of file qfontsubset.cpp.
References QTtfGlyph::advanceWidth, convertPath(), convertToRelative(), getBounds(), getGlyphData(), QTtfGlyph::index, QTtfGlyph::lsb, QTtfGlyph::numContours, QTtfGlyph::numPoints, qRound(), QTtfGlyph::xMax, QTtfGlyph::xMin, QTtfGlyph::yMax, and QTtfGlyph::yMin.
Referenced by QFontSubset::toTruetype().
|
static |
Definition at line 944 of file qfontsubset.cpp.
References QByteArray::append(), QList< T >::append(), QList< T >::at(), QList< T >::begin(), QTtfTable::data, QList< T >::end(), qttf_font_tables::head, qttf_font_tables::hhea, i, qttf_head_table::indexToLocFormat, list, MAKE_TAG, qttf_font_tables::maxp, qttf_hhea_table::numberOfHMetrics, qttf_maxp_table::numGlyphs, QTtfStream::offset(), pos, Q_ASSERT, QList< T >::reserve(), QByteArray::resize(), QByteArray::size(), QList< T >::size(), and QTtfTable::tag.
Referenced by QFontSubset::toTruetype().
|
static |
Definition at line 400 of file qfontsubset.cpp.
References qttf_head_table::created, qttf_head_table::font_revision, qttf_head_table::indexToLocFormat, qttf_head_table::macStyle, MAKE_TAG, qttf_head_table::modified, Q_ASSERT, qttf_head_table::xMax, qttf_head_table::xMin, qttf_head_table::yMax, and qttf_head_table::yMin.
Referenced by QFontSubset::toTruetype().
|
static |
Definition at line 471 of file qfontsubset.cpp.
References qttf_hhea_table::ascender, qttf_hhea_table::descender, qttf_hhea_table::lineGap, MAKE_TAG, qttf_hhea_table::maxAdvanceWidth, qttf_hhea_table::minLeftSideBearing, qttf_hhea_table::minRightSideBearing, qttf_hhea_table::numberOfHMetrics, Q_ASSERT, and qttf_hhea_table::xMaxExtent.
Referenced by QFontSubset::toTruetype().
|
static |
Definition at line 522 of file qfontsubset.cpp.
References MAKE_TAG, qttf_maxp_table::maxComponentDepth, qttf_maxp_table::maxComponentElements, qttf_maxp_table::maxCompositeContours, qttf_maxp_table::maxCompositePoints, qttf_maxp_table::maxContours, qttf_maxp_table::maxPoints, qttf_maxp_table::numGlyphs, and Q_ASSERT.
Referenced by QFontSubset::toTruetype().
|
static |
Definition at line 601 of file qfontsubset.cpp.
|
static |
Definition at line 574 of file qfontsubset.cpp.
References QList< T >::append(), generateName(), list, QTtfNameRecord::nameId, QList< T >::reserve(), and QTtfNameRecord::value.
Referenced by generateName(), and QFontSubset::toTruetype().
|
static |
Definition at line 790 of file qfontsubset.cpp.
References i, qMax(), and qMin().
Referenced by generateGlyph().
|
static |
Definition at line 858 of file qfontsubset.cpp.
References QList< T >::at(), QTtfGlyph::data, i, QTtfGlyph::numContours, QTtfGlyph::numPoints, Q_ASSERT, QByteArray::resize(), QList< T >::size(), QTtfGlyph::xMax, QTtfGlyph::xMin, XSame, XShortVector, QTtfGlyph::yMax, QTtfGlyph::yMin, YSame, and YShortVector.
Referenced by generateGlyph().
Definition at line 939 of file qfontsubset.cpp.
References QTtfGlyph::index.
Definition at line 1018 of file qfontsubset.cpp.
References t2.
Q_DECLARE_TYPEINFO | ( | qttf_head_table | , |
Q_PRIMITIVE_TYPE | |||
) |
Q_DECLARE_TYPEINFO | ( | qttf_hhea_table | , |
Q_PRIMITIVE_TYPE | |||
) |
Q_DECLARE_TYPEINFO | ( | qttf_maxp_table | , |
Q_PRIMITIVE_TYPE | |||
) |
Q_DECLARE_TYPEINFO | ( | qttf_name_table | , |
Q_RELOCATABLE_TYPE | |||
) |
Q_DECLARE_TYPEINFO | ( | QTtfGlyph | , |
Q_RELOCATABLE_TYPE | |||
) |
Q_DECLARE_TYPEINFO | ( | QTtfNameRecord | , |
Q_RELOCATABLE_TYPE | |||
) |
Q_DECLARE_TYPEINFO | ( | QTtfTable | , |
Q_RELOCATABLE_TYPE | |||
) |
Q_DECLARE_TYPEINFO | ( | TTF_POINT | , |
Q_PRIMITIVE_TYPE | |||
) |
|
static |
Definition at line 21 of file qfontsubset.cpp.
Referenced by QFontSubset::glyphName().