Flutter Engine
minikin::FontCollection Class Reference

#include <FontCollection.h>

Classes

class  FallbackFontProvider
 
struct  Run
 

Public Member Functions

void itemize (const uint16_t *string, size_t string_length, FontStyle style, std::vector< Run > *result) const
 
bool hasVariationSelector (uint32_t baseCodepoint, uint32_t variationSelector) const
 
FakedFont baseFontFaked (FontStyle style)
 
std::shared_ptr< FontCollectioncreateCollectionWithVariation (const std::vector< FontVariation > &variations)
 
const std::unordered_set< AxisTag > & getSupportedTags () const
 
uint32_t getId () const
 
void set_fallback_font_provider (std::unique_ptr< FallbackFontProvider > ffp)
 

Static Public Member Functions

static std::shared_ptr< minikin::FontCollectionCreate (const std::vector< std::shared_ptr< FontFamily >> &typefaces)
 

Detailed Description

Definition at line 30 of file FontCollection.h.

Member Function Documentation

◆ baseFontFaked()

FakedFont minikin::FontCollection::baseFontFaked ( FontStyle  style)

◆ Create()

static std::shared_ptr<minikin::FontCollection> minikin::FontCollection::Create ( const std::vector< std::shared_ptr< FontFamily >> &  typefaces)
static

◆ createCollectionWithVariation()

std::shared_ptr<FontCollection> minikin::FontCollection::createCollectionWithVariation ( const std::vector< FontVariation > &  variations)

◆ getId()

uint32_t minikin::FontCollection::getId ( ) const

Referenced by getSupportedTags().

◆ getSupportedTags()

const std::unordered_set<AxisTag>& minikin::FontCollection::getSupportedTags ( ) const
inline

Definition at line 73 of file FontCollection.h.

References getId().

73  {
74  return mSupportedAxes;
75  }

◆ hasVariationSelector()

bool minikin::FontCollection::hasVariationSelector ( uint32_t  baseCodepoint,
uint32_t  variationSelector 
) const

◆ itemize()

void minikin::FontCollection::itemize ( const uint16_t *  string,
size_t  string_length,
FontStyle  style,
std::vector< Run > *  result 
) const

◆ set_fallback_font_provider()

void minikin::FontCollection::set_fallback_font_provider ( std::unique_ptr< FallbackFontProvider ffp)
inline

Definition at line 79 of file FontCollection.h.

79  {
80  mFallbackFontProvider = std::move(ffp);
81  }

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