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

Source: Internet
Author: User
Tags gtk

When I first went into Ubuntu, I was getting old. When you open some documents with LibreOffice, you get a stack of garbled characters, and when you first use eclipse editing, the mouse clicks into a variable or function when you pop 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 if the stack of garbled, it is because there is no corresponding font, this is because Ubuntu itself does not carry, as if it is involved in copyright issues ~ but Windows has

The solution is simple and is copied to the LibreOffice configuration.

The path to the font presence of WINDOWS is:/WINDOWS/FONTS/SIMSUN.TTC

Copy to User directory:~/.config/libreoffice/4/user/fonts

This path may not be the same as the Ubuntu version LibreOffice, it needs to be modified separately ~

Re-open LibreOffice to take effect!




Two. Eclipde the color setting of the cue box:

Default is the black box, the background is All black, the font is not clear, see 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 , and 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, font color from tooltip_fg_color, change to what kind of look at the individual ... Others can be read literally to change ~


Re-switch the theme and restart Eclipse to 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.