2015-06-10 16:31:09 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2015 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Auto-generated by create_test_font.cpp
|
|
|
|
|
|
|
|
static SkTestFontData gTestFonts[] = {
|
|
|
|
{ LiberationMonoNormalPoints, LiberationMonoNormalVerbs, LiberationMonoNormalCharCodes,
|
|
|
|
LiberationMonoNormalCharCodesCount, LiberationMonoNormalWidths,
|
2015-08-27 14:41:13 +00:00
|
|
|
LiberationMonoNormalMetrics, "Toy Liberation Mono", SkTypeface::kNormal, nullptr
|
2015-06-10 16:31:09 +00:00
|
|
|
},
|
|
|
|
{ LiberationMonoBoldPoints, LiberationMonoBoldVerbs, LiberationMonoBoldCharCodes,
|
|
|
|
LiberationMonoBoldCharCodesCount, LiberationMonoBoldWidths,
|
2015-08-27 14:41:13 +00:00
|
|
|
LiberationMonoBoldMetrics, "Toy Liberation Mono", SkTypeface::kBold, nullptr
|
2015-06-10 16:31:09 +00:00
|
|
|
},
|
|
|
|
{ LiberationMonoItalicPoints, LiberationMonoItalicVerbs, LiberationMonoItalicCharCodes,
|
|
|
|
LiberationMonoItalicCharCodesCount, LiberationMonoItalicWidths,
|
2015-08-27 14:41:13 +00:00
|
|
|
LiberationMonoItalicMetrics, "Toy Liberation Mono", SkTypeface::kItalic, nullptr
|
2015-06-10 16:31:09 +00:00
|
|
|
},
|
|
|
|
{ LiberationMonoBoldItalicPoints, LiberationMonoBoldItalicVerbs, LiberationMonoBoldItalicCharCodes,
|
|
|
|
LiberationMonoBoldItalicCharCodesCount, LiberationMonoBoldItalicWidths,
|
2015-08-27 14:41:13 +00:00
|
|
|
LiberationMonoBoldItalicMetrics, "Toy Liberation Mono", SkTypeface::kBoldItalic, nullptr
|
2015-06-10 16:31:09 +00:00
|
|
|
},
|
|
|
|
{ LiberationSansNormalPoints, LiberationSansNormalVerbs, LiberationSansNormalCharCodes,
|
|
|
|
LiberationSansNormalCharCodesCount, LiberationSansNormalWidths,
|
2015-08-27 14:41:13 +00:00
|
|
|
LiberationSansNormalMetrics, "Toy Liberation Sans", SkTypeface::kNormal, nullptr
|
2015-06-10 16:31:09 +00:00
|
|
|
},
|
|
|
|
{ LiberationSansBoldPoints, LiberationSansBoldVerbs, LiberationSansBoldCharCodes,
|
|
|
|
LiberationSansBoldCharCodesCount, LiberationSansBoldWidths,
|
2015-08-27 14:41:13 +00:00
|
|
|
LiberationSansBoldMetrics, "Toy Liberation Sans", SkTypeface::kBold, nullptr
|
2015-06-10 16:31:09 +00:00
|
|
|
},
|
|
|
|
{ LiberationSansItalicPoints, LiberationSansItalicVerbs, LiberationSansItalicCharCodes,
|
|
|
|
LiberationSansItalicCharCodesCount, LiberationSansItalicWidths,
|
2015-08-27 14:41:13 +00:00
|
|
|
LiberationSansItalicMetrics, "Toy Liberation Sans", SkTypeface::kItalic, nullptr
|
2015-06-10 16:31:09 +00:00
|
|
|
},
|
|
|
|
{ LiberationSansBoldItalicPoints, LiberationSansBoldItalicVerbs, LiberationSansBoldItalicCharCodes,
|
|
|
|
LiberationSansBoldItalicCharCodesCount, LiberationSansBoldItalicWidths,
|
2015-08-27 14:41:13 +00:00
|
|
|
LiberationSansBoldItalicMetrics, "Toy Liberation Sans", SkTypeface::kBoldItalic, nullptr
|
2015-06-10 16:31:09 +00:00
|
|
|
},
|
|
|
|
{ LiberationSerifNormalPoints, LiberationSerifNormalVerbs, LiberationSerifNormalCharCodes,
|
|
|
|
LiberationSerifNormalCharCodesCount, LiberationSerifNormalWidths,
|
2015-08-27 14:41:13 +00:00
|
|
|
LiberationSerifNormalMetrics, "Toy Liberation Serif", SkTypeface::kNormal, nullptr
|
2015-06-10 16:31:09 +00:00
|
|
|
},
|
|
|
|
{ LiberationSerifBoldPoints, LiberationSerifBoldVerbs, LiberationSerifBoldCharCodes,
|
|
|
|
LiberationSerifBoldCharCodesCount, LiberationSerifBoldWidths,
|
2015-08-27 14:41:13 +00:00
|
|
|
LiberationSerifBoldMetrics, "Toy Liberation Serif", SkTypeface::kBold, nullptr
|
2015-06-10 16:31:09 +00:00
|
|
|
},
|
|
|
|
{ LiberationSerifItalicPoints, LiberationSerifItalicVerbs, LiberationSerifItalicCharCodes,
|
|
|
|
LiberationSerifItalicCharCodesCount, LiberationSerifItalicWidths,
|
2015-08-27 14:41:13 +00:00
|
|
|
LiberationSerifItalicMetrics, "Toy Liberation Serif", SkTypeface::kItalic, nullptr
|
2015-06-10 16:31:09 +00:00
|
|
|
},
|
|
|
|
{ LiberationSerifBoldItalicPoints, LiberationSerifBoldItalicVerbs, LiberationSerifBoldItalicCharCodes,
|
|
|
|
LiberationSerifBoldItalicCharCodesCount, LiberationSerifBoldItalicWidths,
|
2015-08-27 14:41:13 +00:00
|
|
|
LiberationSerifBoldItalicMetrics, "Toy Liberation Serif", SkTypeface::kBoldItalic, nullptr
|
2015-06-10 16:31:09 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
const int gTestFontsCount = (int) SK_ARRAY_COUNT(gTestFonts);
|
|
|
|
|
|
|
|
struct SubFont {
|
|
|
|
const char* fName;
|
|
|
|
SkTypeface::Style fStyle;
|
|
|
|
SkTestFontData& fFont;
|
|
|
|
const char* fFile;
|
|
|
|
};
|
|
|
|
|
|
|
|
const SubFont gSubFonts[] = {
|
|
|
|
{ "monospace", SkTypeface::kNormal, gTestFonts[0], "LiberationMono-Regular.ttf" },
|
|
|
|
{ "monospace", SkTypeface::kBold, gTestFonts[1], "LiberationMono-Bold.ttf" },
|
|
|
|
{ "monospace", SkTypeface::kItalic, gTestFonts[2], "LiberationMono-Italic.ttf" },
|
|
|
|
{ "monospace", SkTypeface::kBoldItalic, gTestFonts[3], "LiberationMono-BoldItalic.ttf" },
|
|
|
|
{ "sans-serif", SkTypeface::kNormal, gTestFonts[4], "LiberationSans-Regular.ttf" },
|
|
|
|
{ "sans-serif", SkTypeface::kBold, gTestFonts[5], "LiberationSans-Bold.ttf" },
|
|
|
|
{ "sans-serif", SkTypeface::kItalic, gTestFonts[6], "LiberationSans-Italic.ttf" },
|
|
|
|
{ "sans-serif", SkTypeface::kBoldItalic, gTestFonts[7], "LiberationSans-BoldItalic.ttf" },
|
|
|
|
{ "serif", SkTypeface::kNormal, gTestFonts[8], "LiberationSerif-Regular.ttf" },
|
|
|
|
{ "serif", SkTypeface::kBold, gTestFonts[9], "LiberationSerif-Bold.ttf" },
|
|
|
|
{ "serif", SkTypeface::kItalic, gTestFonts[10], "LiberationSerif-Italic.ttf" },
|
|
|
|
{ "serif", SkTypeface::kBoldItalic, gTestFonts[11], "LiberationSerif-BoldItalic.ttf" },
|
|
|
|
{ "Toy Liberation Mono", SkTypeface::kNormal, gTestFonts[0], "LiberationMono-Regular.ttf" },
|
|
|
|
{ "Toy Liberation Mono", SkTypeface::kBold, gTestFonts[1], "LiberationMono-Bold.ttf" },
|
|
|
|
{ "Toy Liberation Mono", SkTypeface::kItalic, gTestFonts[2], "LiberationMono-Italic.ttf" },
|
|
|
|
{ "Toy Liberation Mono", SkTypeface::kBoldItalic, gTestFonts[3], "LiberationMono-BoldItalic.ttf" },
|
|
|
|
{ "Toy Liberation Sans", SkTypeface::kNormal, gTestFonts[4], "LiberationSans-Regular.ttf" },
|
|
|
|
{ "Toy Liberation Sans", SkTypeface::kBold, gTestFonts[5], "LiberationSans-Bold.ttf" },
|
|
|
|
{ "Toy Liberation Sans", SkTypeface::kItalic, gTestFonts[6], "LiberationSans-Italic.ttf" },
|
|
|
|
{ "Toy Liberation Sans", SkTypeface::kBoldItalic, gTestFonts[7], "LiberationSans-BoldItalic.ttf" },
|
|
|
|
{ "Toy Liberation Serif", SkTypeface::kNormal, gTestFonts[8], "LiberationSerif-Regular.ttf" },
|
|
|
|
{ "Toy Liberation Serif", SkTypeface::kBold, gTestFonts[9], "LiberationSerif-Bold.ttf" },
|
|
|
|
{ "Toy Liberation Serif", SkTypeface::kItalic, gTestFonts[10], "LiberationSerif-Italic.ttf" },
|
|
|
|
{ "Toy Liberation Serif", SkTypeface::kBoldItalic, gTestFonts[11], "LiberationSerif-BoldItalic.ttf" },
|
|
|
|
};
|
|
|
|
|
|
|
|
const int gSubFontsCount = (int) SK_ARRAY_COUNT(gSubFonts);
|
|
|
|
|
|
|
|
const int gDefaultFontIndex = 4;
|