+2004-12-02 Richard Williamson <rjw@apple.com>
+
+ Fixed build problem on Tiger8A821. Private macro and function
+ we were using have been deprecated,
+
+ Reviewed by Vicki.
+
+ * WebCoreSupport.subproj/WebTextRenderer.m:
+ (-[WebTextRenderer initWithFont:usingPrinterFont:]):
+
2004-12-01 Chris Blumenberg <cblu@apple.com>
Fixed: <rdar://problem/3879870> Flash Player unable to stop data stream from continuing to download by returning -1 from NPP_Write
#define SMALLCAPS_FONTSIZE_MULTIPLIER 0.7
#define INVALID_WIDTH -(__FLT_MAX__)
+#if !defined(ScaleEmToUnits)
+#define CONTEXT_DPI (72.0)
+
+#define ScaleEmToUnits(X, U_PER_EM) (X * ((1.0 * CONTEXT_DPI) / (CONTEXT_DPI * U_PER_EM)))
+#endif
+
// Datatypes
typedef float WebGlyphWidth;
typedef UInt32 UnicodeChar;
}
// Report the problem.
- ERROR ("Corrupt font detected, using %@ in place of %@ (%d glyphs) located at \"%@\".",
+ ERROR ("Corrupt font detected, using %@ in place of %@ located at \"%@\".",
[font familyName],
[initialFont familyName],
- ATSFontGetGlyphCount(ATSFontRefFromNSFont(initialFont)),
filePath);
}