Mac 开发系统字体

负责的项目要大改版,字体使用平方字体。因此调研了系统支持的字体。

系统默认字体

使用系统默认字体,这个是我们开发时最常用的了,现在打出来字体的 Family 和 FontName 看下吧:

NSLog(@"%@:%@",[NSFont systemFontOfSize:14].familyName,[NSFont systemFontOfSize:14].fontName);

.AppleSystemUIFont:.AppleSystemUIFont

支持的 FontFamily

NSLog(@"%@",[[NSFontManager sharedFontManager]availableFontFamilies]);

[
Al Bayan,
Al Nile,
Al Tarikh,
American Typewriter,
Andale Mono,
Arial,
Arial Black,
Arial Hebrew,
Arial Hebrew Scholar,
Arial Narrow,
Arial Rounded MT Bold,
Arial Unicode MS,
Athelas,
Avenir,
Avenir Next,
Avenir Next Condensed,
Ayuthaya,
Baghdad,
Bangla MN,
Bangla Sangam MN,
Baoli SC,
Baoli TC,
Baskerville,
Beirut,
BiauKai,
Big Caslon,
Bodoni 72,
Bodoni 72 Oldstyle,
Bodoni 72 Smallcaps,
Bodoni Ornaments,
Bradley Hand,
Brush Script MT,
Chalkboard,
Chalkboard SE,
Chalkduster,
Charter,
Cochin,
Comic Sans MS,
Copperplate,
Corsiva Hebrew,
Courier,
Courier New,
Damascus,
DecoType Naskh,
Devanagari MT,
Devanagari Sangam MN,
Didot,
DIN Alternate,
DIN Condensed,
Diwan Kufi,
Diwan Thuluth,
Euphemia UCAS,
Farah,
Farisi,
Futura,
GB18030 Bitmap,
Geeza Pro,
Geneva,
Georgia,
Gill Sans,
Gujarati MT,
Gujarati Sangam MN,
GungSeo,
Gurmukhi MN,
Gurmukhi MT,
Gurmukhi Sangam MN,
Hannotate SC,
Hannotate TC,
HanziPen SC,
HanziPen TC,
HeadLineA,
Hei,
Heiti SC,
Heiti TC,
Helvetica,
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,
Hiragino Sans CNS,
Hiragino Sans GB,
Hoefler Text,
Impact,
InaiMathi,
Iowan Old Style,
ITF Devanagari,
ITF Devanagari Marathi,
Kai,
Kailasa,
Kaiti SC,
Kaiti TC,
Kannada MN,
Kannada Sangam MN,
Kefa,
Khmer MN,
Khmer Sangam MN,
Klee,
Kohinoor Bangla,
Kohinoor Devanagari,
Kohinoor Telugu,
Kokonor,
Krungthep,
KufiStandardGK,
Lantinghei SC,
Lantinghei TC,
Lao MN,
Lao Sangam MN,
Libian SC,
Libian TC,
LiHei Pro,
LingWai SC,
LingWai TC,
LiSong Pro,
Lucida Grande,
Luminari,
Malayalam MN,
Malayalam Sangam MN,
Marion,
Marker Felt,
Menlo,
Microsoft Sans Serif,
Mishafi,
Mishafi Gold,
Monaco,
Mshtakan,
Muna,
Myanmar MN,
Myanmar Sangam MN,
Nadeem,
Nanum Brush Script,
Nanum Gothic,
Nanum Myeongjo,
Nanum Pen Script,
New Peninim MT,
Noteworthy,
Noto Nastaliq Urdu,
Optima,
Oriya MN,
Oriya Sangam MN,
Osaka,
Palatino,
Papyrus,
PCMyungjo,
Phosphate,
PilGi,
PingFang HK,
PingFang SC,
PingFang TC,
Plantagenet Cherokee,
PT Mono,
PT Sans,
PT Sans Caption,
PT Sans Narrow,
PT Serif,
PT Serif Caption,
Raanana,
Rockwell,
Sana,
Sathu,
Savoye LET,
Seravek,
Shree Devanagari 714,
SignPainter,
Silom,
Sinhala MN,
Sinhala Sangam MN,
Skia,
Snell Roundhand,
Songti SC,
Songti TC,
STFangsong,
STHeiti,
STIXGeneral,
STIXIntegralsD,
STIXIntegralsSm,
STIXIntegralsUp,
STIXIntegralsUpD,
STIXIntegralsUpSm,
STIXNonUnicode,
STIXSizeFiveSym,
STIXSizeFourSym,
STIXSizeOneSym,
STIXSizeThreeSym,
STIXSizeTwoSym,
STIXVariants,
STKaiti,
STSong,
Sukhumvit Set,
Superclarendon,
Symbol,
Tahoma,
Tamil MN,
Tamil Sangam MN,
Telugu MN,
Telugu Sangam MN,
Thonburi,
Times,
Times New Roman,
Toppan Bunkyu Gothic,
Toppan Bunkyu Midashi Gothic,
Toppan Bunkyu Midashi Mincho,
Toppan Bunkyu Mincho,
Trattatello,
Trebuchet MS,
Tsukushi A Round Gothic,
Tsukushi B Round Gothic,
Verdana,
Waseem,
Wawati SC,
Wawati TC,
Webdings,
Weibei SC,
Weibei TC,
Wingdings,
Wingdings 2,
Wingdings 3,
Xingkai SC,
Xingkai TC,
Yuanti SC,
Yuanti TC,
YuGothic,
YuKyokasho,
YuKyokasho Yoko,
YuMincho,
YuMincho +36p Kana,
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
]

支持的 Font

NSLog(@"%@",[[NSFontManager sharedFontManager]availableFonts]);

[
.AlBayanPUA,
.AlBayanPUA-Bold,
.AlNilePUA,
.AlNilePUA-Bold,
.AlTarikhPUA,
.AppleColorEmojiUI,
.AppleSDGothicNeoI-Bold,
.AppleSDGothicNeoI-ExtraBold,
.AppleSDGothicNeoI-Heavy,
.AppleSDGothicNeoI-Light,
.AppleSDGothicNeoI-Medium,
.AppleSDGothicNeoI-Regular,
.AppleSDGothicNeoI-SemiBold,
.AppleSDGothicNeoI-Thin,
.AppleSDGothicNeoI-UltraLight,
.ArabicUIDisplay-Black,
.ArabicUIDisplay-Bold,
.ArabicUIDisplay-Heavy,
.ArabicUIDisplay-Light,
.ArabicUIDisplay-Medium,
.ArabicUIDisplay-Regular,
.ArabicUIDisplay-Semibold,
.ArabicUIDisplay-Thin,
.ArabicUIDisplay-Ultralight,
.ArabicUIText-Bold,
.ArabicUIText-Heavy,
.ArabicUIText-Light,
.ArabicUIText-Medium,
.ArabicUIText-Regular,
.ArabicUIText-Semibold,
.ArialHebrewDeskInterface,
.ArialHebrewDeskInterface-Bold,
.ArialHebrewDeskInterface-Light,
.BaghdadPUA,
.BeirutPUA,
.DamascusPUA,
.DamascusPUABold,
.DamascusPUALight,
.DamascusPUAMedium,
.DamascusPUASemiBold,
.DecoTypeNaskhPUA,
.DiwanKufiPUA,
.FarahPUA,
.GeezaProInterface,
.GeezaProInterface-Bold,
.GeezaProInterface-Light,
.GeezaProPUA,
.GeezaProPUA-Bold,
.HelveticaNeueDeskInterface-Bold,
.HelveticaNeueDeskInterface-BoldItalic,
.HelveticaNeueDeskInterface-Heavy,
.HelveticaNeueDeskInterface-Italic,
.HelveticaNeueDeskInterface-Light,
.HelveticaNeueDeskInterface-MediumItalicP4,
.HelveticaNeueDeskInterface-MediumP4,
.HelveticaNeueDeskInterface-Regular,
.HelveticaNeueDeskInterface-Thin,
.HelveticaNeueDeskInterface-UltraLightP2,
.HiraKakuInterface-W0,
.HiraKakuInterface-W1,
.HiraKakuInterface-W2,
.HiraKakuInterface-W3,
.HiraKakuInterface-W4,
.HiraKakuInterface-W5,
.HiraKakuInterface-W6,
.HiraKakuInterface-W7,
.HiraKakuInterface-W8,
.HiraKakuInterface-W9,
.HiraginoSansGBInterface-W3,
.HiraginoSansGBInterface-W6,
.Keyboard,
.KufiStandardGKPUA,
.LucidaGrandeUI,
.LucidaGrandeUI-Bold,
.MunaPUA,
.MunaPUABlack,
.MunaPUABold,
.NadeemPUA,
.NotoNastaliqUrduUI,
.PingFangHK-Light,
.PingFangHK-Medium,
.PingFangHK-Regular,
.PingFangHK-Semibold,
.PingFangHK-Thin,
.PingFangHK-Ultralight,
.PingFangSC-Light,
.PingFangSC-Medium,
.PingFangSC-Regular,
.PingFangSC-Semibold,
.PingFangSC-Thin,
.PingFangSC-Ultralight,
.PingFangTC-Light,
.PingFangTC-Medium,
.PingFangTC-Regular,
.PingFangTC-Semibold,
.PingFangTC-Thin,
.PingFangTC-Ultralight,
.SFCompactDisplay-Black,
.SFCompactDisplay-Bold,
.SFCompactDisplay-Heavy,
.SFCompactDisplay-Light,
.SFCompactDisplay-Medium,
.SFCompactDisplay-Regular,
.SFCompactDisplay-Semibold,
.SFCompactDisplay-Thin,
.SFCompactDisplay-Ultralight,
.SFCompactRounded-Black,
.SFCompactRounded-Bold,
.SFCompactRounded-Heavy,
.SFCompactRounded-Light,
.SFCompactRounded-Medium,
.SFCompactRounded-Regular,
.SFCompactRounded-Semibold,
.SFCompactRounded-Thin,
.SFCompactRounded-Ultralight,
.SFCompactText-Bold,
.SFCompactText-BoldItalic,
.SFCompactText-Heavy,
.SFCompactText-HeavyItalic,
.SFCompactText-Italic,
.SFCompactText-Light,
.SFCompactText-LightItalic,
.SFCompactText-Medium,
.SFCompactText-MediumItalic,
.SFCompactText-Regular,
.SFCompactText-Semibold,
.SFCompactText-SemiboldItalic,
.SFNSDisplay,
.SFNSDisplay-Black,
.SFNSDisplay-BlackItalic,
.SFNSDisplay-Bold,
.SFNSDisplay-BoldItalic,
.SFNSDisplay-Heavy,
.SFNSDisplay-HeavyItalic,
.SFNSDisplay-Italic,
.SFNSDisplay-Light,
.SFNSDisplay-LightItalic,
.SFNSDisplay-Medium,
.SFNSDisplay-MediumItalic,
.SFNSDisplay-Semibold,
.SFNSDisplay-SemiboldItalic,
.SFNSDisplay-Thin,
.SFNSDisplay-ThinG1,
.SFNSDisplay-ThinG2,
.SFNSDisplay-ThinG3,
.SFNSDisplay-ThinG4,
.SFNSDisplay-ThinItalic,
.SFNSDisplay-Ultralight,
.SFNSDisplay-UltralightItalic,
.SFNSDisplayCondensed-Black,
.SFNSDisplayCondensed-Bold,
.SFNSDisplayCondensed-Heavy,
.SFNSDisplayCondensed-Light,
.SFNSDisplayCondensed-Medium,
.SFNSDisplayCondensed-Regular,
.SFNSDisplayCondensed-Semibold,
.SFNSDisplayCondensed-Thin,
.SFNSDisplayCondensed-Ultralight,
.SFNSRounded-Black,
.SFNSRounded-Bold,
.SFNSRounded-Heavy,
.SFNSRounded-Light,
.SFNSRounded-Medium,
.SFNSRounded-Regular,
.SFNSRounded-Semibold,
.SFNSRounded-Thin,
.SFNSRounded-Ultralight,
.SFNSSymbols-Black,
.SFNSSymbols-Bold,
.SFNSSymbols-Heavy,
.SFNSSymbols-Light,
.SFNSSymbols-Medium,
.SFNSSymbols-Regular,
.SFNSSymbols-Semibold,
.SFNSSymbols-Thin,
.SFNSSymbols-Ultralight,
.SFNSText,
.SFNSText-Bold,
.SFNSText-BoldItalic,
.SFNSText-Heavy,
.SFNSText-HeavyItalic,
.SFNSText-Italic,
.SFNSText-Light,
.SFNSText-LightItalic,
.SFNSText-Medium,
.SFNSText-MediumItalic,
.SFNSText-Semibold,
.SFNSText-SemiboldItalic,
.SFNSTextCondensed-Bold,
.SFNSTextCondensed-Heavy,
.SFNSTextCondensed-Light,
.SFNSTextCondensed-Medium,
.SFNSTextCondensed-Regular,
.SFNSTextCondensed-Semibold,
.SanaPUA,
.SavoyeLetPlainCC,
AlBayan,
AlBayan-Bold,
AlNile,
AlNile-Bold,
AlTarikh,
AmericanTypewriter,
AmericanTypewriter-Bold,
AmericanTypewriter-Condensed,
AmericanTypewriter-CondensedBold,
AmericanTypewriter-CondensedLight,
AmericanTypewriter-Light,
AmericanTypewriter-Semibold,
AndaleMono,
Apple-Chancery,
AppleBraille,
AppleBraille-Outline6Dot,
AppleBraille-Outline8Dot,
AppleBraille-Pinpoint6Dot,
AppleBraille-Pinpoint8Dot,
AppleColorEmoji,
AppleGothic,
AppleMyungjo,
AppleSDGothicNeo-Bold,
AppleSDGothicNeo-ExtraBold,
AppleSDGothicNeo-Heavy,
AppleSDGothicNeo-Light,
AppleSDGothicNeo-Medium,
AppleSDGothicNeo-Regular,
AppleSDGothicNeo-SemiBold,
AppleSDGothicNeo-Thin,
AppleSDGothicNeo-UltraLight,
AppleSymbols,
AquaKana,
AquaKana-Bold,
Arial-Black,
Arial-BoldItalicMT,
Arial-BoldMT,
Arial-ItalicMT,
ArialHebrew,
ArialHebrew-Bold,
ArialHebrew-Light,
ArialHebrewScholar,
ArialHebrewScholar-Bold,
ArialHebrewScholar-Light,
ArialMT,
ArialNarrow,
ArialNarrow-Bold,
ArialNarrow-BoldItalic,
ArialNarrow-Italic,
ArialRoundedMTBold,
ArialUnicodeMS,
Athelas-Bold,
Athelas-BoldItalic,
Athelas-Italic,
Athelas-Regular,
Avenir-Black,
Avenir-BlackOblique,
Avenir-Book,
Avenir-BookOblique,
Avenir-Heavy,
Avenir-HeavyOblique,
Avenir-Light,
Avenir-LightOblique,
Avenir-Medium,
Avenir-MediumOblique,
Avenir-Oblique,
Avenir-Roman,
AvenirNext-Bold,
AvenirNext-BoldItalic,
AvenirNext-DemiBold,
AvenirNext-DemiBoldItalic,
AvenirNext-Heavy,
AvenirNext-HeavyItalic,
AvenirNext-Italic,
AvenirNext-Medium,
AvenirNext-MediumItalic,
AvenirNext-Regular,
AvenirNext-UltraLight,
AvenirNext-UltraLightItalic,
AvenirNextCondensed-Bold,
AvenirNextCondensed-BoldItalic,
AvenirNextCondensed-DemiBold,
AvenirNextCondensed-DemiBoldItalic,
AvenirNextCondensed-Heavy,
AvenirNextCondensed-HeavyItalic,
AvenirNextCondensed-Italic,
AvenirNextCondensed-Medium,
AvenirNextCondensed-MediumItalic,
AvenirNextCondensed-Regular,
AvenirNextCondensed-UltraLight,
AvenirNextCondensed-UltraLightItalic,
Ayuthaya,
Baghdad,
BanglaMN,
BanglaMN-Bold,
BanglaSangamMN,
BanglaSangamMN-Bold,
Baskerville,
Baskerville-Bold,
Baskerville-BoldItalic,
Baskerville-Italic,
Baskerville-SemiBold,
Baskerville-SemiBoldItalic,
Beirut,
BigCaslon-Medium,
BodoniOrnamentsITCTT,
BodoniSvtyTwoITCTT-Bold,
BodoniSvtyTwoITCTT-Book,
BodoniSvtyTwoITCTT-BookIta,
BodoniSvtyTwoOSITCTT-Bold,
BodoniSvtyTwoOSITCTT-Book,
BodoniSvtyTwoOSITCTT-BookIt,
BodoniSvtyTwoSCITCTT-Book,
BradleyHandITCTT-Bold,
BrushScriptMT,
Chalkboard,
Chalkboard-Bold,
ChalkboardSE-Bold,
ChalkboardSE-Light,
ChalkboardSE-Regular,
Chalkduster,
Charter-Black,
Charter-BlackItalic,
Charter-Bold,
Charter-BoldItalic,
Charter-Italic,
Charter-Roman,
Cochin,
Cochin-Bold,
Cochin-BoldItalic,
Cochin-Italic,
ComicSansMS,
ComicSansMS-Bold,
Copperplate,
Copperplate-Bold,
Copperplate-Light,
CorsivaHebrew,
CorsivaHebrew-Bold,
Courier,
Courier-Bold,
Courier-BoldOblique,
Courier-Oblique,
CourierNewPS-BoldItalicMT,
CourierNewPS-BoldMT,
CourierNewPS-ItalicMT,
CourierNewPSMT,
DFKaiShu-SB-Estd-BF,
DFWaWaSC-W5,
DFWaWaTC-W5,
DINAlternate-Bold,
DINCondensed-Bold,
Damascus,
DamascusBold,
DamascusLight,
DamascusMedium,
DamascusSemiBold,
DecoTypeNaskh,
DevanagariMT,
DevanagariMT-Bold,
DevanagariSangamMN,
DevanagariSangamMN-Bold,
Didot,
Didot-Bold,
Didot-Italic,
DiwanKufi,
DiwanMishafi,
DiwanMishafiGold,
DiwanThuluth,
EuphemiaUCAS,
EuphemiaUCAS-Bold,
EuphemiaUCAS-Italic,
FZLTTHB--B51-0,
FZLTTHK--GBK1-0,
FZLTXHB--B51-0,
FZLTXHK--GBK1-0,
FZLTZHB--B51-0,
FZLTZHK--GBK1-0,
Farah,
Farisi,
Futura-Bold,
Futura-CondensedExtraBold,
Futura-CondensedMedium,
Futura-Medium,
Futura-MediumItalic,
GB18030Bitmap,
GeezaPro,
GeezaPro-Bold,
Geneva,
Georgia,
Georgia-Bold,
Georgia-BoldItalic,
Georgia-Italic,
GillSans,
GillSans-Bold,
GillSans-BoldItalic,
GillSans-Italic,
GillSans-Light,
GillSans-LightItalic,
GillSans-SemiBold,
GillSans-SemiBoldItalic,
GillSans-UltraBold,
GujaratiMT,
GujaratiMT-Bold,
GujaratiSangamMN,
GujaratiSangamMN-Bold,
GurmukhiMN,
GurmukhiMN-Bold,
GurmukhiSangamMN,
GurmukhiSangamMN-Bold,
HannotateSC-W5,
HannotateSC-W7,
HannotateTC-W5,
HannotateTC-W7,
HanziPenSC-W3,
HanziPenSC-W5,
HanziPenTC-W3,
HanziPenTC-W5,
Helvetica,
Helvetica-Bold,
Helvetica-BoldOblique,
Helvetica-Light,
Helvetica-LightOblique,
Helvetica-Oblique,
HelveticaNeue,
HelveticaNeue-Bold,
HelveticaNeue-BoldItalic,
HelveticaNeue-CondensedBlack,
HelveticaNeue-CondensedBold,
HelveticaNeue-Italic,
HelveticaNeue-Light,
HelveticaNeue-LightItalic,
HelveticaNeue-Medium,
HelveticaNeue-MediumItalic,
HelveticaNeue-Thin,
HelveticaNeue-ThinItalic,
HelveticaNeue-UltraLight,
HelveticaNeue-UltraLightItalic,
Herculanum,
HiraKakuPro-W3,
HiraKakuPro-W6,
HiraKakuProN-W3,
HiraKakuProN-W6,
HiraKakuStd-W8,
HiraKakuStdN-W8,
HiraMaruPro-W4,
HiraMaruProN-W4,
HiraMinPro-W3,
HiraMinPro-W6,
HiraMinProN-W3,
HiraMinProN-W6,
HiraginoSans-W0,
HiraginoSans-W1,
HiraginoSans-W2,
HiraginoSans-W3,
HiraginoSans-W4,
HiraginoSans-W5,
HiraginoSans-W6,
HiraginoSans-W7,
HiraginoSans-W8,
HiraginoSans-W9,
HiraginoSansCNS-W3,
HiraginoSansCNS-W6,
HiraginoSansGB-W3,
HiraginoSansGB-W6,
HoeflerText-Black,
HoeflerText-BlackItalic,
HoeflerText-Italic,
HoeflerText-Ornaments,
HoeflerText-Regular,
ITFDevanagari-Bold,
ITFDevanagari-Book,
ITFDevanagari-Demi,
ITFDevanagari-Light,
ITFDevanagari-Medium,
ITFDevanagariMarathi-Bold,
ITFDevanagariMarathi-Book,
ITFDevanagariMarathi-Demi,
ITFDevanagariMarathi-Light,
ITFDevanagariMarathi-Medium,
Impact,
InaiMathi,
InaiMathi-Bold,
IowanOldStyle-Black,
IowanOldStyle-BlackItalic,
IowanOldStyle-Bold,
IowanOldStyle-BoldItalic,
IowanOldStyle-Italic,
IowanOldStyle-Roman,
IowanOldStyle-Titling,
JCHEadA,
JCfg,
JCkg,
JCsmPC,
Kailasa,
Kailasa-Bold,
KannadaMN,
KannadaMN-Bold,
KannadaSangamMN,
KannadaSangamMN-Bold,
Kefa-Bold,
Kefa-Regular,
KhmerMN,
KhmerMN-Bold,
KhmerSangamMN,
Klee-Demibold,
Klee-Medium,
KohinoorBangla-Bold,
KohinoorBangla-Light,
KohinoorBangla-Medium,
KohinoorBangla-Regular,
KohinoorBangla-Semibold,
KohinoorDevanagari-Bold,
KohinoorDevanagari-Light,
KohinoorDevanagari-Medium,
KohinoorDevanagari-Regular,
KohinoorDevanagari-Semibold,
KohinoorTelugu-Bold,
KohinoorTelugu-Light,
KohinoorTelugu-Medium,
KohinoorTelugu-Regular,
KohinoorTelugu-Semibold,
Kokonor,
Krungthep,
KufiStandardGK,
LaoMN,
LaoMN-Bold,
LaoSangamMN,
LastResort,
LiGothicMed,
LiHeiPro,
LiSongPro,
LiSungLight,
LucidaGrande,
LucidaGrande-Bold,
Luminari-Regular,
MLingWaiMedium-SC,
MLingWaiMedium-TC,
MalayalamMN,
MalayalamMN-Bold,
MalayalamSangamMN,
MalayalamSangamMN-Bold,
Marion-Bold,
Marion-Italic,
Marion-Regular,
MarkerFelt-Thin,
MarkerFelt-Wide,
Menlo-Bold,
Menlo-BoldItalic,
Menlo-Italic,
Menlo-Regular,
MicrosoftSansSerif,
Monaco,
MonotypeGurmukhi,
Mshtakan,
MshtakanBold,
MshtakanBoldOblique,
MshtakanOblique,
Muna,
MunaBlack,
MunaBold,
MyanmarMN,
MyanmarMN-Bold,
MyanmarSangamMN,
MyanmarSangamMN-Bold,
Nadeem,
NanumBrush,
NanumGothic,
NanumGothicBold,
NanumGothicExtraBold,
NanumMyeongjo,
NanumMyeongjoBold,
NanumMyeongjoExtraBold,
NanumPen,
NewPeninimMT,
NewPeninimMT-Bold,
NewPeninimMT-BoldInclined,
NewPeninimMT-Inclined,
Noteworthy-Bold,
Noteworthy-Light,
NotoNastaliqUrdu,
Optima-Bold,
Optima-BoldItalic,
Optima-ExtraBlack,
Optima-Italic,
Optima-Regular,
OriyaMN,
OriyaMN-Bold,
OriyaSangamMN,
OriyaSangamMN-Bold,
Osaka,
Osaka-Mono,
PTMono-Bold,
PTMono-Regular,
PTSans-Bold,
PTSans-BoldItalic,
PTSans-Caption,
PTSans-CaptionBold,
PTSans-Italic,
PTSans-Narrow,
PTSans-NarrowBold,
PTSans-Regular,
PTSerif-Bold,
PTSerif-BoldItalic,
PTSerif-Caption,
PTSerif-CaptionItalic,
PTSerif-Italic,
PTSerif-Regular,
Palatino-Bold,
Palatino-BoldItalic,
Palatino-Italic,
Palatino-Roman,
Papyrus,
Papyrus-Condensed,
Phosphate-Inline,
Phosphate-Solid,
PingFangHK-Light,
PingFangHK-Medium,
PingFangHK-Regular,
PingFangHK-Semibold,
PingFangHK-Thin,
PingFangHK-Ultralight,
PingFangSC-Light,
PingFangSC-Medium,
PingFangSC-Regular,
PingFangSC-Semibold,
PingFangSC-Thin,
PingFangSC-Ultralight,
PingFangTC-Light,
PingFangTC-Medium,
PingFangTC-Regular,
PingFangTC-Semibold,
PingFangTC-Thin,
PingFangTC-Ultralight,
PlantagenetCherokee,
Raanana,
RaananaBold,
Rockwell-Bold,
Rockwell-BoldItalic,
Rockwell-Italic,
Rockwell-Regular,
SIL-Hei-Med-Jian,
SIL-Kai-Reg-Jian,
STBaoliSC-Regular,
STBaoliTC-Regular,
STFangsong,
STHeiti,
STHeitiSC-Light,
STHeitiSC-Medium,
STHeitiTC-Light,
STHeitiTC-Medium,
STIXGeneral-Bold,
STIXGeneral-BoldItalic,
STIXGeneral-Italic,
STIXGeneral-Regular,
STIXIntegralsD-Bold,
STIXIntegralsD-Regular,
STIXIntegralsSm-Bold,
STIXIntegralsSm-Regular,
STIXIntegralsUp-Bold,
STIXIntegralsUp-Regular,
STIXIntegralsUpD-Bold,
STIXIntegralsUpD-Regular,
STIXIntegralsUpSm-Bold,
STIXIntegralsUpSm-Regular,
STIXNonUnicode-Bold,
STIXNonUnicode-BoldItalic,
STIXNonUnicode-Italic,
STIXNonUnicode-Regular,
STIXSizeFiveSym-Regular,
STIXSizeFourSym-Bold,
STIXSizeFourSym-Regular,
STIXSizeOneSym-Bold,
STIXSizeOneSym-Regular,
STIXSizeThreeSym-Bold,
STIXSizeThreeSym-Regular,
STIXSizeTwoSym-Bold,
STIXSizeTwoSym-Regular,
STIXVariants-Bold,
STIXVariants-Regular,
STKaiti,
STKaitiSC-Black,
STKaitiSC-Bold,
STKaitiSC-Regular,
STKaitiTC-Black,
STKaitiTC-Bold,
STKaitiTC-Regular,
STLibianSC-Regular,
STLibianTC-Regular,
STSong,
STSongti-SC-Black,
STSongti-SC-Bold,
STSongti-SC-Light,
STSongti-SC-Regular,
STSongti-TC-Bold,
STSongti-TC-Light,
STSongti-TC-Regular,
STXihei,
STXingkaiSC-Bold,
STXingkaiSC-Light,
STXingkaiTC-Bold,
STXingkaiTC-Light,
STYuanti-SC-Bold,
STYuanti-SC-Light,
STYuanti-SC-Regular,
STYuanti-TC-Bold,
STYuanti-TC-Light,
STYuanti-TC-Regular,
Sana,
Sathu,
SavoyeLetPlain,
Seravek,
Seravek-Bold,
Seravek-BoldItalic,
Seravek-ExtraLight,
Seravek-ExtraLightItalic,
Seravek-Italic,
Seravek-Light,
Seravek-LightItalic,
Seravek-Medium,
Seravek-MediumItalic,
ShreeDev0714,
ShreeDev0714-Bold,
ShreeDev0714-BoldItalic,
ShreeDev0714-Italic,
SignPainter-HouseScript,
SignPainter-HouseScriptSemibold,
Silom,
SinhalaMN,
SinhalaMN-Bold,
SinhalaSangamMN,
SinhalaSangamMN-Bold,
Skia-Regular,
Skia-Regular_Black,
Skia-Regular_Black-Condensed,
Skia-Regular_Black-Extended,
Skia-Regular_Bold,
Skia-Regular_Condensed,
Skia-Regular_Extended,
Skia-Regular_Light,
Skia-Regular_Light-Condensed,
Skia-Regular_Light-Extended,
SnellRoundhand,
SnellRoundhand-Black,
SnellRoundhand-Bold,
SukhumvitSet-Bold,
SukhumvitSet-Light,
SukhumvitSet-Medium,
SukhumvitSet-SemiBold,
SukhumvitSet-Text,
SukhumvitSet-Thin,
Superclarendon-Black,
Superclarendon-BlackItalic,
Superclarendon-Bold,
Superclarendon-BoldItalic,
Superclarendon-Italic,
Superclarendon-Light,
Superclarendon-LightItalic,
Superclarendon-Regular,
Symbol,
Tahoma,
Tahoma-Bold,
TamilMN,
TamilMN-Bold,
TamilSangamMN,
TamilSangamMN-Bold,
TeluguMN,
TeluguMN-Bold,
TeluguSangamMN,
TeluguSangamMN-Bold,
Thonburi,
Thonburi-Bold,
Thonburi-Light,
Times-Bold,
Times-BoldItalic,
Times-Italic,
Times-Roman,
TimesNewRomanPS-BoldItalicMT,
TimesNewRomanPS-BoldMT,
TimesNewRomanPS-ItalicMT,
TimesNewRomanPSMT,
ToppanBunkyuGothicPr6N-DB,
ToppanBunkyuGothicPr6N-Regular,
ToppanBunkyuMidashiGothicStdN-ExtraBold,
ToppanBunkyuMidashiMinchoStdN-ExtraBold,
ToppanBunkyuMinchoPr6N-Regular,
Trattatello,
Trebuchet-BoldItalic,
TrebuchetMS,
TrebuchetMS-Bold,
TrebuchetMS-Italic,
TsukuARdGothic-Bold,
TsukuARdGothic-Regular,
TsukuBRdGothic-Bold,
TsukuBRdGothic-Regular,
Verdana,
Verdana-Bold,
Verdana-BoldItalic,
Verdana-Italic,
Waseem,
WaseemLight,
Webdings,
WeibeiSC-Bold,
WeibeiTC-Bold,
Wingdings-Regular,
Wingdings2,
Wingdings3,
YuGo-Bold,
YuGo-Medium,
YuKyo-Bold,
YuKyo-Medium,
YuKyo_Yoko-Bold,
YuKyo_Yoko-Medium,
YuMin-Demibold,
YuMin-Extrabold,
YuMin-Medium,
YuMin_36pKn-Demibold,
YuMin_36pKn-Extrabold,
YuMin_36pKn-Medium,
YuppySC-Regular,
YuppyTC-Regular,
ZapfDingbatsITC,
Zapfino
]

使用

以平方字体举例:

[NSFont fontWithName:@"PingFangSC-Thin" size:14];

[NSFont fontWithName:@"PingFangSC-Regular" size:14];

实际使用中可能有些问题,我们 UI 设计师使用 sketch 工具标注的字体是 PingFangSC-Semibold,如果我直接用的话实际效果是字体太粗了,我使用 PingFangSC-Regular 是接近她想要的效果的,目前并不清楚哪里有问题,导致了这里的不对应!


Mac 开发系统字体
https://debugly.cn/2019/03/27-macdev-supported-fonts.html
作者
许乾隆
发布于
2019年3月27日
许可协议