提交 20d6b86b 编写于 作者: J Jason Simmons

Merge pull request #2409 from jason-simmons/font_custom_load_2

Fix iOS build
......@@ -48,6 +48,12 @@ FlutterFontSelector::FlutterFontSelector(
: zip_asset_bundle_(zip_asset_bundle) {
}
FlutterFontSelector::~FlutterFontSelector() {
}
FlutterFontSelector::TypefaceAsset::TypefaceAsset() {
}
void FlutterFontSelector::parseFontManifest() {
std::vector<uint8_t> font_manifest_data;
if (!zip_asset_bundle_->GetAsBuffer(kFontManifestAssetPath,
......
......@@ -24,6 +24,8 @@ namespace shell {
// loaded from the FLX.
class FlutterFontSelector : public blink::FontSelector {
public:
~FlutterFontSelector() override;
static void install(
const scoped_refptr<mojo::asset_bundle::ZipAssetBundle>& zip_asset_bundle);
......@@ -42,6 +44,7 @@ class FlutterFontSelector : public blink::FontSelector {
private:
// A Skia typeface along with a buffer holding the raw typeface asset data.
struct TypefaceAsset {
TypefaceAsset();
RefPtr<SkTypeface> typeface;
std::vector<uint8_t> data;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册