summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/mac/WebCoreTextRenderer.mm
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/mac/WebCoreTextRenderer.mm')
-rw-r--r--WebCore/platform/mac/WebCoreTextRenderer.mm13
1 files changed, 9 insertions, 4 deletions
diff --git a/WebCore/platform/mac/WebCoreTextRenderer.mm b/WebCore/platform/mac/WebCoreTextRenderer.mm
index 51ddf8e..0cd5967 100644
--- a/WebCore/platform/mac/WebCoreTextRenderer.mm
+++ b/WebCore/platform/mac/WebCoreTextRenderer.mm
@@ -77,12 +77,17 @@ bool WebCoreShouldUseFontSmoothing()
return gShouldUseFontSmoothing;
}
-void WebCoreSetAlwaysUseATSU(bool useATSU)
+void WebCoreSetAlwaysUsesComplexTextCodePath(bool complex)
{
- Font::setCodePath(useATSU ? Font::Complex : Font::Auto);
+ Font::setCodePath(complex ? Font::Complex : Font::Auto);
}
-NSFont* WebCoreFindFont(NSString* familyName, NSFontTraitMask traits, int size)
+bool WebCoreAlwaysUsesComplexTextCodePath()
{
- return [WebFontCache fontWithFamily:familyName traits:traits size:size];
+ return Font::codePath() == Font::Complex;
+}
+
+NSFont* WebCoreFindFont(NSString* familyName, NSFontTraitMask traits, int weight, int size)
+{
+ return [WebFontCache fontWithFamily:familyName traits:traits weight:weight size:size];
}