Workaround for bad fonts in Google Earth 5 (Linux)

Update Jan 2010: The following may not work anymore. Use with caution. See relevant discussions at http://forum.ubuntu-gr.org/viewtopic.php?f=5&t=15607 and especially http://kigka.blogspot.com/2010/11/google-6.html

Older post follows:

So you just installed Google Earth 5 and you can’t figure out what’s wrong with the fonts? If your language does not use the Latin script, you cannot see any text?

Here is the workaround. The basic info comes from this google earth forum post and the reply that suggests to mess with the QT libraries.

Google Earth 5 is based on the Qt library, and Google is using their own copies of the Qt libraries. This means that the customisation (including fonts) that you do with qtconfig-qt4 does not affect Google Earth. Here we use Ubuntu 8.10, and we simply installed the Qt libraries in order to use some Qt programs. You probably do not have qtconfig-qt4 installed, so you need to get it.

So, by following the advice in the post above and replacing key Qt libraries from Google Earth with the ones provided by our distro, solves (read: workaround) the problem. Here comes the science:

If you have a 32-bit version of Ubuntu,

cd /opt/google-earth/
sudo mv libQtCore.so.4 libQtCore.so.4.bak
sudo mv libQtGui.so.4 libQtGui.so.4.bak
sudo mv libQtNetwork.so.4 libQtNetwork.so.4.bak
sudo mv libQtWebKit.so.4 libQtWebKit.so.4.bak
sudo ln -s /usr/lib/libQtCore.so.4.4.3  libQtCore.so.4
sudo ln -s /usr/lib/libQtGui.so.4.4.3  libQtGui.so.4
sudo ln -s /usr/lib/libQtNetwork.so.4.4.3  libQtNetwork.so.4
sudo ln -s /usr/lib/libQtWebKit.so.4.4.3  libQtWebKit.so.4

If you have the 64-bit version of Ubuntu, try

cd /opt/google-earth/

sudo getlibs googleearth-bin
sudo mv libQtCore.so.4 libQtCore.so.4.bak
sudo mv libQtGui.so.4 libQtGui.so.4.bak
sudo mv libQtNetwork.so.4 libQtNetwork.so.4.bak
sudo mv libQtWebKit.so.4 libQtWebKit.so.4.bak
sudo ln -s /usr/lib32/libQtCore.so.4.4.3  libQtCore.so.4
sudo ln -s /usr/lib32/libQtGui.so.4.4.3  libQtGui.so.4
sudo ln -s /usr/lib32/libQtNetwork.so.4.4.3  libQtNetwork.so.4
sudo ln -s /usr/lib32/libQtWebKit.so.4.4.3  libQtWebKit.so.4

Requires to have getlibs installed, and when prompted, install the 32-bit versions of the packages as instructed.

Now, with qtconfig-qt you can configure the font settings.

11 comments

  • Manolis Christodoulou

    Δοκίμασα τη λύση σου. Όντως λύθηκε το πρόβλημα με τα fonts αλλά πλέον
    to Google earth δεν εμφανίζει φωτογραφίες…

  • Simos Xenitellis

    Αν δεν εμφανίζει φωτογραφίες, τότε είναι πρόβλημα με τη βιβλιοθήκη του QtWebkit.

    Έχεις σύστημα 64-bit;

  • Spyros K

    I also encountered the same problem as Manolis but in a slightly different way. Namely, panoramio would not show the photos within Google Earth 5 but call Firefox instead. Replacing the original version of QtWebKit (that which was renamed with the .bak extension) makes the problem worse in that the photos do not open at all. I am running Ubuntu 8.10 64-bit. What is happening?
    By the way, excellent solution, for me the font resolution was much more annoying than this persisting inconvenience. Thanks!

  • angelohp

    Thank you for your post!
    With Ubuntu 9.10 64 bit just install:
    1) qt4
    2) getlibs
    3) Google-Earth
    Perfect!!
    Bye bye

  • Αποστόλης Γκαρλιαρίδης

    Ευχαριστώ πολύ!!! και σε μένα δούλεψε!

  • Δημήτρης

    Εγκατέστησα το qt4 αλλά δεν ξέρω πως να αλλάξω τα font (ποιά να βάλω) για να έχω ελληνικά στο GoogleEarth.
    Καμιά ιδέα?

Leave a Reply

%d bloggers like this: