WebKit:
Fixed <rdar://problem/
4032938> Safari: text layout for MS P Gothic font is corrupted
The AppKit and ATS reports that MS P Gothic is fixed pitch. It is
not! This is another case of "fixed pitch" being wrong. I've
coalesced all the special cases into our isFontFixedPitch:, and
used a dictionary to improve speed. No performance regression.
Reviewed by Maciej.
* WebCoreSupport.subproj/WebTextRenderer.m:
(-[WebTextRenderer _computeWidthForSpace]):
* WebCoreSupport.subproj/WebTextRendererFactory.m:
(-[WebTextRendererFactory clearCaches]):
(-[WebTextRendererFactory isFontFixedPitch:]):
WebCore:
Fixed <rdar://problem/
4032938> Safari: text layout for MS P Gothic font is corrupted
Remove our hacked special case now we have our own cache of
which fonts are fixed pitch.
Reviewed by Maciej.
* kwq/KWQFont.mm:
(QFont::isFixedPitch):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8836
268f45cc-cd09-0410-ab3c-
d52691b4dbfc