Home | History | Annotate | Download | only in chromium

Lines Matching refs:fonts

50     // We wish to make the layout tests reproducable with respect to fonts. Skia
52 // files found on the current system. This means that fonts vary based on the
56 // which only knows about a few, select, fonts.
76 std::string fontconfigPath = drtDirPath + "fonts.conf";
82 // This is the list of fonts that fontconfig will know about. It
83 // will try its best to match based only on the fonts here in. The
84 // paths are where these fonts are found on our Ubuntu boxes.
85 static const char *const fonts[] = {
86 "/usr/share/fonts/truetype/kochi/kochi-gothic.ttf",
87 "/usr/share/fonts/truetype/kochi/kochi-mincho.ttf",
88 "/usr/share/fonts/truetype/msttcorefonts/Arial.ttf",
89 "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf",
90 "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold_Italic.ttf",
91 "/usr/share/fonts/truetype/msttcorefonts/Arial_Italic.ttf",
92 "/usr/share/fonts/truetype/msttcorefonts/Comic_Sans_MS.ttf",
93 "/usr/share/fonts/truetype/msttcorefonts/Comic_Sans_MS_Bold.ttf",
94 "/usr/share/fonts/truetype/msttcorefonts/Courier_New.ttf",
95 "/usr/share/fonts/truetype/msttcorefonts/Courier_New_Bold.ttf",
96 "/usr/share/fonts/truetype/msttcorefonts/Courier_New_Bold_Italic.ttf",
97 "/usr/share/fonts/truetype/msttcorefonts/Courier_New_Italic.ttf",
98 "/usr/share/fonts/truetype/msttcorefonts/Georgia.ttf",
99 "/usr/share/fonts/truetype/msttcorefonts/Georgia_Bold.ttf",
100 "/usr/share/fonts/truetype/msttcorefonts/Georgia_Bold_Italic.ttf",
101 "/usr/share/fonts/truetype/msttcorefonts/Georgia_Italic.ttf",
102 "/usr/share/fonts/truetype/msttcorefonts/Impact.ttf",
103 "/usr/share/fonts/truetype/msttcorefonts/Trebuchet_MS.ttf",
104 "/usr/share/fonts/truetype/msttcorefonts/Trebuchet_MS_Bold.ttf",
105 "/usr/share/fonts/truetype/msttcorefonts/Trebuchet_MS_Bold_Italic.ttf",
106 "/usr/share/fonts/truetype/msttcorefonts/Trebuchet_MS_Italic.ttf",
107 "/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman.ttf",
108 "/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Bold.ttf",
109 "/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Bold_Italic.ttf",
110 "/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Italic.ttf",
111 "/usr/share/fonts/truetype/msttcorefonts/Verdana.ttf",
112 "/usr/share/fonts/truetype/msttcorefonts/Verdana_Bold.ttf",
113 "/usr/share/fonts/truetype/msttcorefonts/Verdana_Bold_Italic.ttf",
114 "/usr/share/fonts/truetype/msttcorefonts/Verdana_Italic.ttf",
116 "/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf",
117 "/usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_ta.ttf",
118 "/usr/share/fonts/truetype/ttf-indic-fonts-core/MuktiNarrow.ttf",
120 for (size_t i = 0; i < arraysize(fonts); ++i) {
121 if (access(fonts[i], R_OK)) {
124 fonts[i]);
127 if (!FcConfigAppFontAddFile(fontcfg, (FcChar8 *) fonts[i])) {
128 fprintf(stderr, "Failed to load font %s\n", fonts[i]);
133 // We special case these fonts because they're only needed in a
136 "/usr/share/fonts/truetype/ttf-lucida/LucidaSansRegular.ttf",
137 "/usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_pa.ttf",
143 if (!strcmp(font, "/usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_pa.ttf")
145 font = "/usr/share/fonts/truetype/ttf-punjabi-fonts/lohit_pa.ttf";