Perfectly adjust the eclipse font and interface display in Ubuntu

Source: Internet
Author: User

My Ubuntu has always been beautifying through some common beautification methods and installing some commercial fonts. It can be seen from the past. However, it is necessary to use eclipse in recent work,
It is found that eclipse obviously has a large font in Linux, which is opposite to the display on the Windows platform that I used to use in the past. It wastes a lot of screen space and I feel like I'm just getting stuck with it.
Sad feelings.

Start Google and find the bag:

TTF-liberation-free fonts with the same metrics as times, Arial
And courier

Metrics, which is the most beautiful as it is used in habits, can be installed through apt-get:

Sudo apt-Get install TTF-Liberation

After the installation is complete, open the font property and change the fonts of "application/document/desktop" to liberation sans.
9. Adjust the "window title" font to liberation sans bold 9, and "equal width" to liberation mono.
9; if it is a high split screen, you can adjust the font size to 10. You can adjust the font rendering to your satisfaction.

After this adjustment, if eclipse uses the default system font, it is basically still visible, but the indent of the navigation tree is too wide, you can ~ /. Gtkrc-2.0 in
Add the following content:

Java
Code
  1. Style
    "Gtkcompact"
    {
  2. Gtktreeview: vertical-separator = 1

  3. Gtktreeview: horizontal-separator = 1

  4. # Makes treeviews less spacy
  5. Gtkwidget: Focus-line-width = 1

  6. Gtkwidget: focus_padding = 0

  7. }
  8. Class
     
    "Gtkwidget"
    Style
    "Gtkcompact"

style "gtkcompact" {GtkTreeView::vertical-separator=1GtkTreeView::horizontal-separator=1# Makes treeviews less spacyGtkWidget::focus-line-width=1GtkWidget::focus_padding=0}class "GtkWidget" style "gtkcompact"


After restarting X, the effect was very good and I felt that I had gained a lot of experience.

==========

Haha, I was invited to compare the menu font with pidgin. In this way, I don't have a picture. You can compare it with yourself:

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.