#include <TestFontDataProvider.h>
Definition at line 19 of file TestFontDataProvider.h.
◆ TestFontDataProvider()
TestFontDataProvider::TestFontDataProvider |
( |
const std::string & |
fontFilterRegexp, |
|
|
const std::string & |
langFilterRegexp |
|
) |
| |
Definition at line 52 of file TestFontDataProvider.cpp.
54 : fFontFilter(fontFilterRegexp), fLangFilter(langFilterRegexp) {
58 "Unable to access font test metadata at location %s, check bin/fetch-fonts-testdata.",
59 testDataLocation.
c_str());
60 fJsonDom = std::make_unique<skjson::DOM>(
reinterpret_cast<const char*
>(jsonTestData->
bytes()),
61 jsonTestData->
size());
63 fFonts =
root[
"fonts"];
66 "Unable to access all %zu test fonts (only got %zu), check bin/fetch-fonts-testdata.",
67 kExpectNumFonts,
69 fSamples =
root[
"samples"];
71}
#define SkASSERTF(cond, fmt,...)
const char kTestDataJsonFilename[]
const uint8_t * bytes() const
static sk_sp< SkData > MakeFromFileName(const char path[])
const char * c_str() const
◆ next()
bool TestFontDataProvider::next |
( |
TestSet * |
testSet | ) |
|
Definition at line 73 of file TestFontDataProvider.cpp.
73 {
80 std::string fontNameStr(fontName->
str());
81 if (std::regex_match(fontNameStr,
match, fFontFilter)) {
84 testSet->fontFilename = prefixWithFontsPath(
87 getLanguageSamples((*fontsEntry)["languages"].as<skjson::ArrayValue>());
88 return true;
89 }
90 }
91 return false;
92}
static const ConicPts testSet[]
std::string_view str() const
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
◆ rewind()
void TestFontDataProvider::rewind |
( |
| ) |
|
The documentation for this class was generated from the following files: