Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > Gnuplot interactive function plotter > pdfcairo font s...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 3386 of 3637
Post > Topic >>

pdfcairo font selection

by Steffen Kahra <steffen.kahra@[EMAIL PROTECTED] > Jun 25, 2008 at 11:51 PM

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"

Applied to my case it should read

Bitstream Charter:bold

Checking my fontconfig configuration using the command fc-match it 
should find the correct font and indeed it does:

 > fc-match "Bitstream Charter:bold"
bchb.pfa: "Bitstream Charter" "Bold"

So fontconfig finds the correct font and so should gnuplots font 
selection system as I learn from the gnuplot manual that it actually 
relies on fontconfig for linux systems. But giving the bold face like 
above is not successful, instead this seems to be not valid as the 
standard sans serif font is embedded in the pdf.

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

Greetings,

Steffen
 




 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
tan12V112 Fri Dec 5 4:59:45 CST 2008.