[GRASS-dev] [GRASS GIS] #3090: d.font does not change default font in monitors

#3090: d.font does not change default font in monitors
------------------------+-------------------------
Reporter: veroandreo | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.2.0
Component: Display | Version: unspecified
Keywords: d.font | CPU: x86-64
Platform: Linux |
------------------------+-------------------------
d.font -l and d.fontlist give 439 possibilities for fonts. However,
{{{
d.font font="whatever_font_from_the_439_items_list"
}}}
does not change font setting in monitors, nor raise any error/warning. The
only error appears when trying to set, for example, {{{font=romanp}}}
which is indeed listed as option in d.font manual page
(https://grass.osgeo.org/grass73/manuals/d.font.html).

Whatever font I choose, monitors keep using default roman, which IMHO
looks awful and makes that the output of d.text or d.vect.thematic, for
example, look terrible, too.

The only way I found to effectively change font for d.mon was with:
{{{
export GRASS_FONT="sans"
}}}

I use fedora 23, grass trunk r68780.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3090&gt;
GRASS GIS <https://grass.osgeo.org>

#3090: d.font does not change default font in monitors
-------------------------+-------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.2.0
Component: Display | Version: unspecified
Resolution: | Keywords: d.font
       CPU: x86-64 | Platform: Linux
-------------------------+-------------------------

Comment (by annakrat):

d.font calls `D_font` but that affects only the font in that process.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3090#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#3090: d.font does not change default font in monitors
-------------------------+-------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.2.0
Component: Display | Version: unspecified
Resolution: | Keywords: d.font
       CPU: x86-64 | Platform: Linux
-------------------------+-------------------------

Comment (by veroandreo):

Replying to [comment:1 annakrat]:
> d.font calls `D_font` but that affects only the font in that process.

If by process you mean a particular monitor, that's the case I'm
reporting. Here, what I do:
{{{
d.mon wx0
d.font font="sans"
d.text "Hello GRASS GIS"
}}}

No sans font, but the default roman. However, please try saving the wx0
monitor with "Save Display to file", something strange happens... The
"Hello GRASS" part disappears and only "GIS" word remain and with a
different font.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3090#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

#3090: d.font does not change default font in monitors
-------------------------+-------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.2.0
Component: Display | Version: unspecified
Resolution: | Keywords: d.font
       CPU: x86-64 | Platform: Linux
-------------------------+-------------------------

Comment (by neteler):

Probably caused by reason which leads to #3137

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3090#comment:3&gt;
GRASS GIS <https://grass.osgeo.org>

#3090: d.font does not change default font in monitors
-------------------------+-------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.8.0
Component: Display | Version: unspecified
Resolution: | Keywords: d.font
       CPU: x86-64 | Platform: Linux
-------------------------+-------------------------
Changes (by veroandreo):

* milestone: 7.2.4 => 7.8.0

Comment:

I still get the same behavior in freshly compiled trunk

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3090#comment:9&gt;
GRASS GIS <https://grass.osgeo.org>