(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)