Pass localized font name of prefs to font settings.
commita2d009e7929c06f327d91943fd81838f88ab563f
authorfalken@chromium.org <falken@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 5 Apr 2012 08:31:41 +0000 (5 08:31 +0000)
committerfalken@chromium.org <falken@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 5 Apr 2012 08:31:41 +0000 (5 08:31 +0000)
tree4e1f0d605edfabadddccfe946c830574d42808fb
parentb3c4b79861ac4ea52f2029cdb51a461868e22e0c
Pass localized font name of prefs to font settings.

On Windows, the list of font names on the system is localized for
the system locale, but the pref values may be in English. This
passes the localized font name of the pref value to settings so
it can find the font in the system font list.

This code is based on an earlier commit: http://codereview.chromium.org/119416/

BUG=120593
TEST=run Chrome on Japanese Windows, verify that font settings shows fonts like
"MS PGothic" are selected and not just the first font in the list

Review URL: http://codereview.chromium.org/9956057

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130869 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/ui/webui/options2/font_settings_handler2.cc
ui/gfx/platform_font_win.cc
ui/gfx/platform_font_win.h