Flutter Engine
txt::DynamicFontManager Class Reference

#include <asset_font_manager.h>

Inheritance diagram for txt::DynamicFontManager:
txt::AssetFontManager

Public Member Functions

 DynamicFontManager ()
 
TypefaceFontAssetProviderfont_provider ()
 
- Public Member Functions inherited from txt::AssetFontManager
 AssetFontManager (std::unique_ptr< FontAssetProvider > font_provider)
 
 ~AssetFontManager () override
 

Additional Inherited Members

- Protected Member Functions inherited from txt::AssetFontManager
SkFontStyleSet * onMatchFamily (const char familyName[]) const override
 
- Protected Attributes inherited from txt::AssetFontManager
std::unique_ptr< FontAssetProviderfont_provider_
 

Detailed Description

Definition at line 85 of file asset_font_manager.h.

Constructor & Destructor Documentation

◆ DynamicFontManager()

txt::DynamicFontManager::DynamicFontManager ( )
inline

Definition at line 87 of file asset_font_manager.h.

88  : AssetFontManager(std::make_unique<TypefaceFontAssetProvider>()) {}
AssetFontManager(std::unique_ptr< FontAssetProvider > font_provider)

Member Function Documentation

◆ font_provider()

TypefaceFontAssetProvider& txt::DynamicFontManager::font_provider ( )
inline

Definition at line 90 of file asset_font_manager.h.

90  {
91  return static_cast<TypefaceFontAssetProvider&>(*font_provider_);
92  }

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