Cool VL Viewer forum
http://sldev.free.fr/forum/

Is there any way to change the font for the UI?
http://sldev.free.fr/forum/viewtopic.php?f=6&t=949
Page 1 of 1

Author:  ErikaThorkveld [ 2012-10-09 19:48:29 ]
Post subject:  Is there any way to change the font for the UI?

Hello all. :)

I've downloaded and installed the latest Mac build for the experimental new version (1.26.5(10)). So far I've been very happy with it: very stable, nicer graphics, decided me to keep using it instead of the old one. The only little thing that bugs me is the font used everywhere in the UI: I find it a bit hard to read, some letter spacings are strange (looks like there's a space before every 'm' for example) and some accented letters look really strange (typically the 'à'). I looked for a way to change it and I didn't find any in the 'normal' preferences. I did find two debug settings named FontSansSerif and FontSansSerifBold that seemed to be what I was after. I tried to add two TTF font files in the installation directory for Cool VL Viewer (under 'fonts') and use these, but the changes did not appear. And when I tried to log out and log back in, the changes I had done to the debug settings were gone and there wasn't any change in the font used in the UI.
Is there any way to change this font?

Thanks! :)
- Erika -

Author:  Coyote [ 2012-10-09 22:57:40 ]
Post subject:  Re: Is there any way to change the font for the UI?

I have the very same issue... the latest Mac build for the experimental new version (1.26.5(10))

Works great, but the font on UI is different than any previous build... (i think its some kind of monotype)

Author:  Henri Beauchamp [ 2012-10-09 23:14:03 ]
Post subject:  Re: Is there any way to change the font for the UI?

Most probably a problem with the new freetype pre-compiled library... The following diff applied to the sources should fix it (Kathrine, if you are reading this, could you please test it ?):
Code:
diff -urN cv126513-old/install.xml cv126513/install.xml
--- cv126513-old/install.xml   2012-10-06 11:52:37.000000000 +0200
+++ cv126513/install.xml   2012-10-10 01:11:31.000000000 +0200
@@ -444,9 +444,9 @@
           <key>darwin</key>
           <map>
             <key>md5sum</key>
-            <string>c0eacb6348e032fbc69cfdc4bd215ee4</string>
+            <string>f00144dfb597140f328774c3244f0c3e</string>
             <key>url</key>
-            <uri>http://s3.amazonaws.com/viewer-source-downloads/install_pkgs/freetype-2.4.4-darwin-20110307.tar.bz2</uri>
+            <uri>http://s3.amazonaws.com/viewer-source-downloads/install_pkgs/freetype-2.3.9-darwin-20090922.tar.bz2</uri>
           </map>
           <key>linux</key>
           <map>

Author:  kathrine [ 2012-10-14 12:22:16 ]
Post subject:  Re: Is there any way to change the font for the UI?

Its not the freetype version, just tried your patch, Henri.

Must be something else, probably font files not loading or something in that direction.

The skin files refer the DejaVuSans files as UI font, but what is shown on the screen does not look like DejaVuSans.

Author:  Andabata Thor [ 2012-10-14 13:16:16 ]
Post subject:  Re: Is there any way to change the font for the UI?

UI fonts rely on the configuration file fonts.xml.
I have it in /usr/local/CoolVLViewer-1.26.4/skins/default/xui/en-us/fonts.xml.

Author:  kathrine [ 2012-10-14 13:24:44 ]
Post subject:  Re: Is there any way to change the font for the UI?

Seems the font setup for SansSerif Fonts is broken in some way.

One way to fix it is to delete the Mt*.ttf Font files from the fonts dir, which leads to a fallback to DejaVuSansCondensed.

Alternative is to edit the skins fonts.xml file and add a proper SansSerif font of your liking. (anything ttf from /System/Library/Fonts works).
Contents/Resources/skins/default/en-us/xui/fonts.xml

Kath

Author:  kathrine [ 2012-10-14 15:57:34 ]
Post subject:  Re: Is there any way to change the font for the UI?

Just rebuild a viewer with Henri's patches to freetype, and the fonts look good again.

So expect to see a new OS X version 1.26.5.13 soon (today or tomorrow, depending on how SLOW this 2008 Mac Book Pro is with compiling), which includes the fix.

Kathrine

Author:  Coyote [ 2012-10-16 02:11:09 ]
Post subject:  Re: Is there any way to change the font for the UI?

Thanks kathrine! looks good!

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/