including custom fonts in a Mac standalone

Mar 5, 2009 at 2:43am

including custom fonts in a Mac standalone

Another *bump* along the road. Does anyone have a suggestion on how to include custom fonts in a standalone or a patch without having to install them? I hope I am missing something but it appears that they need to be installed before they are actually recognized by Max…

Ico

#42672
Mar 5, 2009 at 4:02am

Never mind, just figured it out for a standalone app on OS X.

For those interested in the solution, here are the steps:

1) build a standalone app
2) right-click on the app and select “Show Package Contents”
3) Go to Contents/Resources/, create a folder Fonts/ and copy your custom font(s) in there.
4) Open Contents/Info.plist with a text editor and go towards the bottom of the file where you have entries, followed by entries.
5) Add following to the Info.plist above all and entries:

ATSApplicationFontsPath
Fonts/

6) Save Info.plist
7) Enjoy! Smile

now if only we could save mxj’s in binary format to provide basic obfuscation of source, we’d have a full-fledged-commercial-app-generating-tool-o-matic on our hands…

Best wishes,

#152767
Mar 5, 2009 at 4:13am

Sweet! I’ve been needing this for a while, many thanks.

#152768
Jun 18, 2009 at 4:16pm
ico wrote on Wed, 04 March 2009 21:02
Never mind, just figured it out for a standalone app on OS X.

For those interested in the solution, here are the steps:

1) build a standalone app
2) right-click on the app and select “Show Package Contents”
3) Go to Contents/Resources/, create a folder Fonts/ and copy your custom font(s) in there.
4) Open Contents/Info.plist with a text editor and go towards the bottom of the file where you have entries, followed by entries.
5) Add following to the Info.plist above all and entries:

ATSApplicationFontsPath
Fonts/

6) Save Info.plist
7) Enjoy! Smile

now if only we could save mxj’s in binary format to provide basic obfuscation of source, we’d have a full-fledged-commercial-app-generating-tool-o-matic on our hands…

Best wishes,

hi. this font issue is a crucial problem for me and i have to solve it quickly. i’ve felt quite cheerful when i read your entry and tried it but it didn’t work :/ i guess i’m doing something wrong. my plist is this:

< ?xml version="1.0" encoding="UTF-8"?>
< !DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd“>


ATSApplicationfontsPath
fonts/

CFBundleDevelopmentRegion
English
CFBundleDocumentTypes


CFBundleTypeExtensions

pat
mxb
help

CFBundleTypeIconFile
Binary.icns
CFBundleTypeName
Max binary file
CFBundleTypeOSTypes

maxb

CFBundleTypeRole
Editor


CFBundleTypeExtensions

txt
mxt

CFBundleTypeIconFile
Text.icns
CFBundleTypeName
Max text file
CFBundleTypeOSTypes

TEXT

CFBundleTypeRole
Editor


CFBundleTypeExtensions

mxf

CFBundleTypeIconFile
Collective5.icns
CFBundleTypeName
Max collective
CFBundleTypeOSTypes

mx@c

CFBundleTypeRole
Editor


CFBundleTypeExtensions

vst

CFBundleTypeIconFile
VST.icns
CFBundleTypeName
VST plug-in
CFBundleTypeOSTypes

aPcs

CFBundleTypeRole
Editor
LSTypeIsPackage



CFBundleTypeExtensions

mxo

CFBundleTypeIconFile
Extern.icns
CFBundleTypeName
Max external object
CFBundleTypeOSTypes

iLaX

CFBundleTypeRole
Viewer
LSTypeIsPackage



CFBundleTypeExtensions

jit

CFBundleTypeIconFile
Jit.icns
CFBundleTypeName
Jitter document
CFBundleTypeOSTypes

JiT!

CFBundleTypeRole
Editor


CFBundleTypeExtensions

aif
aiff

CFBundleTypeIconFile
AIFF.icns
CFBundleTypeName
AIFF audio file
CFBundleTypeOSTypes

AIFF
AIFC

CFBundleTypeRole
Viewer


CFBundleTypeIconFile
Collective.icns
CFBundleTypeName
Max old format collective
CFBundleTypeOSTypes

maxc

CFBundleTypeRole
None


CFBundleTypeExtensions

app

CFBundleTypeName
Application
CFBundleTypeOSTypes

APPL

CFBundleTypeRole
None


CFBundleTypeExtensions

mid
midi

CFBundleTypeName
MIDI File
CFBundleTypeOSTypes

Midi
MIDI

CFBundleTypeRole
None


CFBundleTypeExtensions

xml

CFBundleTypeName
XML File
CFBundleTypeOSTypes

TEXT


CFBundleTypeRole
Viewer


CFBundleTypeExtensions

maxpat
maxhelp
json

CFBundleTypeIconFile
Patcher.icns
CFBundleTypeName
Max 5 patcher
CFBundleTypeRole
Editor


CFBundleTypeExtensions

fxp

CFBundleTypeName
VST effect program
CFBundleTypeOSTypes

AFxP


CFBundleTypeRole
Viewer


CFBundleTypeExtensions

fxb

CFBundleTypeName
VST effect bank
CFBundleTypeOSTypes

AFxB


CFBundleTypeRole
Viewer

CFBundleExecutable
gigigi
CFBundleGetInfoString
5.0.7, Copyright 2008 Cycling ’74
CFBundleIconFile
Max.icns
CFBundleIdentifier
com.cycling74.com.Max.gigigi.appRuntime
CFBundleInfoDictionaryVersion
6.0
CFBundleLongVersionString
MaxMSP Runtime 5.0.7 (build 38325), Copyright 2007 Cycling ’74
CFBundlePackageType
APPL
CFBundleShortVersionString
5.0.7 (38325)
CFBundleSignature
????
CFBundleVersion
5.0.7
CSResourcesFileMapped

did i do it in the right way?

#152769
Jun 19, 2009 at 12:44pm

i solved the problem just after my post:) i wrote the name of the folder as Fonts and it worked. i guess it was just a capital letter issue.
thank you.

#152770
Aug 7, 2009 at 5:33pm

anybody has an idea how to do it in a windows standalone? in windows there is no such thing like “show package contents”.

#152771
Aug 25, 2011 at 11:03am

mmm doesn’t work for me on a mac, tried both combinations of fonts/ Fonts/ and the font won’t show up in a comment on a mac that doesn’t have the font installed.

Garrett

#152772
Mar 13, 2013 at 3:33pm

any news on this for windows?

#152773

You must be logged in to reply to this topic.