ubuntu--fix LibreOffice Chinese garbled and Eclipse hint box color

Source: Internet
Author: User
Tags gtk

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.