<div dir="ltr"><div><div><div><div><div><div>Glynn,<br><br></div>thanks for the answer.<br><br></div>"I wouldn't expect it to work with anything which<br>
generates PostScript."<br><br></div>I also tested it not only with ps.map but also cairo ps output and ps driver.<br></div><div>ps.map and ps driver fails with utf-8 vector using Biolinum font.<br></div><div>Ghostscript drops the an error on the resulting ps (see e-mail end)<br><br></div><div><br></div>Good news:<br><br></div>Cairo ps output generates even utf-8 d.vect correctly (with rasterized font glyphs), but ignores<br><br>export GRASS_RENDER_PS_HEADER=FALSE<br>export GRASS_RENDER_PS_TRAILER=FALSE<br><br></div>settings. Well, this is understandable since these are PS driver options. A beautiful combination would be to use the cairo PS output with the options above... I know, it is something cairo internal...<br><div><div><div><div><br></div><div>thanks again<br></div><div>Robert<br><br></div><div><br><br>--------------------------------------gs <a href="http://all.ps">all.ps</a> <br><br>GPL Ghostscript 9.19 (2016-03-23)<br>Copyright (C) 2016 Artifex Software, Inc.  All rights reserved.<br>This software comes with NO WARRANTY: see the file PUBLIC for details.<br>Error: /rangecheck in --imagemask--<br>Operand stack:<br>   17354512   0   true   --nostringval--   --nostringval--<br>Execution stack:<br>  
 %interp_exit   .runexec2   --nostringval--   --nostringval--   
--nostringval--   2   %stopped_push   --nostringval--   
--nostringval--   --nostringval--   false   1   %stopped_push   1983   
1   3   %oparray_pop   1982   1   3   %oparray_pop   1966   1   3   
%oparray_pop   1852   1   3   %oparray_pop   --nostringval--   
%errorexec_pop   .runexec2   --nostringval--   --nostringval--   
--nostringval--   2   %stopped_push   --nostringval--   
--nostringval--   1880   5   3   %oparray_pop<br>Dictionary stack:<br>   --dict:1200/1684(ro)(G)--   --dict:0/20(G)--   --dict:103/200(L)--<br>Current allocation mode is local<br>Last OS error: No such file or directory<br>Current file position is 10807894<br>GPL Ghostscript 9.19: Unrecoverable error, exit code 1<br><br><br><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-28 0:06 GMT+02:00 Glynn Clements <span dir="ltr"><<a href="mailto:glynn@gclements.plus.com" target="_blank">glynn@gclements.plus.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Robert Kuszinger wrote:<br>
<br>
> I'd like to create a label for a point vector map with point names to be<br>
> utilized in map composer (ps.map).<br>
><br>
> Everything works except that I cannot use my UTF8 strings. They are<br>
> rendered as latin1 as far as I can see.<br>
><br>
> Using d.vect strings are displayed correctly:<br>
><br>
> d.vect --quiet map=places@Duna where="type='village' OR type='town'"<br>
> color=none fill_color=red width=1 icon=basic/circle attribute_column=name<br>
> label_color=black label_size=9 font=LinBiolinum_R encoding=UTF-8<br>
><br>
> but there is no encoding option in v.label. I've found some links to<br>
> <a href="http://v.label.sa" rel="noreferrer" target="_blank">v.label.sa</a> which is not available in my Grass setup nor on the extension<br>
> list.<br>
> Grass version is:<br>
<br>
AIUI, v.label simply sets the labels as byte strings. Their<br>
interpretation is determined by the program which actually renders the<br>
labels, either by an explicit call to D_encoding(), or from the<br>
environment variable GRASS_ENCODING, or from the font's default<br>
encoding from the fontcap file.<br>
<br>
UTF-8 text should work with d.vect and d.labels if you use a FreeType<br>
font (but not for a stroke font, which only provide glyphs for the<br>
ASCII range). I wouldn't expect it to work with anything which<br>
generates PostScript.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br>
</font></span></blockquote></div><br></div>