blob: b9bc24c63f55ca7fd5af3b92773853f9c8ed10e1 [file] [log] [blame]
caryclark83ca6282015-06-10 09:31:09 -07001/*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8// Auto-generated by create_test_font.cpp
9
10static SkTestFontData gTestFonts[] = {
11 { LiberationMonoNormalPoints, LiberationMonoNormalVerbs, LiberationMonoNormalCharCodes,
12 LiberationMonoNormalCharCodesCount, LiberationMonoNormalWidths,
halcanary96fcdcc2015-08-27 07:41:13 -070013 LiberationMonoNormalMetrics, "Toy Liberation Mono", SkTypeface::kNormal, nullptr
caryclark83ca6282015-06-10 09:31:09 -070014 },
15 { LiberationMonoBoldPoints, LiberationMonoBoldVerbs, LiberationMonoBoldCharCodes,
16 LiberationMonoBoldCharCodesCount, LiberationMonoBoldWidths,
halcanary96fcdcc2015-08-27 07:41:13 -070017 LiberationMonoBoldMetrics, "Toy Liberation Mono", SkTypeface::kBold, nullptr
caryclark83ca6282015-06-10 09:31:09 -070018 },
19 { LiberationMonoItalicPoints, LiberationMonoItalicVerbs, LiberationMonoItalicCharCodes,
20 LiberationMonoItalicCharCodesCount, LiberationMonoItalicWidths,
halcanary96fcdcc2015-08-27 07:41:13 -070021 LiberationMonoItalicMetrics, "Toy Liberation Mono", SkTypeface::kItalic, nullptr
caryclark83ca6282015-06-10 09:31:09 -070022 },
23 { LiberationMonoBoldItalicPoints, LiberationMonoBoldItalicVerbs, LiberationMonoBoldItalicCharCodes,
24 LiberationMonoBoldItalicCharCodesCount, LiberationMonoBoldItalicWidths,
halcanary96fcdcc2015-08-27 07:41:13 -070025 LiberationMonoBoldItalicMetrics, "Toy Liberation Mono", SkTypeface::kBoldItalic, nullptr
caryclark83ca6282015-06-10 09:31:09 -070026 },
27 { LiberationSansNormalPoints, LiberationSansNormalVerbs, LiberationSansNormalCharCodes,
28 LiberationSansNormalCharCodesCount, LiberationSansNormalWidths,
halcanary96fcdcc2015-08-27 07:41:13 -070029 LiberationSansNormalMetrics, "Toy Liberation Sans", SkTypeface::kNormal, nullptr
caryclark83ca6282015-06-10 09:31:09 -070030 },
31 { LiberationSansBoldPoints, LiberationSansBoldVerbs, LiberationSansBoldCharCodes,
32 LiberationSansBoldCharCodesCount, LiberationSansBoldWidths,
halcanary96fcdcc2015-08-27 07:41:13 -070033 LiberationSansBoldMetrics, "Toy Liberation Sans", SkTypeface::kBold, nullptr
caryclark83ca6282015-06-10 09:31:09 -070034 },
35 { LiberationSansItalicPoints, LiberationSansItalicVerbs, LiberationSansItalicCharCodes,
36 LiberationSansItalicCharCodesCount, LiberationSansItalicWidths,
halcanary96fcdcc2015-08-27 07:41:13 -070037 LiberationSansItalicMetrics, "Toy Liberation Sans", SkTypeface::kItalic, nullptr
caryclark83ca6282015-06-10 09:31:09 -070038 },
39 { LiberationSansBoldItalicPoints, LiberationSansBoldItalicVerbs, LiberationSansBoldItalicCharCodes,
40 LiberationSansBoldItalicCharCodesCount, LiberationSansBoldItalicWidths,
halcanary96fcdcc2015-08-27 07:41:13 -070041 LiberationSansBoldItalicMetrics, "Toy Liberation Sans", SkTypeface::kBoldItalic, nullptr
caryclark83ca6282015-06-10 09:31:09 -070042 },
43 { LiberationSerifNormalPoints, LiberationSerifNormalVerbs, LiberationSerifNormalCharCodes,
44 LiberationSerifNormalCharCodesCount, LiberationSerifNormalWidths,
halcanary96fcdcc2015-08-27 07:41:13 -070045 LiberationSerifNormalMetrics, "Toy Liberation Serif", SkTypeface::kNormal, nullptr
caryclark83ca6282015-06-10 09:31:09 -070046 },
47 { LiberationSerifBoldPoints, LiberationSerifBoldVerbs, LiberationSerifBoldCharCodes,
48 LiberationSerifBoldCharCodesCount, LiberationSerifBoldWidths,
halcanary96fcdcc2015-08-27 07:41:13 -070049 LiberationSerifBoldMetrics, "Toy Liberation Serif", SkTypeface::kBold, nullptr
caryclark83ca6282015-06-10 09:31:09 -070050 },
51 { LiberationSerifItalicPoints, LiberationSerifItalicVerbs, LiberationSerifItalicCharCodes,
52 LiberationSerifItalicCharCodesCount, LiberationSerifItalicWidths,
halcanary96fcdcc2015-08-27 07:41:13 -070053 LiberationSerifItalicMetrics, "Toy Liberation Serif", SkTypeface::kItalic, nullptr
caryclark83ca6282015-06-10 09:31:09 -070054 },
55 { LiberationSerifBoldItalicPoints, LiberationSerifBoldItalicVerbs, LiberationSerifBoldItalicCharCodes,
56 LiberationSerifBoldItalicCharCodesCount, LiberationSerifBoldItalicWidths,
halcanary96fcdcc2015-08-27 07:41:13 -070057 LiberationSerifBoldItalicMetrics, "Toy Liberation Serif", SkTypeface::kBoldItalic, nullptr
caryclark83ca6282015-06-10 09:31:09 -070058 },
59};
60
61const int gTestFontsCount = (int) SK_ARRAY_COUNT(gTestFonts);
62
63struct SubFont {
64 const char* fName;
65 SkTypeface::Style fStyle;
66 SkTestFontData& fFont;
67 const char* fFile;
68};
69
70const SubFont gSubFonts[] = {
71 { "monospace", SkTypeface::kNormal, gTestFonts[0], "LiberationMono-Regular.ttf" },
72 { "monospace", SkTypeface::kBold, gTestFonts[1], "LiberationMono-Bold.ttf" },
73 { "monospace", SkTypeface::kItalic, gTestFonts[2], "LiberationMono-Italic.ttf" },
74 { "monospace", SkTypeface::kBoldItalic, gTestFonts[3], "LiberationMono-BoldItalic.ttf" },
75 { "sans-serif", SkTypeface::kNormal, gTestFonts[4], "LiberationSans-Regular.ttf" },
76 { "sans-serif", SkTypeface::kBold, gTestFonts[5], "LiberationSans-Bold.ttf" },
77 { "sans-serif", SkTypeface::kItalic, gTestFonts[6], "LiberationSans-Italic.ttf" },
78 { "sans-serif", SkTypeface::kBoldItalic, gTestFonts[7], "LiberationSans-BoldItalic.ttf" },
79 { "serif", SkTypeface::kNormal, gTestFonts[8], "LiberationSerif-Regular.ttf" },
80 { "serif", SkTypeface::kBold, gTestFonts[9], "LiberationSerif-Bold.ttf" },
81 { "serif", SkTypeface::kItalic, gTestFonts[10], "LiberationSerif-Italic.ttf" },
82 { "serif", SkTypeface::kBoldItalic, gTestFonts[11], "LiberationSerif-BoldItalic.ttf" },
83 { "Toy Liberation Mono", SkTypeface::kNormal, gTestFonts[0], "LiberationMono-Regular.ttf" },
84 { "Toy Liberation Mono", SkTypeface::kBold, gTestFonts[1], "LiberationMono-Bold.ttf" },
85 { "Toy Liberation Mono", SkTypeface::kItalic, gTestFonts[2], "LiberationMono-Italic.ttf" },
86 { "Toy Liberation Mono", SkTypeface::kBoldItalic, gTestFonts[3], "LiberationMono-BoldItalic.ttf" },
87 { "Toy Liberation Sans", SkTypeface::kNormal, gTestFonts[4], "LiberationSans-Regular.ttf" },
88 { "Toy Liberation Sans", SkTypeface::kBold, gTestFonts[5], "LiberationSans-Bold.ttf" },
89 { "Toy Liberation Sans", SkTypeface::kItalic, gTestFonts[6], "LiberationSans-Italic.ttf" },
90 { "Toy Liberation Sans", SkTypeface::kBoldItalic, gTestFonts[7], "LiberationSans-BoldItalic.ttf" },
91 { "Toy Liberation Serif", SkTypeface::kNormal, gTestFonts[8], "LiberationSerif-Regular.ttf" },
92 { "Toy Liberation Serif", SkTypeface::kBold, gTestFonts[9], "LiberationSerif-Bold.ttf" },
93 { "Toy Liberation Serif", SkTypeface::kItalic, gTestFonts[10], "LiberationSerif-Italic.ttf" },
94 { "Toy Liberation Serif", SkTypeface::kBoldItalic, gTestFonts[11], "LiberationSerif-BoldItalic.ttf" },
95};
96
97const int gSubFontsCount = (int) SK_ARRAY_COUNT(gSubFonts);
98
99const int gDefaultFontIndex = 4;