Comprehensive Guide for Developers: Features, Integration, and API Reference
Represents a font face. More...
#include <pdfsdk/cxx/graphics.h>
Public Member Functions | |
| std::wstring | GetFamilyName () const |
| std::wstring | GetPostScriptName () const |
| std::wstring | GetFontName () const |
| GXFontStyle | GetStyle () const |
| GXFontFlags | GetFontFlags () const |
| std::vector< GXUnicodeRange > | GetUnicodeRanges () const |
| GXFontMetrics | GetMetrics () const |
| uint32_t | GetGlyphIndex (uint32_t unicode) const |
| ReadStream | OpenFontStream (uint32_t tableTag=0) const |
| RectF | CalculateTextBound (float fontSize, const std::wstring &text) const |
| FontFace (GXFontFace handle, bool adopt=false) noexcept | |
| FontFace (const FontFace &rhs) noexcept | |
| FontFace & | operator= (const FontFace &rhs) noexcept |
| FontFace (FontFace &&rhs) noexcept | |
| FontFace & | operator= (FontFace &&rhs) noexcept |
Static Public Member Functions | |
| static FontFace | FromSystemFont (const SystemFont &sysfont) |
| static FontFace | FromSystemFont (const std::wstring &family, GXFontStyle style=kGXFontStyleRegular) |
| static FontFace | LoadFromFile (const std::filesystem::path &path, uint32_t faceindex=0, uint32_t *ptotalfaces=nullptr) |
| static FontFace | LoadFromMemory (const void *data, size_t size, bool copyData=true, uint32_t faceindex=0, uint32_t *ptotalfaces=nullptr) |
Represents a font face.