Why is the default font too ugly on Google Earth/Ge? Change it to your favorite one!

Source: Internet
Author: User

(Author: mahaohe. Respect the fruits of others' work. repost the results with the author or source)

I believe many of my friends are GE's Fans, but the Chinese version of GE's interface fonts (such as menu fonts) are ugly and the font size is not harmonious. What's worse, GE does not provide options to adjust the UI font style.

So how can we set the font display style of GE's main interface to what we like?

First, we need to know that GE's GUI is implemented through Qt, and Qt is a cross-platform C ++ library. The interface style of the Qt application can be controlled through the style sheet. Then I will talk about how to change the GE Font:

1. in linux, you can use the qt-config command to set the default font of the Qt program. It can also be solved by specifying command line parameters as mentioned in 2.

2. In windows, it seems that qt-config cannot be used, but we can use style sheets to control GE font styles. Qt programmers are no longer familiar with GUI style control through style sheets. However, we do not need to modify the GE source code here, and google will not give it! Fortunately, all Qt applications can specify the style sheet by passing a parameter-stylesheet in the command line. Next, create a sample table file gestylesheet.qtss(example file. The file name can be retrieved and stored in the same directory as googleearth.exe. (if the default installation directory of GE is C: \ Program Files \ Google Earth \ client \).

The content of gestylesheet. qtss is as follows:

* {Font-family: SimSun; font-size: 9pt}

Set the font to and the font size. You can also set it to another font, for example, change SimSun to:

Then, in the Start Menu, modify the shortcut for starting GE, right-click "Google Earth", and on the "shortcut" Page, set "target":
"C: \ Program Files \ Google Earth \ client \ googleearth.exe"
Changed:
"C: \ Program Files \ Google Earth \ client \ googleearth.exe"-stylesheet = gestylesheet. qtss

Start GE from the Start menu and you will find that the GE font has become the font you need. Is the effect of:

  

 

Compared with the original interface in idea, our custom interface is much more beautiful than it is!

   

(Author: mahaohe. Respect the fruits of others' work. repost the results with the author or source)

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.