Replace DejaVuSans font by FreeSans font

Describe your experience with the latest version of FreeOrion to help us improve it.
Forum rules
Always mention the exact version of FreeOrion you are testing.

When reporting an issue regarding the AI, if possible provide the relevant AI log file and a save game file that demonstrates the issue.
Message
Author
User avatar
Ouaz
Dyson Forest
Posts: 215
Joined: Wed Aug 13, 2014 7:21 pm
Location: France

Replace DejaVuSans font by FreeSans font

#1 Post by Ouaz » Fri Jul 29, 2016 7:10 pm

Object: replace the default font (DejaVuSans) in FO

I get used to the new default font size (15pt) implemented by Geoff (finally, it's a good idea), but the DejaVu font is definitely ugly now in big size, mostly because the letter height is too small (letters seems squizzed vertically) and the letter-spacing is too big.

So I searched for another GNU/GPL font, and after many tries in FO with different fonts, I found FreeSans (True Type) font (GNU Freefont) that fits very well with FO UI (more visual impact at first glance, better lettering than DejaVu)

Official site: http://savannah.gnu.org/projects/freefont/
Download: freefont-ttf-20120503.zip (contains FreeSans, FreeSansBold, FreeSansBoldOblique, FreeSansOblique).

Some comparison screenshots:

DejaVuSans (Text: 15pt ; Windows Title: 16pt)
FreeSans (Text: 15 ; Windows Title: 16pt)

Map Window
map_deja.PNG
map_deja.PNG (180.07 KiB) Viewed 369 times
map_free15.PNG
map_free15.PNG (190.38 KiB) Viewed 369 times
Last edited by Ouaz on Mon Aug 01, 2016 1:45 am, edited 11 times in total.
I release every updated file under the CC-BY-SA 3.0 license.

User avatar
Ouaz
Dyson Forest
Posts: 215
Joined: Wed Aug 13, 2014 7:21 pm
Location: France

Re: Replace DejaVuSans font by FreeSans font

#2 Post by Ouaz » Fri Jul 29, 2016 7:12 pm

Production Window
prod_deja.png
prod_deja.png (35.09 KiB) Viewed 368 times
prod_free15.png
prod_free15.png (35.47 KiB) Viewed 368 times
Last edited by Ouaz on Sun Jul 31, 2016 10:38 pm, edited 2 times in total.
I release every updated file under the CC-BY-SA 3.0 license.

User avatar
Ouaz
Dyson Forest
Posts: 215
Joined: Wed Aug 13, 2014 7:21 pm
Location: France

Re: Replace DejaVuSans font by FreeSans font

#3 Post by Ouaz » Fri Jul 29, 2016 7:14 pm

Design Window
design_deja.PNG
design_deja.PNG (142.42 KiB) Viewed 368 times
design_free15.PNG
design_free15.PNG (151.28 KiB) Viewed 368 times
Last edited by Ouaz on Sun Jul 31, 2016 10:39 pm, edited 1 time in total.
I release every updated file under the CC-BY-SA 3.0 license.

User avatar
Ouaz
Dyson Forest
Posts: 215
Joined: Wed Aug 13, 2014 7:21 pm
Location: France

Re: Replace DejaVuSans font by FreeSans font

#4 Post by Ouaz » Fri Jul 29, 2016 7:21 pm

Tech List View
list_deja.PNG
list_deja.PNG (55.31 KiB) Viewed 368 times
list_free15.PNG
list_free15.PNG (58.4 KiB) Viewed 368 times
Last edited by Ouaz on Sun Jul 31, 2016 10:39 pm, edited 1 time in total.
I release every updated file under the CC-BY-SA 3.0 license.

User avatar
Ouaz
Dyson Forest
Posts: 215
Joined: Wed Aug 13, 2014 7:21 pm
Location: France

Re: Replace DejaVuSans font by FreeSans font

#5 Post by Ouaz » Fri Jul 29, 2016 7:23 pm

Dialog Box example
options_deja.PNG
options_deja.PNG (38.76 KiB) Viewed 368 times
options_free15.PNG
options_free15.PNG (43.88 KiB) Viewed 368 times
Last edited by Ouaz on Sun Jul 31, 2016 10:40 pm, edited 1 time in total.
I release every updated file under the CC-BY-SA 3.0 license.

User avatar
Vezzra
Release Manager, Design
Posts: 4606
Joined: Wed Nov 16, 2011 12:56 pm
Location: Sol III

Re: Replace DejaVuSans font by FreeSans font

#6 Post by Vezzra » Sun Jul 31, 2016 8:15 am

TBH, I don't see that much of a difference, but since I'm kind of graphically impaired (by that I mean I'm exceptionally incompetent when it comes to visual and graphic design;)), that doesn't mean much. I do see a slight improvement, so changing the font is fine with me.

User avatar
Sloth
Content Scripter
Posts: 685
Joined: Sat Mar 17, 2007 12:28 am

Re: Replace DejaVuSans font by FreeSans font

#7 Post by Sloth » Sun Jul 31, 2016 10:28 am

The font looks smoother, but the letter "l" seems to be positioned too far on the right and touches the next letter which disturbs me a little bit.
Attachments
prod_free16.png
prod_free16.png (104.64 KiB) Viewed 338 times
All released under the GNU GPL 2.0 and Creative Commons Attribution-ShareAlike 3.0 licences.

dbenage-cx
Programmer
Posts: 389
Joined: Sun Feb 14, 2016 12:08 am

Re: Replace DejaVuSans font by FreeSans font

#8 Post by dbenage-cx » Sun Jul 31, 2016 4:29 pm

May need to vet for any special symbols needed, catching them in-game may be difficult.

Number of glyphs:

Code: Select all

font     FreeSans     DejaVu
version 4012.2268       2.34
------------------------------
(book)       6272       6108
Bold         2911       6034
Oblique      3036       5335
BoldOblique  2403       5265

User avatar
Ouaz
Dyson Forest
Posts: 215
Joined: Wed Aug 13, 2014 7:21 pm
Location: France

Re: Replace DejaVuSans font by FreeSans font

#9 Post by Ouaz » Sun Jul 31, 2016 5:27 pm

Sloth wrote:The font looks smoother, but the letter "l" seems to be positioned too far on the right and touches the next letter which disturbs me a little bit.
Oh yeah, now you noticed it, I only see that and it's pretty disturbing. :?

On the other hand, it happens also with DejaVu. The letter-spacing is irregular with these fonts, and it is increased visually because of the big size.
design_deja2.png
design_deja2.png (23.66 KiB) Viewed 326 times
Well, if there's no major objection to replace the default font in FO, I'll continue to search a better replacement font, then.
dbenage-cx wrote:May need to vet for any special symbols needed, catching them in-game may be difficult.

Number of glyphs:

Code: Select all

font     FreeSans     DejaVu
version 4012.2268       2.34
------------------------------
(book)       6272       6108
Bold         2911       6034
Oblique      3036       5335
BoldOblique  2403       5265
Interesting. Didn't think about the possible missing glyphs in bold, oblique, etc. Although I think the major ones are there (Greek letters, mathematical symbols).
I release every updated file under the CC-BY-SA 3.0 license.

dbenage-cx
Programmer
Posts: 389
Joined: Sun Feb 14, 2016 12:08 am

Re: Replace DejaVuSans font by FreeSans font

#10 Post by dbenage-cx » Sun Jul 31, 2016 7:30 pm

I don't find any mention of oblique(or boldoblique) in actual use, can be dropped?

DejaVuSansCondensed solves some of those kerning issues.
Attachments
djsans_vs_condensed.png
djsans_vs_condensed.png (19.64 KiB) Viewed 323 times

User avatar
Ouaz
Dyson Forest
Posts: 215
Joined: Wed Aug 13, 2014 7:21 pm
Location: France

Re: Replace DejaVuSans font by FreeSans font

#11 Post by Ouaz » Mon Aug 01, 2016 1:12 am

dbenage-cx wrote:I don't find any mention of oblique(or boldoblique) in actual use, can be dropped?
It seems so.
DejaVuSansCondensed solves some of those kerning issues.
Nice and definitely better. I am all for it (my only nitpick about this font is the slight blur on the edges). And it seems to be the simplest and safest solution.

In the meantime, I tried another free font: Roboto (Google font, License Apache 2.0) > https://www.typewolf.com/assets/fonts/roboto.zip (Roboto-Regular and Roboto-Bold)
that does well in FO, especially in Pedia and big paragraphs (mainly due to the heavier weight).

I don't know which version it is, there's only 1249 glyphs (european special letters are here, and mathematical symbols),
and it requires to increase text size to 16pt and title size to 17pt.

The version in the Github repo, even if more recent (+3000 glyphs),
is not as good once in FO, compared to the version in the link above.

I made some comparison screenshots:

DejaVuSans (default size)
DejaVuSansCondensed (defaut size)
Roboto (Text: 16pt; Title: 17pt)
map_window.png
map_window.png (97.35 KiB) Viewed 313 times
sidepanel.png
sidepanel.png (188.69 KiB) Viewed 313 times
Last edited by Ouaz on Mon Aug 01, 2016 2:08 am, edited 13 times in total.
I release every updated file under the CC-BY-SA 3.0 license.

User avatar
Ouaz
Dyson Forest
Posts: 215
Joined: Wed Aug 13, 2014 7:21 pm
Location: France

Re: Replace DejaVuSans font by FreeSans font

#12 Post by Ouaz » Mon Aug 01, 2016 1:14 am

design_window.png
design_window.png (92.77 KiB) Viewed 313 times
prod_window.png
prod_window.png (131.21 KiB) Viewed 313 times
I release every updated file under the CC-BY-SA 3.0 license.

User avatar
Vezzra
Release Manager, Design
Posts: 4606
Joined: Wed Nov 16, 2011 12:56 pm
Location: Sol III

Re: Replace DejaVuSans font by FreeSans font

#13 Post by Vezzra » Mon Aug 01, 2016 9:07 am

So far I like this Roboto font best.

User avatar
Ouaz
Dyson Forest
Posts: 215
Joined: Wed Aug 13, 2014 7:21 pm
Location: France

Re: Replace DejaVuSans font by FreeSans font

#14 Post by Ouaz » Mon Aug 01, 2016 6:24 pm

Vezzra wrote:So far I like this Roboto font best.
Me too.

I did some research, and this Roboto font is used as default font on Android system and in Chrome applications. It was freely released under license Apache 2.0 in 2012.

That's why this font looks good on a screen and easy to read. It was designed specifically for it. ^^

Let's wait what Geoff thinks about all of this (he will have the last word anyway :P )

EDIT: here's the specific version of the Roboto Font that works well in FO
Attachments
roboto16-17.zip
(356.54 KiB) Downloaded 3 times
I release every updated file under the CC-BY-SA 3.0 license.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 12246
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Replace DejaVuSans font by FreeSans font

#15 Post by Geoff the Medio » Tue Aug 02, 2016 12:05 am

Roboto looks good.

Post Reply