Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.astraweb.com!border6.a.newsrouter.astraweb.com!cyclone03.ams2.highwinds-media.com!news.highwinds-media.com!voer-me.highwinds-media.com!npeersf03.am4!fx22.fr7.POSTED!not-for-mail Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes Newsgroups: comp.graphics.apps.gnuplot Subject: pdfcairo terminal and spaces/hyphens in font names MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ed Bennett" Message-ID: User-Agent: Opera Mail/12.11 (MacIntel) Lines: 32 NNTP-Posting-Host: 82.20.154.213 X-Complaints-To: http://netreport.virginmedia.com X-Trace: 1365285524 82.20.154.213 (Sat, 06 Apr 2013 21:58:44 UTC) NNTP-Posting-Date: Sat, 06 Apr 2013 21:58:44 UTC Organization: virginmedia.com Date: Sat, 06 Apr 2013 22:58:44 +0100 X-Received-Bytes: 2205 Xref: csiph.com comp.graphics.apps.gnuplot:1747 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