• rjw's avatar
    Fixed recursion problems. +[NSFont findFontLike:forString:withRange:inLanguage:] · f7f3eb17
    rjw authored
            will alternate between suggested fonts with bogus answers.  The work
            around involves adding an explicit flag indicating whether or not
            font substitution should be attempted.
    
            * Misc.subproj/IFStringTruncator.m:
            (+[IFStringTruncator centerTruncateString:toWidth:withFont:]):
            * WebCoreSupport.subproj/IFTextRenderer.h:
            * WebCoreSupport.subproj/IFTextRenderer.m:
            (-[IFTextRenderer slowDrawCharacters:length:atPoint:withColor:attemptFontSubstitution:]):
            (-[IFTextRenderer drawCharacters:length:atPoint:withColor:]):
            (-[IFTextRenderer floatWidthForCharacters:length:applyRounding:attemptFontSubstitution:]):
            (-[IFTextRenderer widthForCharacters:length:]):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1439 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    f7f3eb17
WebTextRenderer.h 813 Bytes