Flutter Engine
minikin::FontCollection Class Reference

#include <FontCollection.h>

Classes

class  FallbackFontProvider
 
struct  Run
 

Public Member Functions

 FontCollection (const std::vector< std::shared_ptr< FontFamily >> &typefaces)
 
 FontCollection (std::shared_ptr< FontFamily > &&typeface)
 
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)
 

Detailed Description

Definition at line 30 of file FontCollection.h.

Constructor & Destructor Documentation

◆ FontCollection() [1/2]

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

◆ FontCollection() [2/2]

minikin::FontCollection::FontCollection ( std::shared_ptr< FontFamily > &&  typeface)
explicit

Member Function Documentation

◆ baseFontFaked()

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

◆ 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 71 of file FontCollection.h.

References getId().

71  {
72  return mSupportedAxes;
73  }

◆ 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 77 of file FontCollection.h.

77  {
78  mFallbackFontProvider = std::move(ffp);
79  }

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