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[] = {
|
2018-05-08 01:08:02 +00:00
|
|
|
{ LiberationMonoNormalPoints, LiberationMonoNormalVerbs,
|
|
|
|
LiberationMonoNormalCharCodes, LiberationMonoNormalCharCodesCount, LiberationMonoNormalWidths,
|
2018-07-10 23:40:15 +00:00
|
|
|
LiberationMonoNormalMetrics, "Toy Liberation Mono", SkFontStyle(400,5,SkFontStyle::kUpright_Slant)
|
2015-06-10 16:31:09 +00:00
|
|
|
},
|
2018-05-08 01:08:02 +00:00
|
|
|
{ LiberationMonoBoldPoints, LiberationMonoBoldVerbs,
|
|
|
|
LiberationMonoBoldCharCodes, LiberationMonoBoldCharCodesCount, LiberationMonoBoldWidths,
|
2018-07-10 23:40:15 +00:00
|
|
|
LiberationMonoBoldMetrics, "Toy Liberation Mono", SkFontStyle(700,5,SkFontStyle::kUpright_Slant)
|
2015-06-10 16:31:09 +00:00
|
|
|
},
|
2018-05-08 01:08:02 +00:00
|
|
|
{ LiberationMonoItalicPoints, LiberationMonoItalicVerbs,
|
|
|
|
LiberationMonoItalicCharCodes, LiberationMonoItalicCharCodesCount, LiberationMonoItalicWidths,
|
2018-07-10 23:40:15 +00:00
|
|
|
LiberationMonoItalicMetrics, "Toy Liberation Mono", SkFontStyle(400,5,SkFontStyle::kItalic_Slant)
|
2015-06-10 16:31:09 +00:00
|
|
|
},
|
2018-05-08 01:08:02 +00:00
|
|
|
{ LiberationMonoBoldItalicPoints, LiberationMonoBoldItalicVerbs,
|
|
|
|
LiberationMonoBoldItalicCharCodes, LiberationMonoBoldItalicCharCodesCount, LiberationMonoBoldItalicWidths,
|
2018-07-10 23:40:15 +00:00
|
|
|
LiberationMonoBoldItalicMetrics, "Toy Liberation Mono", SkFontStyle(700,5,SkFontStyle::kItalic_Slant)
|
2015-06-10 16:31:09 +00:00
|
|
|
},
|
2018-05-08 01:08:02 +00:00
|
|
|
{ LiberationSansNormalPoints, LiberationSansNormalVerbs,
|
|
|
|
LiberationSansNormalCharCodes, LiberationSansNormalCharCodesCount, LiberationSansNormalWidths,
|
2018-07-10 23:40:15 +00:00
|
|
|
LiberationSansNormalMetrics, "Toy Liberation Sans", SkFontStyle(400,5,SkFontStyle::kUpright_Slant)
|
2015-06-10 16:31:09 +00:00
|
|
|
},
|
2018-05-08 01:08:02 +00:00
|
|
|
{ LiberationSansBoldPoints, LiberationSansBoldVerbs,
|
|
|
|
LiberationSansBoldCharCodes, LiberationSansBoldCharCodesCount, LiberationSansBoldWidths,
|
2018-07-10 23:40:15 +00:00
|
|
|
LiberationSansBoldMetrics, "Toy Liberation Sans", SkFontStyle(700,5,SkFontStyle::kUpright_Slant)
|
2015-06-10 16:31:09 +00:00
|
|
|
},
|
2018-05-08 01:08:02 +00:00
|
|
|
{ LiberationSansItalicPoints, LiberationSansItalicVerbs,
|
|
|
|
LiberationSansItalicCharCodes, LiberationSansItalicCharCodesCount, LiberationSansItalicWidths,
|
2018-07-10 23:40:15 +00:00
|
|
|
LiberationSansItalicMetrics, "Toy Liberation Sans", SkFontStyle(400,5,SkFontStyle::kItalic_Slant)
|
2015-06-10 16:31:09 +00:00
|
|
|
},
|
2018-05-08 01:08:02 +00:00
|
|
|
{ LiberationSansBoldItalicPoints, LiberationSansBoldItalicVerbs,
|
|
|
|
LiberationSansBoldItalicCharCodes, LiberationSansBoldItalicCharCodesCount, LiberationSansBoldItalicWidths,
|
2018-07-10 23:40:15 +00:00
|
|
|
LiberationSansBoldItalicMetrics, "Toy Liberation Sans", SkFontStyle(700,5,SkFontStyle::kItalic_Slant)
|
2015-06-10 16:31:09 +00:00
|
|
|
},
|
2018-05-08 01:08:02 +00:00
|
|
|
{ LiberationSerifNormalPoints, LiberationSerifNormalVerbs,
|
|
|
|
LiberationSerifNormalCharCodes, LiberationSerifNormalCharCodesCount, LiberationSerifNormalWidths,
|
2018-07-10 23:40:15 +00:00
|
|
|
LiberationSerifNormalMetrics, "Toy Liberation Serif", SkFontStyle(400,5,SkFontStyle::kUpright_Slant)
|
2015-06-10 16:31:09 +00:00
|
|
|
},
|
2018-05-08 01:08:02 +00:00
|
|
|
{ LiberationSerifBoldPoints, LiberationSerifBoldVerbs,
|
|
|
|
LiberationSerifBoldCharCodes, LiberationSerifBoldCharCodesCount, LiberationSerifBoldWidths,
|
2018-07-10 23:40:15 +00:00
|
|
|
LiberationSerifBoldMetrics, "Toy Liberation Serif", SkFontStyle(700,5,SkFontStyle::kUpright_Slant)
|
2015-06-10 16:31:09 +00:00
|
|
|
},
|
2018-05-08 01:08:02 +00:00
|
|
|
{ LiberationSerifItalicPoints, LiberationSerifItalicVerbs,
|
|
|
|
LiberationSerifItalicCharCodes, LiberationSerifItalicCharCodesCount, LiberationSerifItalicWidths,
|
2018-07-10 23:40:15 +00:00
|
|
|
LiberationSerifItalicMetrics, "Toy Liberation Serif", SkFontStyle(400,5,SkFontStyle::kItalic_Slant)
|
2015-06-10 16:31:09 +00:00
|
|
|
},
|
2018-05-08 01:08:02 +00:00
|
|
|
{ LiberationSerifBoldItalicPoints, LiberationSerifBoldItalicVerbs,
|
|
|
|
LiberationSerifBoldItalicCharCodes, LiberationSerifBoldItalicCharCodesCount, LiberationSerifBoldItalicWidths,
|
2018-07-10 23:40:15 +00:00
|
|
|
LiberationSerifBoldItalicMetrics, "Toy Liberation Serif", SkFontStyle(700,5,SkFontStyle::kItalic_Slant)
|
2015-06-10 16:31:09 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
struct SubFont {
|
2018-07-10 23:40:15 +00:00
|
|
|
const char* fFamilyName;
|
|
|
|
const char* fStyleName;
|
2016-05-31 18:42:36 +00:00
|
|
|
SkFontStyle fStyle;
|
2015-06-10 16:31:09 +00:00
|
|
|
SkTestFontData& fFont;
|
|
|
|
const char* fFile;
|
|
|
|
};
|
|
|
|
|
|
|
|
const SubFont gSubFonts[] = {
|
2018-07-10 23:40:15 +00:00
|
|
|
{ "monospace", "Normal", SkFontStyle(400,5,SkFontStyle::kUpright_Slant), gTestFonts[0], "LiberationMono-Regular.ttf" },
|
|
|
|
{ "monospace", "Bold", SkFontStyle(700,5,SkFontStyle::kUpright_Slant), gTestFonts[1], "LiberationMono-Bold.ttf" },
|
|
|
|
{ "monospace", "Italic", SkFontStyle(400,5,SkFontStyle::kItalic_Slant), gTestFonts[2], "LiberationMono-Italic.ttf" },
|
|
|
|
{ "monospace", "Bold Italic", SkFontStyle(700,5,SkFontStyle::kItalic_Slant), gTestFonts[3], "LiberationMono-BoldItalic.ttf" },
|
|
|
|
{ "sans-serif", "Normal", SkFontStyle(400,5,SkFontStyle::kUpright_Slant), gTestFonts[4], "LiberationSans-Regular.ttf" },
|
|
|
|
{ "sans-serif", "Bold", SkFontStyle(700,5,SkFontStyle::kUpright_Slant), gTestFonts[5], "LiberationSans-Bold.ttf" },
|
|
|
|
{ "sans-serif", "Italic", SkFontStyle(400,5,SkFontStyle::kItalic_Slant), gTestFonts[6], "LiberationSans-Italic.ttf" },
|
|
|
|
{ "sans-serif", "Bold Italic", SkFontStyle(700,5,SkFontStyle::kItalic_Slant), gTestFonts[7], "LiberationSans-BoldItalic.ttf" },
|
|
|
|
{ "serif", "Normal", SkFontStyle(400,5,SkFontStyle::kUpright_Slant), gTestFonts[8], "LiberationSerif-Regular.ttf" },
|
|
|
|
{ "serif", "Bold", SkFontStyle(700,5,SkFontStyle::kUpright_Slant), gTestFonts[9], "LiberationSerif-Bold.ttf" },
|
|
|
|
{ "serif", "Italic", SkFontStyle(400,5,SkFontStyle::kItalic_Slant), gTestFonts[10], "LiberationSerif-Italic.ttf" },
|
|
|
|
{ "serif", "Bold Italic", SkFontStyle(700,5,SkFontStyle::kItalic_Slant), gTestFonts[11], "LiberationSerif-BoldItalic.ttf" },
|
|
|
|
{ "Toy Liberation Mono", "Normal", SkFontStyle(400,5,SkFontStyle::kUpright_Slant), gTestFonts[0], "LiberationMono-Regular.ttf" },
|
|
|
|
{ "Toy Liberation Mono", "Bold", SkFontStyle(700,5,SkFontStyle::kUpright_Slant), gTestFonts[1], "LiberationMono-Bold.ttf" },
|
|
|
|
{ "Toy Liberation Mono", "Italic", SkFontStyle(400,5,SkFontStyle::kItalic_Slant), gTestFonts[2], "LiberationMono-Italic.ttf" },
|
|
|
|
{ "Toy Liberation Mono", "Bold Italic", SkFontStyle(700,5,SkFontStyle::kItalic_Slant), gTestFonts[3], "LiberationMono-BoldItalic.ttf" },
|
|
|
|
{ "Toy Liberation Sans", "Normal", SkFontStyle(400,5,SkFontStyle::kUpright_Slant), gTestFonts[4], "LiberationSans-Regular.ttf" },
|
|
|
|
{ "Toy Liberation Sans", "Bold", SkFontStyle(700,5,SkFontStyle::kUpright_Slant), gTestFonts[5], "LiberationSans-Bold.ttf" },
|
|
|
|
{ "Toy Liberation Sans", "Italic", SkFontStyle(400,5,SkFontStyle::kItalic_Slant), gTestFonts[6], "LiberationSans-Italic.ttf" },
|
|
|
|
{ "Toy Liberation Sans", "Bold Italic", SkFontStyle(700,5,SkFontStyle::kItalic_Slant), gTestFonts[7], "LiberationSans-BoldItalic.ttf" },
|
|
|
|
{ "Toy Liberation Serif", "Normal", SkFontStyle(400,5,SkFontStyle::kUpright_Slant), gTestFonts[8], "LiberationSerif-Regular.ttf" },
|
|
|
|
{ "Toy Liberation Serif", "Bold", SkFontStyle(700,5,SkFontStyle::kUpright_Slant), gTestFonts[9], "LiberationSerif-Bold.ttf" },
|
|
|
|
{ "Toy Liberation Serif", "Italic", SkFontStyle(400,5,SkFontStyle::kItalic_Slant), gTestFonts[10], "LiberationSerif-Italic.ttf" },
|
|
|
|
{ "Toy Liberation Serif", "Bold Italic", SkFontStyle(700,5,SkFontStyle::kItalic_Slant), gTestFonts[11], "LiberationSerif-BoldItalic.ttf" },
|
2015-06-10 16:31:09 +00:00
|
|
|
};
|
|
|
|
|
2018-05-08 01:08:02 +00:00
|
|
|
const size_t gDefaultFontIndex = 4;
|