Ubuntu-fixed Chinese Garbled text in LibreOffice and eclipse prompt box color
When I first started ubuntu, I often encountered a stack of garbled code when I opened some documents with libreoffice, And when I first used eclipse for editing, when you place the cursor in a variable or function, a black box is displayed ~ What's so uncomfortable... record it here ~
Not easy to write, reproduced please indicate the source: http://blog.csdn.net/jscese/article/details/40377121
I. LibreOffice Chinese garbled characters:
If some Chinese documents in ubuntu are garbled together, it is because there is no corresponding font. This is because ubuntu does not bring it, it seems to involve copyright issues ~ But windows does.
The solution is simple. Copy it to the configuration of libreoffice.
The path to the font that exists in windows is:/WINDOWS/Fonts/simsun. ttc
Copy to the user directory:~ /. Config/libreoffice/4/user/fonts
This path may be different for different ubuntu versions of libreoffice, which needs to be modified separately ~
Open libreoffice again to take effect!
2. Set the color of the prompt box of the sort de:
By default, the black box is used, the background is black, and the font is invisible. It is troublesome to read the code. Open the system main configuration file:
sudo gedit /usr/share/themes/Ambiance/gtk-2.0/gtkrc
The default topic isAmbiance, Other similar. After I change the color configuration scheme:
gtk-color-scheme = "base_color:#CCE8CF\n fg_color:#4c4c4c\n tooltip_fg_color:#000000\n selected_bg_color:#f07746\n selected_fg_color:#CCE8CF\n text_color:#3C3C3C\n bg_color:#F2F1F0\n tooltip_bg_color:#F2EDBC\n link_color:#DD4814"
The black background of the prompt box isTooltip_bg_colorThis variable controls the font color fromTooltip_fg_colorAnd you can change it to the literal meaning ~
Switch the topic and restart eclipse.