Changeset 57517 in webkit
- Timestamp:
- Apr 13, 2010 8:31:19 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r57516 r57517 1 2010-04-13 Stephan Aßmus <superstippi@gmx.de> 2 3 Reviewed by David Levin. 4 5 [Haiku] Use the system's default font family as last fall back font. 6 https://bugs.webkit.org/show_bug.cgi?id=37501 7 8 No new tests needed. 9 10 * platform/graphics/haiku/FontCacheHaiku.cpp: 11 (WebCore::FontCache::getLastResortFallbackFont): 12 - Use the system's default font family (from be_plain_font global). 13 1 14 2010-04-13 Eskil Blomfeldt <eblomfel@trolltech.com>, Jesus Sanchez-Palencia <jesus.palencia@openbossa.org> 2 15 -
trunk/WebCore/platform/graphics/haiku/FontCacheHaiku.cpp
r54601 r57517 2 2 * Copyright (C) 2006 Dirk Mueller <mueller@kde.org> 3 3 * Copyright (C) 2007 Ryan Leavengood <leavengood@gmail.com> 4 * Copyright (C) 2010 Stephan Aßmus <superstippi@gmx.de> 4 5 * 5 6 * All rights reserved. … … 38 39 #include "NotImplemented.h" 39 40 #include <String.h> 40 41 #include <interface/Font.h> 41 42 42 43 namespace WebCore { … … 60 61 SimpleFontData* FontCache::getLastResortFallbackFont(const FontDescription& fontDescription) 61 62 { 62 // FIXME: Would be even better to somehow get the user's default font here. 63 // For now we'll pick the default that the user would get without changing any prefs. 64 static AtomicString defaultString("DejaVu Serif"); 65 return getCachedFontData(fontDescription, defaultString); 63 font_family family; 64 font_style style; 65 be_plain_font->GetFamilyAndStyle(&family, &style); 66 AtomicString plainFontFamily(family); 67 return getCachedFontData(fontDescription, plainFontFamily); 66 68 } 67 69
Note: See TracChangeset
for help on using the changeset viewer.