summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/chromium/public/gtk/WebFontInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/chromium/public/gtk/WebFontInfo.h')
-rw-r--r--Source/WebKit/chromium/public/gtk/WebFontInfo.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/WebKit/chromium/public/gtk/WebFontInfo.h b/Source/WebKit/chromium/public/gtk/WebFontInfo.h
index fae792d..d603372 100644
--- a/Source/WebKit/chromium/public/gtk/WebFontInfo.h
+++ b/Source/WebKit/chromium/public/gtk/WebFontInfo.h
@@ -45,10 +45,12 @@ public:
// specified by |utf16|
// characters: a native-endian UTF16 string
// numCharacters: the number of 16-bit words in |utf16|
+ // preferredLocale: preferred locale identifier for the |characters|
+ // (e.g. "en", "ja", "zh-CN")
//
// Returns: the font family or an empty string if the request could not be
// satisfied.
- WEBKIT_API static WebCString familyForChars(const WebUChar* characters, size_t numCharacters);
+ WEBKIT_API static WebCString familyForChars(const WebUChar* characters, size_t numCharacters, const char* preferredLocale = 0);
// Fill out the given WebFontRenderStyle with the user's preferences for
// rendering the given font at the given size.