Open landam opened 5 years ago
Attachment from msieczka on 7 Sep 2008 14:05 UTC ugly default font https://trac.osgeo.org/grass/attachment/ticket/290/fonts_ugly.png
Attachment from msieczka on 7 Sep 2008 14:06 UTC a nice one example (Liberation Sans Regular) https://trac.osgeo.org/grass/attachment/ticket/290/fonts_neat.png
Attachment from wenzeslaus on 7 May 2016 01:49 UTC d.text "The quick brown fox jumps over the lazy dog" with default font and after export GRASS_FONT="sans" on Ubuntu 15.10 https://trac.osgeo.org/grass/attachment/ticket/290/default_and_sans_font.png
Attachment from wenzeslaus on 7 May 2016 02:21 UTC d.text "Pli luouk k pl belsk dy" with default font https://trac.osgeo.org/grass/attachment/ticket/290/default_font_non_ascii.png
Comment by hamish on 7 Sep 2008 00:53 UTC screenshot of what you mean please.
Hamish
Comment by msieczka on 7 Sep 2008 08:50 UTC Just add a scalebar or legend with labels in wxGUI display to see that letters look bad if you don't change the default font.
Comment by hamish on 7 Sep 2008 13:32 UTC Hamish:
screenshot of what you mean please.
Replying to [comment:2 msieczka]:
Just add a scalebar or legend with labels in wxGUI display to see that letters look bad if you don't change the default font.
There is no wx2.8 for Debian/stable and so I can not yet run wxGUI locally. Hopefully that will be solved in the next month with the upcoming Lenny release.
I would like to see from the screenshot if the default you speak of is the romans stroke font or another, if it looks the same as in an old xmon or different/worse, and if it renders differently on your machine than on others.
Hamish
Comment by @landam on 7 Sep 2008 13:35 UTC Replying to [comment:3 hamish]:
There is no wx2.8 for Debian/stable and so I can not yet run wxGUI locally. Hopefully that will be solved in the next month with the upcoming Lenny release.
Install wx2.8 from
deb http://apt.wxwidgets.org/ etch-wx main
apt-get install libwxbase2.8-0 libwxbase2.8-dbg libwxbase2.8-dev \
libwxgtk2.8-0 libwxgtk2.8-dbg libwxgtk2.8-dev \
python-wxgtk2.8 wx2.8-doc wx2.8-examples \
wx2.8-headers wx2.8-i18n
Debian probably waits for wx3.0 ;-)))
Comment by hamish on 7 Sep 2008 13:53 UTC
Replying to [comment:3 hamish]:
There is no wx2.8 for Debian/stable and so I can not yet run wxGUI locally. Hopefully that will be solved in the next month with the upcoming Lenny release.
Replying to [comment:4 martinl]:
Install wx2.8 from [wxwidgets.org]
I am aware of that but try to limit 3rd party packages from the system which have not been through Debian's QA. (it is used for other modelling and I can't afford to break anything)
Debian probably waits for wx3.0 ;-)))
wx2.8 will be in lenny. see http://packages.qa.debian.org/w/wxwidgets2.8.html http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=463807
(with 1 RC bug which should be fixed in the next days..)
Hamish
Comment by msieczka on 7 Sep 2008 14:04 UTC Replying to [comment:4 martinl]:
Replying to [comment:3 hamish]:
There is no wx2.8 for Debian/stable and so I can not yet run wxGUI locally. Hopefully that will be solved in the next month with the upcoming Lenny release.
Install wx2.8 from
deb http://apt.wxwidgets.org/ etch-wx main
apt-get install libwxbase2.8-0 libwxbase2.8-dbg libwxbase2.8-dev \ libwxgtk2.8-0 libwxgtk2.8-dbg libwxgtk2.8-dev \ python-wxgtk2.8 wx2.8-doc wx2.8-examples \ wx2.8-headers wx2.8-i18n
Debian probably waits for wx3.0 ;-)))
Yup, those work fine for me on Debian testing.
Anyway the screendumps are attached:
Comment by glynn on 7 Sep 2008 20:53 UTC Replying to [comment:6 msieczka]:
Anyway the screendumps are attached:
- fonts_ugly.png - the default font
- fonts_neat.png - Liberation Sans Regular (just for an example; I don't know what font would be universal on all platforms)
fonts_ugly.png is the romans stroke font. It's the default because it's guaranteed to be available on all platforms (the stroke fonts are part of GRASS). There isn't any FreeType font which is guaranteed to be available on all platforms. GRASS may not even support FreeType fonts (it's a compile-time option).
Users can change the default to something better, but we can't know which fonts (other than the stroke fonts) will be available on the user's system.
Comment by msieczka on 7 Sep 2008 21:06 UTC Replying to [comment:7 glynn]:
Users can change the default to something better, but we can't know which fonts (other than the stroke fonts) will be available on the user's system.
Well then I'll close this ticket as invalid.
Comment by wenzeslaus on 7 May 2016 01:47 UTC I'm reopening because this is still an issue. The default font is objectively bad (considering the typography customs and rules) in letters or kerning or both. Beginners are creating ugly maps and creating this association with GRASS GIS. Moreover, usage of the ugly default font is not limited to beginners as visible when looking at the pictures in documentation.
# Ubuntu 15.10
d.mon wx0
unset GRASS_FONT
d.text "The quick brown fox jumps over the lazy dog" at=0,50
export GRASS_FONT="sans"
d.text "The quick brown fox jumps over the lazy dog" at=0,40
[[Image(default_and_sans_font.png)]]
Replying to [comment:7 glynn]:
It's the default because it's guaranteed to be available on all platforms (the stroke fonts are part of GRASS). There isn't any FreeType font which is guaranteed to be available on all platforms.
In this case, can we enhance the collection of fonts shipped with GRASS GIS with some acceptable font where also the kerning will work? Is it possible to add something to the collection?
GRASS may not even support FreeType fonts (it's a compile-time option).
As this is not likely, perhaps we can threat this as the special case when user needs to set one of the GRASS fonts.
Users can change the default to something better but we can't know which fonts (other than the stroke fonts) will be available on the user's system.
According to recent experiences with MS Windows, where any system font was working, but the default was not, it seems the ''stroke fonts'' don't guarantee that the font will work.
It seems to me that replacing romans
by something like sans
in D_font(font ? font : "romans");
in lib/display/r_raster.c
(I'm not sure bout other places) would improve the situation. Also there seems to be some checking of availability of a the font in system because then it goes to the GRASS fonts. So perhaps this can be leveraged to provide some fallback.
Comment by wenzeslaus on 7 May 2016 02:30 UTC Another bad feature of the default font is that it is ASCII only, so it fails with many languages and place names.
[[Image(default_font_non_ascii.png)]]
Produced on Ubuntu 15.10 with:
unset GRASS_FONT
d.text "Pli luouk k pl belsk dy" at=0,50
export GRASS_FONT="serif"
d.text "Pli luouk k pl belsk dy" at=0,40
export GRASS_FONT="sans"
d.text "Pli luouk k pl belsk dy" at=0,30
Comment by neteler on 28 Dec 2016 15:04 UTC Ticket retargeted after milestone closed
Modified by @landam on 5 May 2017 20:41 UTC
Comment by @landam on 1 Sep 2017 20:28 UTC All enhancement tickets should be assigned to 7.4 milestone.
Comment by neteler on 26 Jan 2018 11:40 UTC Ticket retargeted after milestone closed
Modified by neteler on 12 Jun 2018 20:48 UTC
Comment by @landam on 25 Sep 2018 16:51 UTC All enhancement tickets should be assigned to 7.6 milestone.
Comment by @landam on 25 Jan 2019 21:08 UTC Ticket retargeted after milestone closed
Reported by msieczka on 6 Sep 2008 10:07 UTC Please use a different default font than currently, for wxGUI displays. This will improve user experience. The current default one looks really bad in legends, scale and stuff.
GRASS GIS version and provenance
svn-develbranch6
Migrated-From: https://trac.osgeo.org/grass/ticket/290