Changeset 21471 in webkit
- Timestamp:
- May 14, 2007 6:39:27 PM (17 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r21470 r21471 1 2007-05-14 Mitz Pettel <mitz@webkit.org> 2 3 Reviewed by Darin. 4 5 - fix http://bugs.webkit.org/show_bug.cgi?id=13711 6 REGRESSION - Bookmark Bar text rendering changed 7 8 No test possible since this patch affects only Safari chrome. 9 10 * platform/Font.cpp: 11 (WebCore::Font::Font): Initialize m_isPlatformFont according to whether 12 the Font object is derived from a FontPlatformData or not. 13 * platform/Font.h: 14 (WebCore::Font::isPlatformFont): Added. Returns whether this Font was 15 derived from a platform font. 16 * platform/mac/FontCacheMac.mm: 17 (WebCore::FontCache::getFontDataForCharacters): Changed to not enable 18 synthetic bold and italic in the fallback fonts if the original font 19 was derived from a platform font. 20 1 21 2007-05-14 Sam Weinig <sam@webkit.org> 2 22 -
trunk/WebCore/platform/Font.cpp
r21293 r21471 283 283 , m_letterSpacing(0) 284 284 , m_wordSpacing(0) 285 , m_isPlatformFont(false) 285 286 { 286 287 } … … 291 292 , m_letterSpacing(letterSpacing) 292 293 , m_wordSpacing(wordSpacing) 294 , m_isPlatformFont(false) 293 295 { 294 296 } … … 299 301 , m_letterSpacing(0) 300 302 , m_wordSpacing(0) 303 , m_isPlatformFont(true) 301 304 { 302 305 m_fontDescription.setUsePrinterFont(isPrinterFont); … … 311 314 , m_letterSpacing(other.m_letterSpacing) 312 315 , m_wordSpacing(other.m_wordSpacing) 316 , m_isPlatformFont(other.m_isPlatformFont) 313 317 { 314 318 } -
trunk/WebCore/platform/Font.h
r21012 r21471 127 127 bool bold() const { return m_fontDescription.bold(); } 128 128 129 bool isPlatformFont() const { return m_isPlatformFont; } 130 129 131 #if PLATFORM(QT) 130 132 operator QFont() const; … … 182 184 short m_letterSpacing; 183 185 short m_wordSpacing; 186 bool m_isPlatformFont; 184 187 }; 185 188 -
trunk/WebCore/platform/mac/FontCacheMac.mm
r21279 r21471 160 160 161 161 FontPlatformData alternateFont(substituteFont, 162 (traits & NSBoldFontMask) && !(substituteFontTraits & NSBoldFontMask),163 (traits & NSItalicFontMask) && !(substituteFontTraits & NSItalicFontMask));162 !font.isPlatformFont() && (traits & NSBoldFontMask) && !(substituteFontTraits & NSBoldFontMask), 163 !font.isPlatformFont() && (traits & NSItalicFontMask) && !(substituteFontTraits & NSItalicFontMask)); 164 164 return getCachedFontData(&alternateFont); 165 165 }
Note: See TracChangeset
for help on using the changeset viewer.