Flutter Engine
txt::TxtFallbackFontProvider Class Reference
Inheritance diagram for txt::TxtFallbackFontProvider:
minikin::FontCollection::FallbackFontProvider

Public Member Functions

 TxtFallbackFontProvider (std::shared_ptr< FontCollection > font_collection)
 
virtual const std::shared_ptr< minikin::FontFamily > & matchFallbackFont (uint32_t ch, std::string locale)
 
- Public Member Functions inherited from minikin::FontCollection::FallbackFontProvider
virtual ~FallbackFontProvider ()=default
 

Detailed Description

Definition at line 63 of file font_collection.cc.

Constructor & Destructor Documentation

◆ TxtFallbackFontProvider()

txt::TxtFallbackFontProvider::TxtFallbackFontProvider ( std::shared_ptr< FontCollection font_collection)
inline

Definition at line 66 of file font_collection.cc.

67  : font_collection_(font_collection) {}

Member Function Documentation

◆ matchFallbackFont()

virtual const std::shared_ptr<minikin::FontFamily>& txt::TxtFallbackFontProvider::matchFallbackFont ( uint32_t  ch,
std::string  locale 
)
inlinevirtual

Implements minikin::FontCollection::FallbackFontProvider.

Definition at line 69 of file font_collection.cc.

71  {
72  std::shared_ptr<FontCollection> fc = font_collection_.lock();
73  if (fc) {
74  return fc->MatchFallbackFont(ch, locale);
75  } else {
76  return g_null_family;
77  }
78  }

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