Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2025-08-06 01:05:49



Reply to topic  [ 8 posts ] 
Is there any way to change the font for the UI? 
Author Message

Joined: 2011-12-13 14:11:38
Posts: 186
Reply with quote
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 -


2012-10-09 19:48:29
Profile

Joined: 2010-08-27 17:09:41
Posts: 14
Reply with quote
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)


2012-10-09 22:57:40
Profile

Joined: 2009-03-17 18:42:51
Posts: 6028
Reply with quote
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>


2012-10-09 23:14:03
Profile WWW

Joined: 2011-10-07 10:39:20
Posts: 214
Reply with quote
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.


2012-10-14 12:22:16
Profile

Joined: 2012-06-01 15:38:17
Posts: 29
Reply with quote
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.


2012-10-14 13:16:16
Profile

Joined: 2011-10-07 10:39:20
Posts: 214
Reply with quote
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


2012-10-14 13:24:44
Profile

Joined: 2011-10-07 10:39:20
Posts: 214
Reply with quote
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


2012-10-14 15:57:34
Profile

Joined: 2010-08-27 17:09:41
Posts: 14
Reply with quote
Thanks kathrine! looks good!


2012-10-16 02:11:09
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.