Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Adding fonts for PDF output

I am running GNUplot scripts which produce PDF output files, using the pdflib installed via MacPorts.


"

pdflib @7.0.5_1+universal (active)
"


I've added a symbols font called MoonPhases.ttf to the fontbook.


The GNUplot Acqua terminal finds those fonts but the PDF lib does not. I have set an explicit "set fontpath "/Users/house/Library/Fonts/MoonPhases.ttf" with no luck.


GNUplot's "show fontpath" displays:


"system fontpath is "/System/Library/Fonts" "/Library/Fonts" "/Users/house/Library/Fonts"" so it does know where to look.


Can anyone offer advice about how to make that TTF font available to the PDFlib?

iMac, Mac OS X (10.6.8), iMac 24" 2.8 ghz 4 GB RAM

Posted on Mar 19, 2013 5:06 AM

Reply
23 replies

Mar 23, 2013 6:56 AM in response to Kurt Lang

Kurt,


One last question:


Do those Moon Phase fonts support Unicode mapping?


From the GNUplot Font Help page:

"The fonts are retrieved from the usual fonts subsystems. Under Windows,

those fonts are to be found and configured in the entry "Fonts" of the

control panel. Under UNIX, they are handled by "fontconfig"."


"Pango, the library used to layout the text, is based on utf-8. Thus, the pdfcairo

terminal has to convert from your encoding to utf-8. The default input

encoding is based on your 'locale'. If you want to use another encoding,

make sure gnuplot knows which one you are using. See `encoding` for more

details."


"Pango may give unexpected results with fonts that do not respect the unicode

mapping. With the Symbol font, for example, the pdfcairo terminal will use the map

provided by http://www.unicode.org/ to translate character codes to unicode.

Note that "the Symbol font" is to be understood as the Adobe

Symbol font, distributed with Acrobat Reader as "SY______.PFB".

Alternatively, the OpenSymbol font, distributed with OpenOffice.org as

"opens___.ttf", offers the same characters. Microsoft has distributed a

Symbol font ("symbol.ttf"), but it has a different character set with

several missing or moved mathematic characters. If you experience problems

with your default setup (if the demo enhancedtext.dem is not displayed

properly for example), you probably have to install one of the Adobe or

OpenOffice Symbol fonts, and remove the Microsoft one.

Other non-conform fonts, such as "wingdings" have been observed working."


With thanks again for all your effort on this.

Mar 25, 2013 2:04 PM in response to Kurt Lang

Kurt,


Sorry to say, no joy, though there was the interesting result that when I loaded the unicode-mapped .otf PopChar asked for permission to access FB, which had not happened with the other versions.


Anyway, let's stop here. You've gone way beyond the necessary and I appreciate it very much.


I'm not sure how this discussion got marked "Solved my question" though.


With my thanks,

Jan 8, 2014 2:14 PM in response to Kurt Lang

Kurt,


Many Many months later:


The problem finally got solved in a very roundabout manner: I found a font (in comp.fonts), Symbola, which includes glyphs for the new and full moons, and the first and last quarters, installed it, only to find that only the first/last quarters would display, and only when I set GNUplot to use UTF8.


Then it turns out that the glyphs for the New and Full Moon are recent additions to Unicode, but only Full would display on my desktop. So I had to use Large circle and Large Black Circle in their place. It finally now works in the PDF output generated by GNUplot. The different output "terminals" used by GNUplot tend to vary in how long it takes to catch up in such matters.


The place it finally all got solved was over in the comp.graphics.app.gnuplot, in this thread:


https://groups.google.com/forum/#!topic/comp.graphics.apps.gnuplot/96gDfBo3gp8


and in comp.fonts, in this thread:


https://groups.google.com/forum/#!topic/comp.fonts/KeALbWAfkc0


I thought you might be interested to know the developments in this. I appreciated your help enormously at the time, even if we didn't solve it then!

Adding fonts for PDF output

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.