Chromium Code Reviews
DescriptionWorkaround 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.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=26652
Patch Set 1 #Patch Set 2 : '' #
Total comments: 2
Patch Set 3 : '' #Messages
Total messages: 5 (0 generated)
|