PDF SDK Documentation

Comprehensive Guide for Developers: Features, Integration, and API Reference

Loading...
Searching...
No Matches
PDF::Graphics::FontFace Class Reference

Represents a font face. More...

#include <pdfsdk/cxx/graphics.h>

Inheritance diagram for PDF::Graphics::FontFace:

Public Member Functions

std::wstring GetFamilyName () const
 
std::wstring GetPostScriptName () const
 
std::wstring GetFontName () const
 
GXFontStyle GetStyle () const
 
GXFontFlags GetFontFlags () const
 
std::vector< GXUnicodeRangeGetUnicodeRanges () 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
 
FontFaceoperator= (const FontFace &rhs) noexcept
 
 FontFace (FontFace &&rhs) noexcept
 
FontFaceoperator= (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)
 

Detailed Description

Represents a font face.

See also
GXFontFace

The documentation for this class was generated from the following file: