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