Flutter Engine
minikin::MinikinFont Class Referenceabstract

#include <MinikinFont.h>

Inheritance diagram for minikin::MinikinFont:
minikin::MinikinFontForTest txt::FontSkia

Public Member Functions

 MinikinFont (int32_t uniqueId)
 
virtual ~MinikinFont ()
 
virtual float GetHorizontalAdvance (uint32_t glyph_id, const MinikinPaint &paint) const =0
 
virtual void GetBounds (MinikinRect *bounds, uint32_t glyph_id, const MinikinPaint &paint) const =0
 
virtual hb_face_t * CreateHarfBuzzFace () const
 
virtual const std::vector< minikin::FontVariation > & GetAxes () const =0
 
virtual std::shared_ptr< MinikinFontcreateFontWithVariation (const std::vector< FontVariation > &) const
 
int32_t GetUniqueId () const
 

Static Public Member Functions

static uint32_t MakeTag (char c1, char c2, char c3, char c4)
 

Detailed Description

Definition at line 91 of file MinikinFont.h.

Constructor & Destructor Documentation

◆ MinikinFont()

minikin::MinikinFont::MinikinFont ( int32_t  uniqueId)
inlineexplicit

Definition at line 93 of file MinikinFont.h.

93 : mUniqueId(uniqueId) {}

◆ ~MinikinFont()

virtual minikin::MinikinFont::~MinikinFont ( )
virtual

Member Function Documentation

◆ createFontWithVariation()

virtual std::shared_ptr<MinikinFont> minikin::MinikinFont::createFontWithVariation ( const std::vector< FontVariation > &  ) const
inlinevirtual

Reimplemented in minikin::MinikinFontForTest.

Definition at line 108 of file MinikinFont.h.

109  {
110  return nullptr;
111  }

◆ CreateHarfBuzzFace()

virtual hb_face_t* minikin::MinikinFont::CreateHarfBuzzFace ( ) const
inlinevirtual

Reimplemented in txt::FontSkia.

Definition at line 104 of file MinikinFont.h.

104 { return nullptr; }

◆ GetAxes()

virtual const std::vector<minikin::FontVariation>& minikin::MinikinFont::GetAxes ( ) const
pure virtual

◆ GetBounds()

virtual void minikin::MinikinFont::GetBounds ( MinikinRect bounds,
uint32_t  glyph_id,
const MinikinPaint paint 
) const
pure virtual

◆ GetHorizontalAdvance()

virtual float minikin::MinikinFont::GetHorizontalAdvance ( uint32_t  glyph_id,
const MinikinPaint paint 
) const
pure virtual

◆ GetUniqueId()

int32_t minikin::MinikinFont::GetUniqueId ( ) const
inline

Definition at line 118 of file MinikinFont.h.

118 { return mUniqueId; }

◆ MakeTag()

static uint32_t minikin::MinikinFont::MakeTag ( char  c1,
char  c2,
char  c3,
char  c4 
)
inlinestatic

Definition at line 113 of file MinikinFont.h.

113  {
114  return ((uint32_t)c1 << 24) | ((uint32_t)c2 << 16) | ((uint32_t)c3 << 8) |
115  (uint32_t)c4;
116  }

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