When I first got into Ubuntu, I got old. When you open some documents with LibreOffice, a stack of garbled characters appears. And when you first use eclipse editing, mouse over a variable or function when you pop out a black box ~ Look at the uncomfortable .... Here's a record ~
Writing is not easy, reproduced please specify the source: http://blog.csdn.net/jscese/article/details/40377121
One. LibreOffice Chinese garbled:
Ubuntu Open Some Chinese documents assume that there are stacked garbled, that is because there is no corresponding font. This is because Ubuntu itself does not carry. It seems to be a copyright issue ~ but Windows does.
The workaround is very easy to copy into the LibreOffice configuration.
The path to the font presence of WINDOWS is:/WINDOWS/FONTS/SIMSUN.TTC
Copy to User folder:~/.config/libreoffice/4/user/fonts
may be different Ubuntu version number LibreOffice This path is inconsistent, need to change ~
Once again, open the LibreOffice to take effect!
Two. Eclipse Cue box color settings:
Default is the black box, the background is All black. Font also can not see clearly, look at the code is more troublesome, open the system principal configuration file:
sudo gedit /USR/SHARE/THEMES/AMBIANCE/GTK-2.0/GTKRC
The default theme is ambiance . The others are similar. I changed the color configuration scheme:
Gtk-color-scheme = "Base_color: #CCE8CF \ n fg_color: #4c4c4c \ tooltip_fg_color: #000000 \ n selected_bg_ Color: #f07746 \ selected_fg_color: #CCE8CF \ text_color: #3C3C3C \ bg_color: #F2F1F0 \ n tooltip_bg _color: #F2EDBC \ link_color: #DD4814 "
The black background of the cue box is tooltip_bg_color this variable control, the font color by tooltip_fg_color. How to look at a person ... Others can see the literal meaning to change ~
Switch the theme again, and restarting eclipse will take effect.
ubuntu--fix LibreOffice Chinese garbled and Eclipse hint box color