Commit f4ff8835 authored by rouslan@chromium.org's avatar rouslan@chromium.org

[rac] Use the system-default fixed font family

Use the system-default fixed font family in rac dialog, instead of hard
coding it.

BUG=291272

Review URL: https://chromiumcodereview.appspot.com/24105005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223511 0039d316-1c4b-4281-b951-d872f2087c98
parent 8d993b39
...@@ -74,6 +74,7 @@ ...@@ -74,6 +74,7 @@
#include "grit/chromium_strings.h" #include "grit/chromium_strings.h"
#include "grit/component_strings.h" #include "grit/component_strings.h"
#include "grit/generated_resources.h" #include "grit/generated_resources.h"
#include "grit/platform_locale_settings.h"
#include "grit/theme_resources.h" #include "grit/theme_resources.h"
#include "grit/webkit_resources.h" #include "grit/webkit_resources.h"
#include "net/cert/cert_status_flags.h" #include "net/cert/cert_status_flags.h"
...@@ -479,7 +480,9 @@ gfx::Image GetGeneratedCardImage(const base::string16& card_number, ...@@ -479,7 +480,9 @@ gfx::Image GetGeneratedCardImage(const base::string16& card_number,
canvas.DrawRoundRect(display_rect, 8, paint); canvas.DrawRoundRect(display_rect, 8, paint);
display_rect.Inset(20, 0, 0, 0); display_rect.Inset(20, 0, 0, 0);
gfx::Font monospace("monospace", 18); ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
gfx::Font monospace(
UTF16ToUTF8(rb.GetLocalizedString(IDS_FIXED_FONT_FAMILY)), 18);
gfx::ShadowValues shadows; gfx::ShadowValues shadows;
shadows.push_back(gfx::ShadowValue(gfx::Point(0, 1), 1.0, SK_ColorBLACK)); shadows.push_back(gfx::ShadowValue(gfx::Point(0, 1), 1.0, SK_ColorBLACK));
// TODO(estade): use DrawStringRectWithShadows(). // TODO(estade): use DrawStringRectWithShadows().
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment