Reviewed by John Sullivan.
* WebCoreSupport.subproj/WebTextRenderer.m:
(-[WebTextRenderer _smallCapsFont]):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8555
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-02-09 Richard Williamson <rjw@apple.com>
+
+ Fixed <rdar://problem/4000073> non-screen font error on www.worldofwarcraft.com
+
+ Reviewed by John Sullivan.
+
+ * WebCoreSupport.subproj/WebTextRenderer.m:
+ (-[WebTextRenderer _smallCapsFont]):
+
=== Safari-185 ===
2005-02-07 Chris Blumenberg <cblu@apple.com>
- (NSFont *)_smallCapsFont
{
if (!smallCapsFont)
- smallCapsFont = [[NSFontManager sharedFontManager] convertFont:font toSize:([font pointSize] * SMALLCAPS_FONTSIZE_MULTIPLIER)];
- return smallCapsFont;
+ smallCapsFont = [[[NSFontManager sharedFontManager] convertFont:font toSize:([font pointSize] * SMALLCAPS_FONTSIZE_MULTIPLIER)] screenFont];
+ return usingPrinterFont ? [smallCapsFont printerFont] : smallCapsFont;
}
static inline BOOL fontContainsString(NSFont *font, NSString *string)