本文介绍了我如何获得可用NSFont系列的列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何获得可用的NSFont族的列表,最好是与fontName:等价的。
NSLog(@%@,[[[NSFontManager sharedFontManager] availableFontFamilies] description]);
给出:
Abadi MT Condensed Extra Bold,
Abadi MT Condensed Light,
Academy Engraved LET,
Al Bayan,
美国打字机,
Andale Mono,
Arial,
Arial Black,
Arial希伯来语,
Arial Narrow,
Arial圆形MT粗体,
Arial Unicode MS,
Ayuthaya,
巴格达,
银行哥特式,
巴斯克维尔,
巴斯克维尔老面孔b
包豪斯93,
贝尔MT,
伯纳德MT精炼,
BiauKai,
Big Caslon ,
Birch Std,
Blackmoor LET,
Blackoak Std,
BlairMdITC TT,
Bodoni饰品ITC TT,
Bodoni SvtyTwo ITC TT,
Bodoni SvtyTwo OS ITC TT,
Bodoni SvtyTwo SC ITC TT,
Book Antiqua,
Bookman Old Style ,
Bookshelf Symbol 7,
Bordeaux Roman Bold LET,
Bradley Hand ITC TT,
Braggadocio,
Britannic Bold,
画笔脚本MT,
画笔脚本标准,
Calibri,
Calisto MT,
Cambria,
Candara,
资本,
休闲,
世纪,
世纪哥特式,b $ bCentury Schoolbook,
黑板,
Chalkduster,
Chaparral Pro,
Charcoal CY,
Charlemagne Std,
Cochin,
Colonna MT,
Comic Sans MS,
Consolas,
Constantia,
Cooper Black,
Cooper Std,
铜板,
铜板哥特粗体,
铜板哥特式灯,
牛仔,
Corsiva希伯来,
快递,
快递新,
破解,
Curlz MT,
DecoType Naskh,
Desdemona,
天花板MT,
Didot,
Edwardian Script ITC,
Engravers MT,
Euphemia UCAS,
Eurostile,
Footlight MT Light,
富兰克林哥特式书,
富兰克林哥特式中等,
Futura,
Garamond,
GB18030位图,
Geeza Pro,
日内瓦,
日内瓦CY,
格鲁吉亚,
Giddyup Std,
Gill Sans,
Gill Sans MT,
Gill Sans U
Gloucester MT Extra Condensed,
Goudy Old Style,
Gujarati MT,
Gulim,
GungSeo,
Gurmukhi MT,
Haettenschweiler,
手写 - Dakota,
Harrington,
HeadLineA,
Hei,
海地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,
Hobo Std,
Hoefler Text ,
影响,
Imprint MT Shadow,
InaiMathi,
Jazz LET,
Kai,
Kailasa,
Kino MT,
Kokonor,
Kozuka Gothic Pr6N,
Kozuka Gothic Pro,
Kozuka Mincho Pr6N,
Kozuka Mincho Pro,
Krungthep,
KufiStandardGK,
Letter Gothic Std,
LiHei Pro,
LiSong Pro,
Lithos Pro,
Lucida Blackletter,
Lucida Bright,
Lucida书法,
Lucida控制台,
Lucida传真,
Lucida Grande,
Lucida手写,
Lucida Sans,
Lucida Sans打字机,
Lucida Sans Unicode
Marker Felt,
Marlett,
Matura MT Script Capitals,
Meiryo,
Menlo,
Mesquite Std,
微软Sans Serif,
Minion Pro,
Mistral,
现代20号,
Mona Lisa Solid ITC TT,
摩纳哥,
MS Gothic,
MS Mincho,
MS PGothic,
MS PMincho,
MS Reference Sans Serif,
MS Reference Speciality,
Mshtakan,
MT Extra,
Myriad Pro,
Nadeem,
新Peninim MT,
News Gothic MT,
Nueva Std,
OCR A Std,
Onyx,
Optima,
Orator Std,
大阪,
Palatino,
纸莎草纸,
LET,
PCMyungjo,
Perpetua,
Perpetua标题MT,
PilGi,
金雀花切诺基,
玩
白杨标准,
PortagoITC TT,
Prestige Elite Std,
Princetown LET,
Raanana ,
Rockwell,
Rockwell Extra Bold,
Rosewood Std,
Santa Fe LET,
Sathu,
Savoye LET ,
SchoolHouse Cursive B,
SchoolHouse印刷的A,
Silom,
SimSun,
Skia,
Snell Roundhand,
模板,
Stencil Std,
STFangsong,
STHeiti,
STKaiti,
Stone Sans ITC TT,
Stone Sans Sem ITC TT,
STSong,
符号,
同步LET,
Tahoma,
Tekton Pro,
Thonburi,
时间,
Times New Roman,
Trajan Pro,
Trebuchet MS,
Tw Cen MT,
Type Embellishments One LET ,
Verdana,
Webdings,
Wide Latin,
Wingdings,
Wingdings 2,
Wingdings 3,
Zapf Dingbats,
Zapfino,
Adobe阿拉伯语,
Adobe Caslon Pro,
Adobe Fan Heiti Std,
Adobe Fangsong Std ,
Adobe Garamond Pro,
Adobe哥特式标准,
Adobe希伯来语,
Adobe Heiti标准,
Adobe Kaiti标准,
Adobe明星标准,
Adobe Myungjo Std,
Adobe Song Std,
Apple Braille,
Apple Chancery,
Apple Garamond BT,
Apple LiGothic,
Apple LiSung,
Apple Symbols,
AppleGothic,
AppleMyungjo,
Monotype Corsiva,
Monotype Sorts
in 10.6.4
How can I get a list of the available NSFont families, preferably with the fontName: equivalents.
解决方案
NSLog(@"%@",[[[NSFontManager sharedFontManager] availableFontFamilies] description]);
Gives:
"Abadi MT Condensed Extra Bold",
"Abadi MT Condensed Light",
"Academy Engraved LET",
"Al Bayan",
"American Typewriter",
"Andale Mono",
Arial,
"Arial Black",
"Arial Hebrew",
"Arial Narrow",
"Arial Rounded MT Bold",
"Arial Unicode MS",
Ayuthaya,
Baghdad,
"Bank Gothic",
Baskerville,
"Baskerville Old Face",
Batang,
"Bauhaus 93",
"Bell MT",
"Bernard MT Condensed",
BiauKai,
"Big Caslon",
"Birch Std",
"Blackmoor LET",
"Blackoak Std",
"BlairMdITC TT",
"Bodoni Ornaments ITC TT",
"Bodoni SvtyTwo ITC TT",
"Bodoni SvtyTwo OS ITC TT",
"Bodoni SvtyTwo SC ITC TT",
"Book Antiqua",
"Bookman Old Style",
"Bookshelf Symbol 7",
"Bordeaux Roman Bold LET",
"Bradley Hand ITC TT",
Braggadocio,
"Britannic Bold",
"Brush Script MT",
"Brush Script Std",
Calibri,
"Calisto MT",
Cambria,
Candara,
Capitals,
Casual,
Century,
"Century Gothic",
"Century Schoolbook",
Chalkboard,
Chalkduster,
"Chaparral Pro",
"Charcoal CY",
"Charlemagne Std",
Cochin,
"Colonna MT",
"Comic Sans MS",
Consolas,
Constantia,
"Cooper Black",
"Cooper Std",
Copperplate,
"Copperplate Gothic Bold",
"Copperplate Gothic Light",
Corbel,
"Corsiva Hebrew",
Courier,
"Courier New",
Cracked,
"Curlz MT",
"DecoType Naskh",
Desdemona,
"Devanagari MT",
Didot,
"Edwardian Script ITC",
"Engravers MT",
"Euphemia UCAS",
Eurostile,
"Footlight MT Light",
"Franklin Gothic Book",
"Franklin Gothic Medium",
Futura,
Garamond,
"GB18030 Bitmap",
"Geeza Pro",
Geneva,
"Geneva CY",
Georgia,
"Giddyup Std",
"Gill Sans",
"Gill Sans MT",
"Gill Sans Ultra Bold",
"Gloucester MT Extra Condensed",
"Goudy Old Style",
"Gujarati MT",
Gulim,
GungSeo,
"Gurmukhi MT",
Haettenschweiler,
"Handwriting - Dakota",
Harrington,
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",
"Hobo Std",
"Hoefler Text",
Impact,
"Imprint MT Shadow",
InaiMathi,
"Jazz LET",
Kai,
Kailasa,
"Kino MT",
Kokonor,
"Kozuka Gothic Pr6N",
"Kozuka Gothic Pro",
"Kozuka Mincho Pr6N",
"Kozuka Mincho Pro",
Krungthep,
KufiStandardGK,
"Letter Gothic Std",
"LiHei Pro",
"LiSong Pro",
"Lithos Pro",
"Lucida Blackletter",
"Lucida Bright",
"Lucida Calligraphy",
"Lucida Console",
"Lucida Fax",
"Lucida Grande",
"Lucida Handwriting",
"Lucida Sans",
"Lucida Sans Typewriter",
"Lucida Sans Unicode",
"Marker Felt",
Marlett,
"Matura MT Script Capitals",
Meiryo,
Menlo,
"Mesquite Std",
"Microsoft Sans Serif",
"Minion Pro",
Mistral,
"Modern No. 20",
"Mona Lisa Solid ITC TT",
Monaco,
"MS Gothic",
"MS Mincho",
"MS PGothic",
"MS PMincho",
"MS Reference Sans Serif",
"MS Reference Specialty",
Mshtakan,
"MT Extra",
"Myriad Pro",
Nadeem,
"New Peninim MT",
"News Gothic MT",
"Nueva Std",
"OCR A Std",
Onyx,
Optima,
"Orator Std",
Osaka,
Palatino,
Papyrus,
"Party LET",
PCMyungjo,
Perpetua,
"Perpetua Titling MT",
PilGi,
"Plantagenet Cherokee",
Playbill,
PMingLiU,
"Poplar Std",
"PortagoITC TT",
"Prestige Elite Std",
"Princetown LET",
Raanana,
Rockwell,
"Rockwell Extra Bold",
"Rosewood Std",
"Santa Fe LET",
Sathu,
"Savoye LET",
"SchoolHouse Cursive B",
"SchoolHouse Printed A",
Silom,
SimSun,
Skia,
"Snell Roundhand",
Stencil,
"Stencil Std",
STFangsong,
STHeiti,
STKaiti,
"Stone Sans ITC TT",
"Stone Sans Sem ITC TT",
STSong,
Symbol,
"Synchro LET",
Tahoma,
"Tekton Pro",
Thonburi,
Times,
"Times New Roman",
"Trajan Pro",
"Trebuchet MS",
"Tw Cen MT",
"Type Embellishments One LET",
Verdana,
Webdings,
"Wide Latin",
Wingdings,
"Wingdings 2",
"Wingdings 3",
"Zapf Dingbats",
Zapfino,
"Adobe Arabic",
"Adobe Caslon Pro",
"Adobe Fan Heiti Std",
"Adobe Fangsong Std",
"Adobe Garamond Pro",
"Adobe Gothic Std",
"Adobe Hebrew",
"Adobe Heiti Std",
"Adobe Kaiti Std",
"Adobe Ming Std",
"Adobe Myungjo Std",
"Adobe Song Std",
"Apple Braille",
"Apple Chancery",
"Apple Garamond BT",
"Apple LiGothic",
"Apple LiSung",
"Apple Symbols",
AppleGothic,
AppleMyungjo,
"Monotype Corsiva",
"Monotype Sorts"
in 10.6.4
这篇关于我如何获得可用NSFont系列的列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!