Krita Source Code Documentation
Loading...
Searching...
No Matches
KoFontGlyphModel.cpp File Reference
#include "KoFontGlyphModel.h"
#include "KoOpenTypeFeatureInfoFactory.h"
#include <QDebug>
#include <hb.h>
#include <hb-ft.h>

Go to the source code of this file.

Classes

struct  KoFontGlyphModel::Private::CodePointInfo
 
struct  KoFontGlyphModel::Private::GlyphInfo
 
struct  KoFontGlyphModel::Private
 

Functions

static bool sortBlocks (const KoUnicodeBlockData &a, const KoUnicodeBlockData &b)
 
QString unicodeHexFromUCS (const uint codePoint)
 

Variables

static constexpr uint invalidUnicodeCodePoint = std::numeric_limits<uint>::max()
 

Function Documentation

◆ sortBlocks()

static bool sortBlocks ( const KoUnicodeBlockData & a,
const KoUnicodeBlockData & b )
static

Definition at line 529 of file KoFontGlyphModel.cpp.

529 {
530 return a.start < b.start;
531}
uint start
Start char.

References KoUnicodeBlockData::start.

◆ unicodeHexFromUCS()

QString unicodeHexFromUCS ( const uint codePoint)

Definition at line 374 of file KoFontGlyphModel.cpp.

374 {
375 QByteArray ba;
376 ba.setNum(codePoint, 16);
377 QString hex = QString(ba);
378 return QString("U+%1").arg(hex, hex.size() > 4? 6: 4, '0');
379}

Variable Documentation

◆ invalidUnicodeCodePoint

constexpr uint invalidUnicodeCodePoint = std::numeric_limits<uint>::max()
staticconstexpr

Definition at line 12 of file KoFontGlyphModel.cpp.