18#include "flutter/fml/logging.h"
23 std::unique_ptr<FontAssetProvider> font_provider,
24 std::vector<std::string> test_font_family_names)
26 test_font_family_names_(test_font_family_names) {}
31 const char family_name[])
const {
34 std::string requested_name(family_name);
35 std::string sanitized_name = test_font_family_names_[0];
36 for (
const std::string& test_family : test_font_family_names_) {
37 if (requested_name == test_family) {
38 sanitized_name = test_family;
sk_sp< SkFontStyleSet > onMatchFamily(const char familyName[]) const override
~TestFontManager() override
TestFontManager(std::unique_ptr< FontAssetProvider > font_provider, std::vector< std::string > test_font_family_names)