diff options
author | yusukes@google.com <yusukes@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-19 06:26:56 +0000 |
---|---|---|
committer | yusukes@google.com <yusukes@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-19 06:26:56 +0000 |
commit | 2291d04b0d127ca1b31c4326f9297253e4399d2b (patch) | |
tree | 0557b9ea97d2d36fabc0088ed4378468e17e3c31 /chrome | |
parent | 31814a80483a091ec3730c8a09b3b74d4f87fd1c (diff) | |
download | chromium_src-2291d04b0d127ca1b31c4326f9297253e4399d2b.zip chromium_src-2291d04b0d127ca1b31c4326f9297253e4399d2b.tar.gz chromium_src-2291d04b0d127ca1b31c4326f9297253e4399d2b.tar.bz2 |
Workaround for Issue 15949: cannot use the "WenQuanYi Bitmap Song" (chinese Fonts) as the system fonts with chrome
- Adding a font fallback code to Font::CreateFont() in font_skia.cc so that Chromium can startup even when a non-scalable font is selected as an application font. If the application font is non-scalable, Font::CreateFont() loads a _scalable_ "sans" font as a fallback.
(Note: The function still never load non-scalable fonts.)
- Removed a comment for issue 12530 since the issue has been fixed.
BUG=12530
BUG=15949
TEST=Download the snap.pcf font from http://artwizaleczapka.sourceforge.net/ and put it to ~/.fonts/. Remove temporarily /etc/fonts/conf.d/70-no-bitmaps.conf and run "fc-cache -f". Start /ust/bin/gnome-appearance-properties and select "snap" as your application font. Then start chromium and verify that it does not crash (by the CHECK failure) on startup.
Review URL: http://codereview.chromium.org/207009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26652 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
0 files changed, 0 insertions, 0 deletions