A repository to hold a list of all the font family names provided by default by Cocoa's App Kit
.
The font family names are:
"Al Bayan",
"American Typewriter",
"Andale Mono",
Arial,
"Arial Black",
"Arial Hebrew",
"Arial Narrow",
"Arial Rounded MT Bold",
"Arial Unicode MS",
Avenir,
"Avenir Next",
"Avenir Next Condensed",
Ayuthaya,
Baghdad,
"Bangla MN",
"Bangla Sangam MN",
Baskerville,
BiauKai,
"Big Caslon",
"Brush Script MT",
Chalkboard,
"Chalkboard SE",
Chalkduster,
"Charcoal CY",
Cochin,
"Comic Sans MS",
Copperplate,
"Corsiva Hebrew",
Courier,
"Courier New",
Damascus,
"DecoType Naskh",
"Devanagari MT",
"Devanagari Sangam MN",
Didot,
"Euphemia UCAS",
Futura,
"GB18030 Bitmap",
"Geeza Pro",
Geneva,
"Geneva CY",
Georgia,
"Gill Sans",
"Gujarati MT",
"Gujarati Sangam MN",
GungSeo,
"Gurmukhi MN",
"Gurmukhi MT",
"Gurmukhi Sangam MN",
HeadLineA,
Hei,
"Heiti SC",
"Heiti TC",
Helvetica,
"Helvetica CY",
"Helvetica Neue",
Herculanum,
"Hiragino Kaku Gothic Pro",
"Hiragino Kaku Gothic ProN",
"Hiragino Kaku Gothic Std",
"Hiragino Kaku Gothic StdN",
"Hiragino Maru Gothic Pro",
"Hiragino Maru Gothic ProN",
"Hiragino Mincho Pro",
"Hiragino Mincho ProN",
"Hiragino Sans GB",
"Hoefler Text",
Impact,
InaiMathi,
Kai,
Kailasa,
"Kaiti SC",
"Kannada MN",
"Kannada Sangam MN",
Kefa,
"Khmer MN",
"Khmer Sangam MN",
Kokonor,
Krungthep,
KufiStandardGK,
"Lao MN",
"Lao Sangam MN",
"LiHei Pro",
"LiSong Pro",
"Lucida Grande",
"Malayalam MN",
"Malayalam Sangam MN",
Marion,
"Marker Felt",
Menlo,
"Microsoft Sans Serif",
Monaco,
Mshtakan,
"Myanmar MN",
"Myanmar Sangam MN",
Nadeem,
"Nanum Brush Script",
"Nanum Gothic",
"Nanum Myeongjo",
"Nanum Pen Script",
"New Peninim MT",
Noteworthy,
Optima,
"Oriya MN",
"Oriya Sangam MN",
Osaka,
Palatino,
Papyrus,
PCMyungjo,
PilGi,
"Plantagenet Cherokee",
"PT Sans",
"PT Sans Caption",
"PT Sans Narrow",
Raanana,
Sathu,
Silom,
"Sinhala MN",
"Sinhala Sangam MN",
Skia,
"Songti SC",
STFangsong,
STHeiti,
STIXGeneral,
STIXIntegralsD,
STIXIntegralsSm,
STIXIntegralsUp,
STIXIntegralsUpD,
STIXIntegralsUpSm,
STIXNonUnicode,
STIXSizeFiveSym,
STIXSizeFourSym,
STIXSizeOneSym,
STIXSizeThreeSym,
STIXSizeTwoSym,
STIXVariants,
STKaiti,
STSong,
Symbol,
Tahoma,
"Tamil MN",
"Tamil Sangam MN",
"Telugu MN",
"Telugu Sangam MN",
Thonburi,
Times,
"Times New Roman",
"Trebuchet MS",
Verdana,
Webdings,
Wingdings,
"Wingdings 2",
"Wingdings 3",
"Yuppy SC",
"Yuppy TC",
"Zapf Dingbats",
Zapfino,
"Apple Braille",
"Apple Chancery",
"Apple Color Emoji",
"Apple LiGothic",
"Apple LiSung",
"Apple SD Gothic Neo",
"Apple Symbols",
AppleGothic,
AppleMyungjo
In order to access this programatically, use [[[NSFontManager sharedFontManager] availableFontFamilies] description]
.
In order to add a custom font file into your Mac app, do the following steps:
- Create a folder titled Fonts in your main project folder, where all your classes are
- Add the font file to your Xcode project by dragging it into Xcode from Finder
- Add a new Copy File to your target. To do this: click on your target -> click on Add Build Phase -> click on Add Copy Files
- Set the destination of the Copy Files build phase to Resources, with a path of Fonts (or whatever you named the fonts folder in step 1)
- Add a
ATSApplicationFontsPath
key to your ProjectName-Info.plist, with the valueFonts
(or whatever you named the fonts folder in step 1)
After you do the steps listed above, run [[[NSFontManager sharedFontManager] availableFontFamilies] description]
to see the font family name to be used in your app.
More info found at: http://stackoverflow.com/questions/2444717/embed-font-in-a-mac-bundle