diff options
author | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-09 16:05:15 +0000 |
---|---|---|
committer | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-09 16:05:15 +0000 |
commit | f463cd478e26c02b94d153b411de255c9d8b3d97 (patch) | |
tree | 66f9ef89eb0b7f99cf58fb355d2b8686851cea6c /ui/base | |
parent | 84e824f860dd98cf5947dbbc5333b6d8ef4e41db (diff) | |
download | chromium_src-f463cd478e26c02b94d153b411de255c9d8b3d97.zip chromium_src-f463cd478e26c02b94d153b411de255c9d8b3d97.tar.gz chromium_src-f463cd478e26c02b94d153b411de255c9d8b3d97.tar.bz2 |
chromeos: Add flag for subpixel-positioned text.
This adds a --enable-text-subpixel-positioning flag that can
be set to enable unhinted, subpixel-positioned text on
Chrome OS.
BUG=125066
TEST=manual: set flag and checked that each occurrence of a given character is a unique (but not necessarily beautiful) snowflake
Review URL: https://chromiumcodereview.appspot.com/10388033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136041 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/base')
-rw-r--r-- | ui/base/ui_base_switches.cc | 18 | ||||
-rw-r--r-- | ui/base/ui_base_switches.h | 1 |
2 files changed, 12 insertions, 7 deletions
diff --git a/ui/base/ui_base_switches.cc b/ui/base/ui_base_switches.cc index 67ef448..773c441 100644 --- a/ui/base/ui_base_switches.cc +++ b/ui/base/ui_base_switches.cc @@ -8,28 +8,32 @@ namespace switches { // The default device scale factor to apply to the browser UI and // the contents in the absence of a viewport meta tag. -const char kDefaultDeviceScaleFactor[] = "default-device-scale-factor"; +const char kDefaultDeviceScaleFactor[] = "default-device-scale-factor"; // Enable touch screen calibration. -const char kDisableTouchCalibration[] = "disable-touch-calibration"; +const char kDisableTouchCalibration[] = "disable-touch-calibration"; + +// Let text glyphs have X-positions that aren't snapped to the pixel grid. +const char kEnableTextSubpixelPositioning[] = + "enable-text-subpixel-positioning"; // Enable support for touch events. -const char kEnableTouchEvents[] = "enable-touch-events"; +const char kEnableTouchEvents[] = "enable-touch-events"; // The language file that we want to try to open. Of the form // language[-country] where language is the 2 letter code from ISO-639. -const char kLang[] = "lang"; +const char kLang[] = "lang"; // Load the locale resources from the given path. When running on Mac/Unix the // path should point to a locale.pak file. -const char kLocalePak[] = "locale_pak"; +const char kLocalePak[] = "locale_pak"; // Disable ui::MessageBox. This is useful when running as part of scripts that // do not have a user interface. -const char kNoMessageBox[] = "no-message-box"; +const char kNoMessageBox[] = "no-message-box"; // Enables UI changes that make it easier to use with a touchscreen. -const char kTouchOptimizedUI[] = "touch-optimized-ui"; +const char kTouchOptimizedUI[] = "touch-optimized-ui"; #if defined(OS_MACOSX) diff --git a/ui/base/ui_base_switches.h b/ui/base/ui_base_switches.h index 14b4fc7..61f978f 100644 --- a/ui/base/ui_base_switches.h +++ b/ui/base/ui_base_switches.h @@ -15,6 +15,7 @@ namespace switches { UI_EXPORT extern const char kDefaultDeviceScaleFactor[]; UI_EXPORT extern const char kDisableTouchCalibration[]; +UI_EXPORT extern const char kEnableTextSubpixelPositioning[]; UI_EXPORT extern const char kEnableTouchEvents[]; UI_EXPORT extern const char kLang[]; UI_EXPORT extern const char kLocalePak[]; |