Harjo
1
How do I detect the default Font directory in OSX??
I use the pdf plugin, to include the fonts.
On windows I do this:
if(utils.stringMiddle(application.getOSName(),1,7) == “Windows”)
{
plugins.pdf_output.insertFontDirectory(‘c:/Windows/Fonts’);
}
What mus I do on Mac??
if (application.getOSName().match(“Mac”))
{
plugins.pdf_output.insertFontDirectory(xxxxxxxxxxxxx);
}
Can anyone tell me?
ROCLASI
2
System wide fonts are in /Library/Fonts/
User specific fonts are in ~/Library/Fonts/
Hope this helps.
Harjo
3
oke, can I do this than:
if (application.getOSName().match(“Mac”))
{
plugins.pdf_output.insertFontDirectory(‘/System/Library/Fonts/’);
plugins.pdf_output.insertFontDirectory(‘/Library/Fonts/’);
plugins.pdf_output.insertFontDirectory(‘~/Library/Fonts/’);
}
Does it look in all this folders for the font, or just the last one?