[GRASS-user] NVIZ: unable to set font type, style and size of labels

Hi,

I'm having trouble settings the font type, style and size of labels in NVIZ.

I can place a label into the display but it appears to use the system
default only.

I've tried toggling the GRASS display driver between default/cairo but it
appears to make no difference.

Perhaps it's related to using Linux Mint 13 (ubuntu precise)?

Any suggestions would be welcome.

Thanks,
Richard
GRASS 6.4.2
Linux Mint 13

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/NVIZ-unable-to-set-font-type-style-and-size-of-labels-tp5025096.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Happy New Year to everyone!

I also tested GRASS 6.4.2 on Windows7 and was able to add only one label. I
noticed the following command output from the NVIZ window:

OpenGL Warning: No pincher, please call
crStateSetCurrentPointers() in your SPU

This however may relate to running Windows7 as a Virtual Host guest.

The workaround is to add labels using a graphics program, but it would be
nice if I could to get NVIZ fully functioning on my Ubuntu Precise platform.

Cheers,
Richard

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/NVIZ-unable-to-set-font-type-style-and-size-of-labels-tp5025096p5025260.html
Sent from the Grass - Users mailing list archive at Nabble.com.

I have the same problem under Ubuntu 12.04. I have compiled grass from sources and I have installed it also through repositories, and I get the same issue when I try to place either a label, or the legend, or the arrow. I thing it is a kind of bug.

Here is the log error that I get:

Error: Unable to load font
Error: Unable to load font
while executing
“Nplace_label $Nv_(label_text) $font $Nv_(labelFontSize) $clr $sx $sy”
(procedure “place_label_cb” line 21)
invoked from within
"place_label_cb 68 54 "
(command bound to event)

···

On Tue, Jan 1, 2013 at 11:24 PM, RichardC <richtcooper@hotmail.com> wrote:

Happy New Year to everyone!

I also tested GRASS 6.4.2 on Windows7 and was able to add only one label. I
noticed the following command output from the NVIZ window:

OpenGL Warning: No pincher, please call
crStateSetCurrentPointers() in your SPU

This however may relate to running Windows7 as a Virtual Host guest.

The workaround is to add labels using a graphics program, but it would be
nice if I could to get NVIZ fully functioning on my Ubuntu Precise platform.

Cheers,
Richard


View this message in context: http://osgeo-org.1560.n6.nabble.com/NVIZ-unable-to-set-font-type-style-and-size-of-labels-tp5025096p5025260.html

Sent from the Grass - Users mailing list archive at Nabble.com.


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


David Montoya González
Ing. Forestal, Universidad Nacional de Colombia
Laboratorio de Sistemas Complejos, UNAL Medellin

On Sun, Jan 13, 2013 at 12:04:06PM -0500, we recorded a bogon-computron collision of the <jdmonto0@gmail.com> flavor, containing:

   I have the same problem under Ubuntu 12.04. *I have compiled grass from
   sources and I have installed it also through repositories, and I get the
   same issue when I try to place either a label, or the legend, or the
   arrow. I thing it is a kind of bug.
   Here is the log error that I get:
   Error: Unable to load font
   Error: Unable to load font

I do not know the exact cause of this for you (I haven't been using nviz on
Ubutntu much, though I do have it installed) --- but a number of other older
programs have discovered that Ubuntu's decision to eliminate certain old-style
bitmapped fonts from the default X distribution has been a problem. I just
took a peek at the NVIS source, and it *does* appear that what it wants to use
is the bitmapped Helvetica font, one of the ones that would be missing on a
stock Ubuntu system. So this same problem might be the cause here.

Try installing the xfonts-100dpi and xfonts-75dpi packages and see if the
problem goes away. These two packages used to be installed by default on
Ubuntu systems until very, very recently. If it doesn't work immediately
after installing them, you might also have to do a
"xset +fp /usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi" to instruct
the running X server to add the new fonts (they'll be picked up on a restart,
but possibly not right after installation of the packages)

If that doesn't do the trick, then I'm off base with this guess.

--
Tom Russo KM5VY SAR502 DM64ux http://www.swcp.com/~russo/
Tijeras, NM QRPL#1592 K2#398 SOC#236 http://kevan.org/brain.cgi?DDTNM
echo "prpv_a'rfg_cnf_har_cvcr" | sed -e 's/_/ /g' | tr [a-m][n-z] [n-z][a-m]

Thanks, it does seem related to the fonts on Ubuntu.

I installed the fonts as suggested an now I can successfully add labels.

However, I'm still unable to select the type of font or style, getting the
command output:

Cannot Load Font
Trying default Font

I'll look into this some more, to see if I can resolve further.

Cheers,
Richard

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/NVIZ-unable-to-set-font-type-style-and-size-of-labels-tp5025096p5027726.html
Sent from the Grass - Users mailing list archive at Nabble.com.

It didn´t work for me. I installed the fonts that you suggested and when I try to place for example a label, the image crash. It doesn´t show any error but still have some issues. I have even installed grass on a clean installation of Ubuntu and I get always the problem.

···

On Tue, Jan 15, 2013 at 11:27 PM, RichardC <richtcooper@hotmail.com> wrote:

Thanks, it does seem related to the fonts on Ubuntu.

I installed the fonts as suggested an now I can successfully add labels.

However, I’m still unable to select the type of font or style, getting the
command output:

Cannot Load Font
Trying default Font

I’ll look into this some more, to see if I can resolve further.

Cheers,
Richard


View this message in context: http://osgeo-org.1560.n6.nabble.com/NVIZ-unable-to-set-font-type-style-and-size-of-labels-tp5025096p5027726.html

Sent from the Grass - Users mailing list archive at Nabble.com.


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


David Montoya González
Ing. Forestal, Universidad Nacional de Colombia
Laboratorio de Sistemas Complejos, UNAL Medellin