mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 06:21:16 +01:00
[perf/benchmark-font] Only certain fonts are variable
Don't test every font as variable.
This commit is contained in:
1 parent
fb413f5202
commit
71a0cda869
1 file changed
+9
-8
@@ -16,16 +16,17 @@
|
||||
|
||||
struct test_input_t
|
||||
{
|
||||
bool is_variable;
|
||||
const char *font_path;
|
||||
} tests[] =
|
||||
{
|
||||
{SUBSET_FONT_BASE_PATH "Roboto-Regular.ttf"},
|
||||
{SUBSET_FONT_BASE_PATH "SourceSansPro-Regular.otf"},
|
||||
{SUBSET_FONT_BASE_PATH "AdobeVFPrototype.otf"},
|
||||
{SUBSET_FONT_BASE_PATH "SourceSerifVariable-Roman.ttf"},
|
||||
{SUBSET_FONT_BASE_PATH "Comfortaa-Regular-new.ttf"},
|
||||
{SUBSET_FONT_BASE_PATH "NotoNastaliqUrdu-Regular.ttf"},
|
||||
{SUBSET_FONT_BASE_PATH "NotoSerifMyanmar-Regular.otf"},
|
||||
{false, SUBSET_FONT_BASE_PATH "Roboto-Regular.ttf"},
|
||||
{false, SUBSET_FONT_BASE_PATH "SourceSansPro-Regular.otf"},
|
||||
{true , SUBSET_FONT_BASE_PATH "AdobeVFPrototype.otf"},
|
||||
{true , SUBSET_FONT_BASE_PATH "SourceSerifVariable-Roman.ttf"},
|
||||
{false, SUBSET_FONT_BASE_PATH "Comfortaa-Regular-new.ttf"},
|
||||
{false, SUBSET_FONT_BASE_PATH "NotoNastaliqUrdu-Regular.ttf"},
|
||||
{false, SUBSET_FONT_BASE_PATH "NotoSerifMyanmar-Regular.otf"},
|
||||
};
|
||||
|
||||
|
||||
@@ -194,7 +195,7 @@ static void test_operation (operation_t op,
|
||||
{
|
||||
for (auto& test_input : tests)
|
||||
{
|
||||
for (int variable = 0; variable < 2; variable++)
|
||||
for (int variable = 0; variable < int (test_input.is_variable) + 1; variable++)
|
||||
{
|
||||
bool is_var = (bool) variable;
|
||||
|
||||
|
||||
Reference in new issue
Block a user