Skip to content

Commit

Permalink
[txt] Add back FontCollection::SetDefaultFontManager (flutter#8410)
Browse files Browse the repository at this point in the history
  • Loading branch information
zanderso authored Apr 2, 2019
1 parent 5f77114 commit efbecd7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions third_party/txt/src/txt/font_collection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ void FontCollection::SetupDefaultFontManager() {
default_font_manager_ = GetDefaultFontManager();
}

void FontCollection::SetDefaultFontManager(sk_sp<SkFontMgr> font_manager) {
default_font_manager_ = font_manager;
}

void FontCollection::SetAssetFontManager(sk_sp<SkFontMgr> font_manager) {
asset_font_manager_ = font_manager;
}
Expand Down
1 change: 1 addition & 0 deletions third_party/txt/src/txt/font_collection.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class FontCollection : public std::enable_shared_from_this<FontCollection> {
size_t GetFontManagersCount() const;

void SetupDefaultFontManager();
void SetDefaultFontManager(sk_sp<SkFontMgr> font_manager);
void SetAssetFontManager(sk_sp<SkFontMgr> font_manager);
void SetDynamicFontManager(sk_sp<SkFontMgr> font_manager);
void SetTestFontManager(sk_sp<SkFontMgr> font_manager);
Expand Down

0 comments on commit efbecd7

Please sign in to comment.