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 4 of 4 Topic 3386 of 3655
Post > Topic >>

Re: pdfcairo font selection

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
 




 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:53:55 PST 2009.