#include <Font.hpp>

Classes

struct  Glyph
 
struct  Info
 
struct  Variant
 

Public Types

enum  Type { Type::Hinted, Type::Msdf }
 

Public Member Functions

 Font (Instance *inst)
 
Instanceinstance () const
 
const InfoGetInfo () const
 
const VariantSelectVariant (unsigned font_size) const
 
const VariantSelectVariantMsdf () const
 

Public Attributes

ClientMarker cm
 

Protected Attributes

Info _info
 
std::unordered_map< unsigned, Variant_variant_fixed
 
Variant _variant_msdf
 

Detailed Description

Definition at line 12 of file Font.hpp.

Member Enumeration Documentation

◆ Type

enum iv::Font::Type
strong
Enumerator
Hinted 
Msdf 

Definition at line 17 of file Font.hpp.

Constructor & Destructor Documentation

◆ Font()

iv::Font::Font ( Instance inst)

Definition at line 6 of file Font.cpp.

Member Function Documentation

◆ instance()

Instance * iv::Font::instance ( ) const

Definition at line 12 of file Font.cpp.

◆ GetInfo()

const Font::Info & iv::Font::GetInfo ( ) const

Definition at line 17 of file Font.cpp.

◆ SelectVariant()

const Font::Variant & iv::Font::SelectVariant ( unsigned  font_size) const

If hinted font with this size exists, this returns it, otherwise it returns msdf.

Definition at line 22 of file Font.cpp.

◆ SelectVariantMsdf()

const Font::Variant & iv::Font::SelectVariantMsdf ( ) const

Definition at line 31 of file Font.cpp.

Member Data Documentation

◆ cm

ClientMarker iv::Font::cm

Definition at line 15 of file Font.hpp.

◆ _info

Info iv::Font::_info
protected

Definition at line 77 of file Font.hpp.

◆ _variant_fixed

std::unordered_map< unsigned, Variant > iv::Font::_variant_fixed
protected

Definition at line 78 of file Font.hpp.

◆ _variant_msdf

Variant iv::Font::_variant_msdf
protected

Definition at line 79 of file Font.hpp.


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