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 528 of file KoFontGlyphModel.cpp.

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

References KoUnicodeBlockData::start.

◆ unicodeHexFromUCS()

QString unicodeHexFromUCS ( const uint codePoint)

Definition at line 373 of file KoFontGlyphModel.cpp.

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

Variable Documentation

◆ invalidUnicodeCodePoint

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

Definition at line 12 of file KoFontGlyphModel.cpp.