Talk About Network

Google





Graphics > Gnuplot interactive function plotter > Re: pdfcairo fo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 4 Topic 3386 of 3655
Post > Topic >>

Re: pdfcairo font selection

by merritt@[EMAIL PROTECTED] Jun 25, 2008 at 03:27 PM

In article <4862bded$0$2642$750803fa@[EMAIL PROTECTED]
>,
Steffen Kahra  <steffen.kahra@[EMAIL PROTECTED]
> wrote:
>Hello,
>
>I use gnuplot development version 4.3 patchlevel 0 and its pdfcairo 
>terminal output. So far everything is fine except of some kind of font 
>selection obfuscation. I wonder what the correct way of specifying a 
>certain font style is.
>
>On my fedora 8 linux system the command
>
> > fc-list | grep Charter
>
>gives
>
>Bitstream Charter:style=Bold Italic
>Bitstream Charter:style=Regular
>Bitstream Charter:style=Italic
>Bitstream Charter:style=Bold
>
>The pdfcairo option font "Bitstream Charter" works like expected. 
>Charter style regular is embedded in the pdf and correctly displayed. 
>But how do I select bold or italic face?
>
>The fontconfig manual says:
>
>"Fontconfig provides a textual representation for patterns that the 
>library can both accept and generate. The representation is in three 
>parts, first a list of family names, second a list of point sizes and 
>finally a list of additional properties:
>
>	<families>-<point sizes>:<name1>=<values1>:<name2>=<values2>...
>[...]
>
>example:
>Courier:italic"

I ran into this same issue.  I think the fontconfig manual describes
only what fontconfig itself uses in its configuration files. 
No application program I have tried recognizes font names given in
that form.

>How do I give extra font style information like bold type face?

   set term pdfcairo font "Bitstream Charter Bold"
   set term pdfcairo font "Bitstream Charter Bold Italic"

This is a relatively recent addition to the pdfcairo terminal
(7 May 2008).  Spaces and hyphens are treated as equivalent,
which allows you also to use names from the standard PostScript
font set like "Times-Italic" and "Helvetic-Bold".

-- 
Ethan A Merritt
 




 4 Posts in Topic:
pdfcairo font selection
Steffen Kahra <steffen  2008-06-25 23:51:43 
Re: pdfcairo font selection
merritt@[EMAIL PROTECTED]  2008-06-25 15:27:47 
Re: pdfcairo font selection
Steffen Kahra <steffen  2008-07-08 12:00:33 
Re: pdfcairo font selection
merritt@[EMAIL PROTECTED]  2008-07-08 09:36:58 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Thu Jan 8 1:47:19 PST 2009.