Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(675)

Side by Side Diff: webkit/port/platform/graphics/chromium/FontCacheLinux.cpp

Issue 12656: Linux: match average char width with Windows (Closed)
Patch Set: Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "config.h" 5 #include "config.h"
6 #include "FontCache.h" 6 #include "FontCache.h"
7 7
8 #include "AtomicString.h" 8 #include "AtomicString.h"
9 #include "CString.h" 9 #include "CString.h"
10 #include "FontDescription.h" 10 #include "FontDescription.h"
(...skipping 24 matching lines...) Expand all
35 notImplemented(); 35 notImplemented();
36 36
37 // This is just to stop GCC emitting a warning about returning a reference 37 // This is just to stop GCC emitting a warning about returning a reference
38 // to a temporary variable 38 // to a temporary variable
39 static AtomicString a; 39 static AtomicString a;
40 return a; 40 return a;
41 } 41 }
42 42
43 FontPlatformData* FontCache::getSimilarFontPlatformData(const Font& font) 43 FontPlatformData* FontCache::getSimilarFontPlatformData(const Font& font)
44 { 44 {
45 notImplemented();
agl 2008/11/25 23:24:02 I removed this because it matches the code on Wind
46 return 0; 45 return 0;
47 } 46 }
48 47
49 FontPlatformData* FontCache::getLastResortFallbackFont(const FontDescription& de scription) 48 FontPlatformData* FontCache::getLastResortFallbackFont(const FontDescription& de scription)
50 { 49 {
51 static AtomicString arialStr("Arial"); 50 static AtomicString arialStr("Arial");
52 return getCachedFontPlatformData(description, arialStr); 51 return getCachedFontPlatformData(description, arialStr);
53 } 52 }
54 53
55 void FontCache::getTraitsInFamily(const AtomicString& familyName, 54 void FontCache::getTraitsInFamily(const AtomicString& familyName,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 (style & SkTypeface::kBold) && !tf->isBold(), 103 (style & SkTypeface::kBold) && !tf->isBold(),
105 (style & SkTypeface::kItalic) && !tf->isItalic()); 104 (style & SkTypeface::kItalic) && !tf->isItalic());
106 tf->unref(); 105 tf->unref();
107 return result; 106 return result;
108 } 107 }
109 108
110 AtomicString FontCache::getGenericFontForScript(UScriptCode script, 109 AtomicString FontCache::getGenericFontForScript(UScriptCode script,
111 const FontDescription&) 110 const FontDescription&)
112 { 111 {
113 notImplemented(); 112 notImplemented();
114 return AtomicString(); 113 return AtomicString("Times New Roman");
115 } 114 }
116 115
117 } // namespace WebCore 116 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698