Ubuntu-fixed Chinese Garbled text in LibreOffice and eclipse prompt box color

Source: Internet
Author: User
Tags gtk

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.

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.