Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #1747
| Newsgroups | comp.graphics.apps.gnuplot |
|---|---|
| Subject | pdfcairo terminal and spaces/hyphens in font names |
| From | "Ed Bennett" <ed.bennett@ntlworld.com> |
| Message-ID | <op.wu43b6cbzrz2e1@aluminiumdreams.local> (permalink) |
| Organization | virginmedia.com |
| Date | 2013-04-06 22:58 +0100 |
Greetings,
I've been trying to generate plots for a paper in gnuplot 4.6
(upgraded to 4.6.2 to double-check). I'm using the enhanced
pdfcairo terminal on OS X.
I've not been able to consistently set fonts with it when the fonts
have spaces or hyphens in the name. To set the main plot font
I've been using set term pdfcairo enhanced font "[fontname],[size]",
which works for fonts with spaces in their name. However, if the
font has a hyphen in its name (e.g. BKM-cmr12) then the hyphen
is replaced with a space, and Pango complains it can't find the font.
Meanwhile for setting fonts locally in text elements, I've been using
{/[fontname] text}, which works for fonts with hyphens in their
name but not spaces. I've tried using spaces, hyphens, spaces
escaped with a backslash, and omitting the spaces; all results give
Pango warnings for missing fonts, and with both the space and
escaped-space versions only the first word (with or without
backslash) is looked for.
This means, among other things, that all bold and italic variants
are unavailable as they are supposed (I think) to be accessed by
putting " Italic"/" Bold" after the font name; the space breaks things.
I've worked around this in part by using FontForge to create versions
of italic fonts I need that have no spaces in their names, but that is
time-consuming and irritating.
Is this a known bug, or is there some way to work around it?
Thanks
Ed
Back to comp.graphics.apps.gnuplot | Previous | Next — Next in thread | Find similar
pdfcairo terminal and spaces/hyphens in font names "Ed Bennett" <ed.bennett@ntlworld.com> - 2013-04-06 22:58 +0100 Re: pdfcairo terminal and spaces/hyphens in font names "Ed Bennett" <ed.bennett@ntlworld.com> - 2013-04-09 02:05 +0100
csiph-web