including custom fonts in a Mac standalone

ico's icon

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

ico's icon

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!

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,

MuShoo's icon

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

Canti's icon

ico wrote on Wed, 04 March 2009 21:02Never 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!

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:

    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
            CFBundleTypeOSTypesmx@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?

Canti's icon

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.

Canti's icon

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

Garrett's icon

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

Beep's icon

any news on this for windows?

lucastle69's icon

I came across this problem, and the thing is that I'm not building a stand-alone, just a patch I need to use on different systems but still want to have a particular feel as far as design goes. A workaround you might want to consider, if the interface font is important to you, is using [fpic] after saving a transparent background .png of your text with your desired font in photoshop.

b00kwheat's icon