<div dir="ltr"><div><div><div>Hello Jennifer<br><br></div>Thanks you for your help.<br><br></div>Cheers,<br></div>Julio<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 29 August 2017 at 10:28, Jennifer M Adams <span dir="ltr"><<a href="mailto:jadams21@gmu.edu" target="_blank">jadams21@gmu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
Hi, Julio —
<div>I certainly do appreciate your diligence. The hershey fonts won’t support the diacritical marks you are asking for, and it seems that GrADS’s use of the Cairo text API won’t either. Please see <a href="https://developer.gnome.org/cairo/stable/cairo-text.html#cairo-text.description" target="_blank">https://developer.gnome.<wbr>org/cairo/stable/cairo-text.<wbr>html#cairo-text.description</a>.
Your idea to edit the .ps or .eps files may work, or you could draw the marks separately, like this:</div>
<div><br>
</div>
<div>draw string 5 5 n <br>
draw string 5 5.55 ~<br>
<img id="m_-35259398483132014806DF27463-5E36-468B-9084-383DBCA2D6FA" src="cid:EC533688-7255-49FA-A10B-505AB278F880"></div>
<div><br>
</div>
<div><br>
</div>
<div>draw string 5 5 e<br>
set string 1 c 1 270 <br>
draw string 4.7 5.4 `</div>
<div><img id="m_-3525939848313201480BED8FE48-579F-4C7D-BAE9-DBAF64F7EC8E" src="cid:525A23CF-2EF8-4F8C-ABD4-922BDE5AB883"><br>
<br>
</div>
<div>—Jennifer</div>
<div><br>
</div>
<div><br>
<blockquote type="cite"><div><div class="h5">On Aug 28, 2017, at 4:43 PM, Julio Figueroa <<a href="mailto:jcfiguero@gmail.com" target="_blank">jcfiguero@gmail.com</a>> wrote:<br>
<br>
Thanks all for the help,<br>
<br>
I wrote a little bash script that use different LC_CTYPE an iterates over all the fonts in /usr/share/fonts to produce a PNG with the string "[Año á é í ó ú AÑO]". Unfortunately the fonts where not understood by grads. The script iterates all the fonts and
assign the fonts in grads under the font numbers 10 to 99. I attached the script in case someone needs to try with different fonts.<br>
<br>
I also noticed that when drawing strings with accented vowels after setting a font (10-99), the display will freeze, and not even reinit will help. I had to do Ctl+D.<br>
You can reproduce the bug with:<br>
set font 0<br>
draw string 1 1 TéXT 1<br>
set font 5 <br>
draw string 1 2 TéXT 2<br>
set font 10 file /usr/share/fonts/default/<wbr>ghostscript/putr.pfa<br>
draw string 1 3 TéXT 3 * It will not longer allow to draw information after this command.<br>
set font 0<br>
draw string 1 4 TéXT 4<br>
clear<br>
reinit<br>
set font 0<br>
draw string 1 1 TéXT 5<br>
<br>
Perhaps my solution would be to produce my plots in EPS and then with Imagemagick replace the strings to Spanish.<br>
<br>
However, I wonder if recompiling grads using an UTF-8 font will make any difference.<br>
<br>
Cheers,<br>
<br>
Julio <br>
<br>
<br>
<br>
<br>
<br>
On 26 August 2017 at 07:09, Jennifer M Adams <<a href="mailto:jadams21@gmu.edu" target="_blank">jadams21@gmu.edu</a>> <wbr>wrote:<br>
I don’t know how to do this with Hershey Fonts, but you could probably find a font file that will have these accented characters. —Jennifer<br>
<br>
<br>
> On Aug 24, 2017, at 3:05 PM, Julio Figueroa <<a href="mailto:jcfiguero@gmail.com" target="_blank">jcfiguero@gmail.com</a>> wrote:<br>
><br>
> Hi All,<br>
><br>
> I want to add Spanish or French words to my grads plots. Using the following command just draw an empty space within the letters A and o.<br>
><br>
> draw string 1 2 Año.<br>
><br>
> I wonder if you have any suggestions in how to draw strings with accented characters, like á, é, í, ó, ú, à, è, ì, ò, ù, Ñ or ñ.<br>
><br>
> I am using the binary distribution of grads 2.1.1.b0 for linux.<br>
><br>
> I'll appreciate any help.<br>
><br>
> Julio<br>
> --------------<br>
><br>
> ______________________________<wbr>_________________<br>
> gradsusr mailing list<br>
> <a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a><br>
<br>
--<br>
Jennifer Miletta Adams<br>
Center for Ocean-Land-Atmosphere Studies (COLA)<br>
George Mason University<br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a><br>
<br>
<br>
<br>
-- <br>
------------------------------<wbr>-------------------<br>
Julio Figueroa<br>
Oceanólogo / Oceanographer<br>
<a href="mailto:jcfiguero@gmail.com" target="_blank">jcfiguero@gmail.com</a><br>
</div></div><span id="m_-3525939848313201480cid:F6D00EF8-4003-47F6-94F3-5948DA9AFDE5"><search_fonts.sh></span>_____________<wbr>______________________________<wbr>____<span class=""><br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a><br>
</span></blockquote><span class="">
<br>
<div>--<br>
Jennifer Miletta Adams<br>
Center for Ocean-Land-Atmosphere Studies (COLA)<br>
George Mason University<br>
<br>
<br>
</div>
<br>
</span></div>
</div>
<br>______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">-------------------------------------------------<br>Julio Figueroa<br>Oceanólogo / Oceanographer<br><a href="mailto:jcfiguero@gmail.com" target="_blank">jcfiguero@gmail.com</a></div>
</div>