There is a platform specific file for, e.g. SimpleFontData.h, but almost all of them have identical code. We can simplify this to reduce code duplication and the chance for errors. It will also make it much clearer exactly how platforms differ in font handling.
Yay!
SimpleFontData::smallCapsFontData: All platforms identical code with different ways of defining the constant for "small" and an extra comment for FreeType. All the constahnts are 0.7, but defined in different ways. There is absolutely no need for platform specific code here. SimpleFontData::emphasisMarkFontData: All platforms identical except for the way in which they define 0.5 for the constant. SimpleFontData::boundsForGlyph SimpleFontData::widthForGlyph Already a common core with platform[] code. SimpleFontData::determinePitch Genuinely different methods SimpleFontData::createScaledFontData Genuinely different methods
Created attachment 172073 [details] Patch Easier than I thought.
Comment on attachment 172073 [details] Patch LGTM.
Committed r133362: <http://trac.webkit.org/changeset/133362>