Home
last modified time | relevance | path

Searched refs:fontAsset (Results 1 – 5 of 5) sorted by relevance

/third_party/flutter/skia/src/pdf/
DSkPDFFont.cpp296 std::unique_ptr<SkStreamAsset> fontAsset = face->openStream(&ttcIndex); in emit_subset_type0() local
297 size_t fontSize = fontAsset ? fontAsset->getLength() : 0; in emit_subset_type0()
301 "or kTrueType_Font.\n", face, fontAsset.get()); in emit_subset_type0()
309 stream_to_data(std::move(fontAsset)), font.glyphUsage(), in emit_subset_type0()
323 fontAsset = face->openStream(&ttcIndex); in emit_subset_type0()
324 SkASSERT(fontAsset); in emit_subset_type0()
325 SkASSERT(fontAsset->getLength() == fontSize); in emit_subset_type0()
326 if (!fontAsset || fontAsset->getLength() == 0) { break; } in emit_subset_type0()
331 SkPDFStreamOut(std::move(tmp), std::move(fontAsset), in emit_subset_type0()
339 SkPDFStreamOut(std::move(tmp), std::move(fontAsset), in emit_subset_type0()
/third_party/skia/src/pdf/
DSkPDFFont.cpp299 std::unique_ptr<SkStreamAsset> fontAsset = face->openStream(&ttcIndex); in emit_subset_type0() local
300 size_t fontSize = fontAsset ? fontAsset->getLength() : 0; in emit_subset_type0()
304 "or kTrueType_Font.\n", face, fontAsset.get()); in emit_subset_type0()
312 stream_to_data(std::move(fontAsset)), font.glyphUsage(), in emit_subset_type0()
326 fontAsset = face->openStream(&ttcIndex); in emit_subset_type0()
327 SkASSERT(fontAsset); in emit_subset_type0()
328 SkASSERT(fontAsset->getLength() == fontSize); in emit_subset_type0()
329 if (!fontAsset || fontAsset->getLength() == 0) { break; } in emit_subset_type0()
334 SkPDFStreamOut(std::move(tmp), std::move(fontAsset), in emit_subset_type0()
342 SkPDFStreamOut(std::move(tmp), std::move(fontAsset), in emit_subset_type0()
/third_party/flutter/flutter/packages/flutter_tools/lib/src/
Dasset.dart448 for (FontAsset fontAsset in font.fontAssets) {
449 final Uri assetUri = fontAsset.assetUri;
453 fontAsset.assetUri,
454 weight: fontAsset.weight,
455 style: fontAsset.style,
460 weight: fontAsset.weight,
461 style: fontAsset.style,
572 for (FontAsset fontAsset in font.fontAssets) {
576 fontAsset.assetUri,
580 printError('Error: unable to locate asset entry in pubspec.yaml: "${fontAsset.assetUri}".');
/third_party/flutter/engine/flutter/lib/web_ui/lib/src/engine/text/
Dfont_collection.dart69 final Map<String, dynamic> fontAsset = fontAssetItem;
70 final String asset = fontAsset['asset'];
72 for (String descriptor in fontAsset.keys) {
74 descriptors[descriptor] = '${fontAsset[descriptor]}';
/third_party/flutter/flutter/packages/flutter_tools/test/general.shard/
Dflutter_manifest_test.dart107 final FontAsset fontAsset = assets[0];
108 expect(fontAsset.assetUri.path, 'a/bar');
109 expect(fontAsset.weight, isNull);
110 expect(fontAsset.style, isNull);