pdflib: selecting utf-8 fonts?

  • Follow


The manual says that gnuplot is using libpdf and the way to use utf-8
encoded strings is to use a font which is also using utf-8 encoding.

But how do I find which fonts I can use or how do I make
gnuplot/libpdf search for a font in a given location?

Whatever font I'm trying to refer to (under /usr/share/fonts) results
in messages like:

Couldn't find font BitStream Vera Sans, falling back to Times-Roman
Couldn't find font FreeSans, falling back to Times-Roman

So what is the search path method used by gnuplot/libpdf?

I'm using Gentoo Linux

Thanks
Petter
-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
0
Reply Petter 2/18/2010 12:58:14 PM

Petter Gustad wrote:

> 
> The manual says that gnuplot is using libpdf and the way to use utf-8
> encoded strings is to use a font which is also using utf-8 encoding.

To the best of my knowledge, only the commercial version of LIBPdf
(http://www.pdflib.com/) supports this.  The free version does not.

Fortunately, you can use the new pdfcairo terminal instead.
UTF-8 should "just work" in the cairo terminals, with no special
actions needed.

        Ethan

> But how do I find which fonts I can use or how do I make
> gnuplot/libpdf search for a font in a given location?
> 
> Whatever font I'm trying to refer to (under /usr/share/fonts) results
> in messages like:
> 
> Couldn't find font BitStream Vera Sans, falling back to Times-Roman
> Couldn't find font FreeSans, falling back to Times-Roman
> 
> So what is the search path method used by gnuplot/libpdf?
> 
> I'm using Gentoo Linux
> 
> Thanks
> Petter

0
Reply sfeam 2/18/2010 4:57:54 PM


sfeam <sfeam@users.sourceforge.net> writes:

> Fortunately, you can use the new pdfcairo terminal instead.
> UTF-8 should "just work" in the cairo terminals, with no special
> actions needed.

Thanks, that worked great! However pdfcairo was not included in my
current gnuplot (4.2 patchlevel 5), so I downloaded the latest CVS
version where it was supported. In what version was pdfcairo
introduced?

Petter
-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
0
Reply Petter 2/19/2010 9:38:37 AM

Petter Gustad wrote:

> sfeam <sfeam@users.sourceforge.net> writes:
> 
>> Fortunately, you can use the new pdfcairo terminal instead.
>> UTF-8 should "just work" in the cairo terminals, with no special
>> actions needed.
> 
> Thanks, that worked great! However pdfcairo was not included in my
> current gnuplot (4.2 patchlevel 5), so I downloaded the latest CVS
> version where it was supported. In what version was pdfcairo
> introduced?

The cairo terminals are in 4.4, which has been available for testing
for some months with official release expected "real soon now".


0
Reply sfeam 2/19/2010 5:09:56 PM

3 Replies
446 Views

(page loaded in 0.072 seconds)

Similiar Articles:













7/30/2012 10:47:54 AM


Reply: