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::InfoNode
 
struct  KoFontGlyphModel::Private
 

Functions

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

Function Documentation

◆ sortBlocks()

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

Definition at line 495 of file KoFontGlyphModel.cpp.

495 {
496 return a.start < b.start;
497}
uint start
Start char.

References KoUnicodeBlockData::start.

◆ unicodeHexFromUCS()

QString unicodeHexFromUCS ( const uint codePoint)

Definition at line 337 of file KoFontGlyphModel.cpp.

337 {
338 QByteArray ba;
339 ba.setNum(codePoint, 16);
340 QString hex = QString(ba);
341 return QString("U+%1").arg(hex, hex.size() > 4? 6: 4, '0');
342}