by merritt@[EMAIL PROTECTED]
Jul 8, 2008 at 09:36 AM
In article <g4vdoh$90p$1@[EMAIL PROTECTED]
>,
Steffen Kahra <steffen.kahra@[EMAIL PROTECTED]
> wrote:
>Hi Ethan,
>
>merritt@[EMAIL PROTECTED]
schrieb:
>
>>> 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).
>
>I found the time to give your advice a try with a newly compiled CVS
>version. It seems that gnuplot recognizes the additional "Bold" or "Bold
>Italic" to the font name but the pdf still shows the "Regular" version
>of the font.
Huh. Well, it works here for me:
set term pdfcairo font "Bitstream Charter Bold Italic"
set output 'bcbi.pdf'
load 'charset.dem'
quit
then open the pdf file in a viewer
- the font is clearly bold italic
- "view properties"->"Font" shows
Bitstream Charter Type 1 embedded
DejaVuSansBoldOblique CID TrueType embedded
DejavuSansMonoBoldOblique CID TrueType embedded
So my system has substituted DejaVu for BitstreamCharter where needed
to show bold+italic. I imagine that behavior depends on the contents
of the local font configuration files.
>If I give a intentionally misspelled "Bitstream Charter
>Italics" a fallback sans serif font is embedded. So it seems that
>gnuplot holds that "Bitstream Charter Italic" is a valid font but
>includes the regular version of "Bitstream Charter" in the pdf. I
>tested other standard fonts as Times and Helvetica as well.
>
>Any other ideas or is this font feature still to experimental to be
>really used?
All I can say is that it works here. If you can pin down what causes
it to fail on your system, perhaps we can make the gnuplot code more
robust. But the first thing to check is what fonts are really present
in your pdf file, and what fonts are available on your system according
to fc-list.
--
Ethan A Merritt