Font
kn::Font Declared in kraken/graphics/Font.hpp
At a glance
25 membersFontfunction~FontfunctionsetAlignmentfunctiongetAlignmentfunctionsetHintingfunctiongetHintingfunctionsetPtSizefunctiongetPtSizefunctionsetBoldfunctionsetItalicfunctionsetUnderlinefunctionsetStrikethroughfunctionisBoldfunctionisItalicfunctionisUnderlinefunctionisStrikethroughfunctiongetHeightfunctiongetAscentfunctiongetDescentfunctionsetLineSpacingfunctiongetLineSpacingfunctionsetOutlinefunctiongetOutlinefunctionsetKerningfunctiongetKerningfunctionReference
C++ APIFont
functionFont(const std::filesystem::path &fileDir, int ptSize)No description in the source header.
~Font
function~Font()No description in the source header.
setAlignment
functionvoid setAlignment(TextAlign alignment) constNo description in the source header.
getAlignment
functionTextAlign getAlignment() constNo description in the source header.
setHinting
functionvoid setHinting(font::Hinting hinting) constNo description in the source header.
getHinting
functionfont::Hinting getHinting() constNo description in the source header.
setPtSize
functionvoid setPtSize(int pt) constNo description in the source header.
getPtSize
functionint getPtSize() constNo description in the source header.
setBold
functionvoid setBold(bool on) constNo description in the source header.
setItalic
functionvoid setItalic(bool on) constNo description in the source header.
setUnderline
functionvoid setUnderline(bool on) constNo description in the source header.
setStrikethrough
functionvoid setStrikethrough(bool on) constNo description in the source header.
isBold
functionbool isBold() constNo description in the source header.
isItalic
functionbool isItalic() constNo description in the source header.
isUnderline
functionbool isUnderline() constNo description in the source header.
isStrikethrough
functionbool isStrikethrough() constNo description in the source header.
getHeight
functionint getHeight() constNo description in the source header.
getAscent
functionint getAscent() constNo description in the source header.
getDescent
functionint getDescent() constNo description in the source header.
setLineSpacing
functionvoid setLineSpacing(int lineSpacing) constNo description in the source header.
getLineSpacing
functionint getLineSpacing() constNo description in the source header.
setOutline
functionvoid setOutline(int outline) constNo description in the source header.
getOutline
functionint getOutline() constNo description in the source header.
setKerning
functionvoid setKerning(bool enabled) constNo description in the source header.
getKerning
functionbool getKerning() constNo description in the source header.