CLASS v1.8.0

Font

kn::Font

Declared in kraken/graphics/Font.hpp

Reference

C++ API

Font

function
Font(const std::filesystem::path &fileDir, int ptSize)

No description in the source header.

~Font

function
~Font()

No description in the source header.

setAlignment

function
void setAlignment(TextAlign alignment) const

No description in the source header.

getAlignment

function
TextAlign getAlignment() const

No description in the source header.

setHinting

function
void setHinting(font::Hinting hinting) const

No description in the source header.

getHinting

function
font::Hinting getHinting() const

No description in the source header.

setPtSize

function
void setPtSize(int pt) const

No description in the source header.

getPtSize

function
int getPtSize() const

No description in the source header.

setBold

function
void setBold(bool on) const

No description in the source header.

setItalic

function
void setItalic(bool on) const

No description in the source header.

setUnderline

function
void setUnderline(bool on) const

No description in the source header.

void setStrikethrough(bool on) const

No description in the source header.

isBold

function
bool isBold() const

No description in the source header.

isItalic

function
bool isItalic() const

No description in the source header.

isUnderline

function
bool isUnderline() const

No description in the source header.

bool isStrikethrough() const

No description in the source header.

getHeight

function
int getHeight() const

No description in the source header.

getAscent

function
int getAscent() const

No description in the source header.

getDescent

function
int getDescent() const

No description in the source header.

void setLineSpacing(int lineSpacing) const

No description in the source header.

int getLineSpacing() const

No description in the source header.

setOutline

function
void setOutline(int outline) const

No description in the source header.

getOutline

function
int getOutline() const

No description in the source header.

setKerning

function
void setKerning(bool enabled) const

No description in the source header.

getKerning

function
bool getKerning() const

No description in the source header.

Find your next step

Start typing to search the manual.