xref: /aosp_15_r20/external/skia/tools/fonts/test_font_index.inc (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1*c8dee2aaSAndroid Build Coastguard Worker/*
2*c8dee2aaSAndroid Build Coastguard Worker * Copyright 2015 Google Inc.
3*c8dee2aaSAndroid Build Coastguard Worker *
4*c8dee2aaSAndroid Build Coastguard Worker * Use of this source code is governed by a BSD-style license that can be
5*c8dee2aaSAndroid Build Coastguard Worker * found in the LICENSE file.
6*c8dee2aaSAndroid Build Coastguard Worker */
7*c8dee2aaSAndroid Build Coastguard Worker
8*c8dee2aaSAndroid Build Coastguard Worker// Auto-generated by create_test_font.cpp
9*c8dee2aaSAndroid Build Coastguard Worker
10*c8dee2aaSAndroid Build Coastguard Workerstatic SkTestFontData gTestFonts[] = {
11*c8dee2aaSAndroid Build Coastguard Worker    {    LiberationMonoNormalPoints, LiberationMonoNormalVerbs,
12*c8dee2aaSAndroid Build Coastguard Worker         LiberationMonoNormalCharCodes, LiberationMonoNormalCharCodesCount, LiberationMonoNormalWidths,
13*c8dee2aaSAndroid Build Coastguard Worker         LiberationMonoNormalMetrics, "Toy Liberation Mono", SkFontStyle(400,5,SkFontStyle::kUpright_Slant)
14*c8dee2aaSAndroid Build Coastguard Worker    },
15*c8dee2aaSAndroid Build Coastguard Worker    {    LiberationMonoBoldPoints, LiberationMonoBoldVerbs,
16*c8dee2aaSAndroid Build Coastguard Worker         LiberationMonoBoldCharCodes, LiberationMonoBoldCharCodesCount, LiberationMonoBoldWidths,
17*c8dee2aaSAndroid Build Coastguard Worker         LiberationMonoBoldMetrics, "Toy Liberation Mono", SkFontStyle(700,5,SkFontStyle::kUpright_Slant)
18*c8dee2aaSAndroid Build Coastguard Worker    },
19*c8dee2aaSAndroid Build Coastguard Worker    {    LiberationMonoItalicPoints, LiberationMonoItalicVerbs,
20*c8dee2aaSAndroid Build Coastguard Worker         LiberationMonoItalicCharCodes, LiberationMonoItalicCharCodesCount, LiberationMonoItalicWidths,
21*c8dee2aaSAndroid Build Coastguard Worker         LiberationMonoItalicMetrics, "Toy Liberation Mono", SkFontStyle(400,5,SkFontStyle::kItalic_Slant)
22*c8dee2aaSAndroid Build Coastguard Worker    },
23*c8dee2aaSAndroid Build Coastguard Worker    {    LiberationMonoBoldItalicPoints, LiberationMonoBoldItalicVerbs,
24*c8dee2aaSAndroid Build Coastguard Worker         LiberationMonoBoldItalicCharCodes, LiberationMonoBoldItalicCharCodesCount, LiberationMonoBoldItalicWidths,
25*c8dee2aaSAndroid Build Coastguard Worker         LiberationMonoBoldItalicMetrics, "Toy Liberation Mono", SkFontStyle(700,5,SkFontStyle::kItalic_Slant)
26*c8dee2aaSAndroid Build Coastguard Worker    },
27*c8dee2aaSAndroid Build Coastguard Worker    {    LiberationSansNormalPoints, LiberationSansNormalVerbs,
28*c8dee2aaSAndroid Build Coastguard Worker         LiberationSansNormalCharCodes, LiberationSansNormalCharCodesCount, LiberationSansNormalWidths,
29*c8dee2aaSAndroid Build Coastguard Worker         LiberationSansNormalMetrics, "Toy Liberation Sans", SkFontStyle(400,5,SkFontStyle::kUpright_Slant)
30*c8dee2aaSAndroid Build Coastguard Worker    },
31*c8dee2aaSAndroid Build Coastguard Worker    {    LiberationSansBoldPoints, LiberationSansBoldVerbs,
32*c8dee2aaSAndroid Build Coastguard Worker         LiberationSansBoldCharCodes, LiberationSansBoldCharCodesCount, LiberationSansBoldWidths,
33*c8dee2aaSAndroid Build Coastguard Worker         LiberationSansBoldMetrics, "Toy Liberation Sans", SkFontStyle(700,5,SkFontStyle::kUpright_Slant)
34*c8dee2aaSAndroid Build Coastguard Worker    },
35*c8dee2aaSAndroid Build Coastguard Worker    {    LiberationSansItalicPoints, LiberationSansItalicVerbs,
36*c8dee2aaSAndroid Build Coastguard Worker         LiberationSansItalicCharCodes, LiberationSansItalicCharCodesCount, LiberationSansItalicWidths,
37*c8dee2aaSAndroid Build Coastguard Worker         LiberationSansItalicMetrics, "Toy Liberation Sans", SkFontStyle(400,5,SkFontStyle::kItalic_Slant)
38*c8dee2aaSAndroid Build Coastguard Worker    },
39*c8dee2aaSAndroid Build Coastguard Worker    {    LiberationSansBoldItalicPoints, LiberationSansBoldItalicVerbs,
40*c8dee2aaSAndroid Build Coastguard Worker         LiberationSansBoldItalicCharCodes, LiberationSansBoldItalicCharCodesCount, LiberationSansBoldItalicWidths,
41*c8dee2aaSAndroid Build Coastguard Worker         LiberationSansBoldItalicMetrics, "Toy Liberation Sans", SkFontStyle(700,5,SkFontStyle::kItalic_Slant)
42*c8dee2aaSAndroid Build Coastguard Worker    },
43*c8dee2aaSAndroid Build Coastguard Worker    {    LiberationSerifNormalPoints, LiberationSerifNormalVerbs,
44*c8dee2aaSAndroid Build Coastguard Worker         LiberationSerifNormalCharCodes, LiberationSerifNormalCharCodesCount, LiberationSerifNormalWidths,
45*c8dee2aaSAndroid Build Coastguard Worker         LiberationSerifNormalMetrics, "Toy Liberation Serif", SkFontStyle(400,5,SkFontStyle::kUpright_Slant)
46*c8dee2aaSAndroid Build Coastguard Worker    },
47*c8dee2aaSAndroid Build Coastguard Worker    {    LiberationSerifBoldPoints, LiberationSerifBoldVerbs,
48*c8dee2aaSAndroid Build Coastguard Worker         LiberationSerifBoldCharCodes, LiberationSerifBoldCharCodesCount, LiberationSerifBoldWidths,
49*c8dee2aaSAndroid Build Coastguard Worker         LiberationSerifBoldMetrics, "Toy Liberation Serif", SkFontStyle(700,5,SkFontStyle::kUpright_Slant)
50*c8dee2aaSAndroid Build Coastguard Worker    },
51*c8dee2aaSAndroid Build Coastguard Worker    {    LiberationSerifItalicPoints, LiberationSerifItalicVerbs,
52*c8dee2aaSAndroid Build Coastguard Worker         LiberationSerifItalicCharCodes, LiberationSerifItalicCharCodesCount, LiberationSerifItalicWidths,
53*c8dee2aaSAndroid Build Coastguard Worker         LiberationSerifItalicMetrics, "Toy Liberation Serif", SkFontStyle(400,5,SkFontStyle::kItalic_Slant)
54*c8dee2aaSAndroid Build Coastguard Worker    },
55*c8dee2aaSAndroid Build Coastguard Worker    {    LiberationSerifBoldItalicPoints, LiberationSerifBoldItalicVerbs,
56*c8dee2aaSAndroid Build Coastguard Worker         LiberationSerifBoldItalicCharCodes, LiberationSerifBoldItalicCharCodesCount, LiberationSerifBoldItalicWidths,
57*c8dee2aaSAndroid Build Coastguard Worker         LiberationSerifBoldItalicMetrics, "Toy Liberation Serif", SkFontStyle(700,5,SkFontStyle::kItalic_Slant)
58*c8dee2aaSAndroid Build Coastguard Worker    },
59*c8dee2aaSAndroid Build Coastguard Worker};
60*c8dee2aaSAndroid Build Coastguard Worker
61*c8dee2aaSAndroid Build Coastguard Workerstruct SubFont {
62*c8dee2aaSAndroid Build Coastguard Worker    const char* fFamilyName;
63*c8dee2aaSAndroid Build Coastguard Worker    const char* fStyleName;
64*c8dee2aaSAndroid Build Coastguard Worker    SkFontStyle fStyle;
65*c8dee2aaSAndroid Build Coastguard Worker    SkTestFontData& fFont;
66*c8dee2aaSAndroid Build Coastguard Worker    const char* fFile;
67*c8dee2aaSAndroid Build Coastguard Worker};
68*c8dee2aaSAndroid Build Coastguard Worker
69*c8dee2aaSAndroid Build Coastguard Workerconst SubFont gSubFonts[] = {
70*c8dee2aaSAndroid Build Coastguard Worker    { "monospace", "Normal", SkFontStyle(400,5,SkFontStyle::kUpright_Slant), gTestFonts[0], "LiberationMono-Regular.ttf" },
71*c8dee2aaSAndroid Build Coastguard Worker    { "monospace", "Bold", SkFontStyle(700,5,SkFontStyle::kUpright_Slant), gTestFonts[1], "LiberationMono-Bold.ttf" },
72*c8dee2aaSAndroid Build Coastguard Worker    { "monospace", "Italic", SkFontStyle(400,5,SkFontStyle::kItalic_Slant), gTestFonts[2], "LiberationMono-Italic.ttf" },
73*c8dee2aaSAndroid Build Coastguard Worker    { "monospace", "Bold Italic", SkFontStyle(700,5,SkFontStyle::kItalic_Slant), gTestFonts[3], "LiberationMono-BoldItalic.ttf" },
74*c8dee2aaSAndroid Build Coastguard Worker    { "sans-serif", "Normal", SkFontStyle(400,5,SkFontStyle::kUpright_Slant), gTestFonts[4], "LiberationSans-Regular.ttf" },
75*c8dee2aaSAndroid Build Coastguard Worker    { "sans-serif", "Bold", SkFontStyle(700,5,SkFontStyle::kUpright_Slant), gTestFonts[5], "LiberationSans-Bold.ttf" },
76*c8dee2aaSAndroid Build Coastguard Worker    { "sans-serif", "Italic", SkFontStyle(400,5,SkFontStyle::kItalic_Slant), gTestFonts[6], "LiberationSans-Italic.ttf" },
77*c8dee2aaSAndroid Build Coastguard Worker    { "sans-serif", "Bold Italic", SkFontStyle(700,5,SkFontStyle::kItalic_Slant), gTestFonts[7], "LiberationSans-BoldItalic.ttf" },
78*c8dee2aaSAndroid Build Coastguard Worker    { "serif", "Normal", SkFontStyle(400,5,SkFontStyle::kUpright_Slant), gTestFonts[8], "LiberationSerif-Regular.ttf" },
79*c8dee2aaSAndroid Build Coastguard Worker    { "serif", "Bold", SkFontStyle(700,5,SkFontStyle::kUpright_Slant), gTestFonts[9], "LiberationSerif-Bold.ttf" },
80*c8dee2aaSAndroid Build Coastguard Worker    { "serif", "Italic", SkFontStyle(400,5,SkFontStyle::kItalic_Slant), gTestFonts[10], "LiberationSerif-Italic.ttf" },
81*c8dee2aaSAndroid Build Coastguard Worker    { "serif", "Bold Italic", SkFontStyle(700,5,SkFontStyle::kItalic_Slant), gTestFonts[11], "LiberationSerif-BoldItalic.ttf" },
82*c8dee2aaSAndroid Build Coastguard Worker    { "Toy Liberation Mono", "Normal", SkFontStyle(400,5,SkFontStyle::kUpright_Slant), gTestFonts[0], "LiberationMono-Regular.ttf" },
83*c8dee2aaSAndroid Build Coastguard Worker    { "Toy Liberation Mono", "Bold", SkFontStyle(700,5,SkFontStyle::kUpright_Slant), gTestFonts[1], "LiberationMono-Bold.ttf" },
84*c8dee2aaSAndroid Build Coastguard Worker    { "Toy Liberation Mono", "Italic", SkFontStyle(400,5,SkFontStyle::kItalic_Slant), gTestFonts[2], "LiberationMono-Italic.ttf" },
85*c8dee2aaSAndroid Build Coastguard Worker    { "Toy Liberation Mono", "Bold Italic", SkFontStyle(700,5,SkFontStyle::kItalic_Slant), gTestFonts[3], "LiberationMono-BoldItalic.ttf" },
86*c8dee2aaSAndroid Build Coastguard Worker    { "Toy Liberation Sans", "Normal", SkFontStyle(400,5,SkFontStyle::kUpright_Slant), gTestFonts[4], "LiberationSans-Regular.ttf" },
87*c8dee2aaSAndroid Build Coastguard Worker    { "Toy Liberation Sans", "Bold", SkFontStyle(700,5,SkFontStyle::kUpright_Slant), gTestFonts[5], "LiberationSans-Bold.ttf" },
88*c8dee2aaSAndroid Build Coastguard Worker    { "Toy Liberation Sans", "Italic", SkFontStyle(400,5,SkFontStyle::kItalic_Slant), gTestFonts[6], "LiberationSans-Italic.ttf" },
89*c8dee2aaSAndroid Build Coastguard Worker    { "Toy Liberation Sans", "Bold Italic", SkFontStyle(700,5,SkFontStyle::kItalic_Slant), gTestFonts[7], "LiberationSans-BoldItalic.ttf" },
90*c8dee2aaSAndroid Build Coastguard Worker    { "Toy Liberation Serif", "Normal", SkFontStyle(400,5,SkFontStyle::kUpright_Slant), gTestFonts[8], "LiberationSerif-Regular.ttf" },
91*c8dee2aaSAndroid Build Coastguard Worker    { "Toy Liberation Serif", "Bold", SkFontStyle(700,5,SkFontStyle::kUpright_Slant), gTestFonts[9], "LiberationSerif-Bold.ttf" },
92*c8dee2aaSAndroid Build Coastguard Worker    { "Toy Liberation Serif", "Italic", SkFontStyle(400,5,SkFontStyle::kItalic_Slant), gTestFonts[10], "LiberationSerif-Italic.ttf" },
93*c8dee2aaSAndroid Build Coastguard Worker    { "Toy Liberation Serif", "Bold Italic", SkFontStyle(700,5,SkFontStyle::kItalic_Slant), gTestFonts[11], "LiberationSerif-BoldItalic.ttf" },
94*c8dee2aaSAndroid Build Coastguard Worker};
95*c8dee2aaSAndroid Build Coastguard Worker
96*c8dee2aaSAndroid Build Coastguard Workerconst size_t gDefaultFontIndex = 4;
97