Home
last modified time | relevance | path

Searched refs:fontInfo (Results 1 – 4 of 4) sorted by relevance

/third_party/flutter/skia/src/ports/skia_ohos/
DSkTypeface_ohos.cpp21 fontInfo = std::make_unique<FontInfo>(std::move(info)); in SkTypeface_OHOS()
31 fontInfo = std::make_unique<FontInfo>(std::move(info)); in SkTypeface_OHOS()
40 if (fontInfo) { in onOpenStream()
42 *ttcIndex = fontInfo->index; in onOpenStream()
44 if (fontInfo->stream == nullptr) { in onOpenStream()
45 fontInfo->stream = SkStream::MakeFromFile(fontInfo->fname.c_str()); in onOpenStream()
47 if (fontInfo->stream) { in onOpenStream()
48 return fontInfo->stream->duplicate(); in onOpenStream()
59 if (fontInfo == nullptr) { in onMakeFontData()
63 if (fontInfo->stream.get() == nullptr) { in onMakeFontData()
[all …]
DSkFontMgr_ohos.cpp416 FontInfo fontInfo; in makeTypeface() local
421 fontInfo.fname.set(path); in makeTypeface()
424 if (!fontScanner.scanFont(stream.get(), ttcIndex, &fontInfo.familyName, &fontInfo.style, in makeTypeface()
425 &fontInfo.isFixedWidth, nullptr)) { in makeTypeface()
431 if (!fontScanner.scanFont(stream.get(), ttcIndex, &fontInfo.familyName, &fontInfo.style, in makeTypeface()
432 &fontInfo.isFixedWidth, &axisDef)) { in makeTypeface()
439 axis, fontInfo.familyName); in makeTypeface()
440 fontInfo.setAxisSet(axisCount, axis, axisDef.data()); in makeTypeface()
444 fontInfo.stream = std::move(stream); in makeTypeface()
445 fontInfo.index = ttcIndex; in makeTypeface()
[all …]
DSkTypeface_ohos.h31 std::unique_ptr<FontInfo> fontInfo; // the font information of this typeface variable
/third_party/chromium/patch/
D0003-3.2-Beta3-1115.patch77839 + FontInfo fontInfo;
77844 + fontInfo.fname.set(path);
77847 + if (!fontScanner.scanFont(stream.get(), ttcIndex, &fontInfo.familyName, &fontInfo.style,
77848 + &fontInfo.isFixedWidth, nullptr)) {
77854 + if (!fontScanner.scanFont(stream.get(), ttcIndex, &fontInfo.familyName, &fontInfo.style,
77855 + &fontInfo.isFixedWidth, &axisDef)) {
77862 + axis, fontInfo.familyName);
77863 + fontInfo.setAxisSet(axisCount, axis, axisDef.data());
77867 + fontInfo.stream = std::move(stream);
77868 + fontInfo.index = ttcIndex;
[all …]