Document directory
- 1. Set the flash plug-in for Chrome browser
- 2. Set the system font
Today, in ubuntu12.10, chrome and chromium are used to access a flash website. Flash can be played, but Chinese characters are all garbled characters.
The solution is as follows:
1. Set the flash plug-in for Chrome browser
Open the Chrome browser, enter chrome: // plugins/, and find Adobe Flash Player (2 files). Two flash plug-ins are available.
Pay special attention to the location of these two plug-ins. From the location path, we can see that one is Google and the other is system.
-----------------------------
Name: Shockwave Flash
Version: 11.6.602.180
Location:/OPT/Google/chrome/Pepperflash/libpepflashplayer. So
------------------------------
Name: Shockwave Flash
Version: 11.2 r202
Location :/Usr/lib/flashplugin-Installer/Libflashplayer. So
------------------------------
Enable version 11.2 r202 (/usr/lib/flashplugin-installer/libflashplayer. So) and disable the Google Chrome version.
(/Opt/Google/Chrome/pepperflash/libpepflashplayer. So ).
2. Set the system font
Run sudo gedit/etc/fonts/CONF. d/49-sansserif.conf.
Open the character setting file, modify sans-serif under the Edit Tag to SANS, save and exit.
So far, all installation is complete. Restart the browser.
------------------------
Appendix: Modified content of 49-sansserif.conf:
<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd"><fontconfig><!-- If the font still has no generic name, add sans-serif --> <match target="pattern"> <test qual="all" name="family" compare="not_eq"> <string>sans-serif</string> </test> <test qual="all" name="family" compare="not_eq"> <string>serif</string> </test> <test qual="all" name="family" compare="not_eq"> <string>monospace</string> </test> <edit name="family" mode="append_last"> <string>sans</string> </edit> </match></fontconfig>
Original file content:
<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd"><fontconfig><!-- If the font still has no generic name, add sans-serif --> <match target="pattern"> <test qual="all" name="family" compare="not_eq"> <string>sans-serif</string> </test> <test qual="all" name="family" compare="not_eq"> <string>serif</string> </test> <test qual="all" name="family" compare="not_eq"> <string>monospace</string> </test> <edit name="family" mode="append_last"> <string>sans-serif</string> </edit> </match></fontconfig>