OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "webkit/tools/test_shell/test_shell.h" | 5 #include "webkit/tools/test_shell/test_shell.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <fcntl.h> | 8 #include <fcntl.h> |
9 #include <fontconfig/fontconfig.h> | 9 #include <fontconfig/fontconfig.h> |
10 #include <gtk/gtk.h> | 10 #include <gtk/gtk.h> |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 "/usr/share/fonts/truetype/msttcorefonts/Courier_New_Italic.ttf", | 88 "/usr/share/fonts/truetype/msttcorefonts/Courier_New_Italic.ttf", |
89 "/usr/share/fonts/truetype/msttcorefonts/Impact.ttf", | 89 "/usr/share/fonts/truetype/msttcorefonts/Impact.ttf", |
90 "/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman.ttf", | 90 "/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman.ttf", |
91 "/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Bold.ttf", | 91 "/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Bold.ttf", |
92 "/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Bold_Italic.ttf", | 92 "/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Bold_Italic.ttf", |
93 "/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Italic.ttf", | 93 "/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Italic.ttf", |
94 "/usr/share/fonts/truetype/msttcorefonts/Verdana.ttf", | 94 "/usr/share/fonts/truetype/msttcorefonts/Verdana.ttf", |
95 "/usr/share/fonts/truetype/msttcorefonts/Verdana_Bold.ttf", | 95 "/usr/share/fonts/truetype/msttcorefonts/Verdana_Bold.ttf", |
96 "/usr/share/fonts/truetype/msttcorefonts/Verdana_Bold_Italic.ttf", | 96 "/usr/share/fonts/truetype/msttcorefonts/Verdana_Bold_Italic.ttf", |
97 "/usr/share/fonts/truetype/msttcorefonts/Verdana_Italic.ttf", | 97 "/usr/share/fonts/truetype/msttcorefonts/Verdana_Italic.ttf", |
| 98 "/usr/share/fonts/truetype/ttf-lucida/LucidaSansRegular.ttf", |
98 NULL | 99 NULL |
99 }; | 100 }; |
100 for (size_t i = 0; fonts[i]; ++i) { | 101 for (size_t i = 0; fonts[i]; ++i) { |
101 if (access(fonts[i], R_OK)) { | 102 if (access(fonts[i], R_OK)) { |
102 LOG(FATAL) << "You are missing " << fonts[i] << ". " | 103 LOG(FATAL) << "You are missing " << fonts[i] << ". " |
103 << "Try installing msttcorefonts. Also see " | 104 << "Try installing msttcorefonts. Also see " |
104 << "http://code.google.com/p/chromium/wiki/" | 105 << "http://code.google.com/p/chromium/wiki/" |
105 << "LinuxBuildInstructions"; | 106 << "LinuxBuildInstructions"; |
106 } | 107 } |
107 if (!FcConfigAppFontAddFile(fontcfg, (FcChar8 *) fonts[i])) | 108 if (!FcConfigAppFontAddFile(fontcfg, (FcChar8 *) fonts[i])) |
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 // of NOTIMPLEMENTED into our layout test diffs. | 709 // of NOTIMPLEMENTED into our layout test diffs. |
709 // NOTIMPLEMENTED(); | 710 // NOTIMPLEMENTED(); |
710 return false; | 711 return false; |
711 } | 712 } |
712 | 713 |
713 ScreenInfo GetScreenInfo(gfx::ViewHandle window) { | 714 ScreenInfo GetScreenInfo(gfx::ViewHandle window) { |
714 return GetScreenInfoHelper(window); | 715 return GetScreenInfoHelper(window); |
715 } | 716 } |
716 | 717 |
717 } // namespace webkit_glue | 718 } // namespace webkit_glue |
OLD | NEW |