AppleScript名:ASOCでNSFontManagerのじっけん |
— Created 2015-08-27 by Takaaki Naganoya — 2015 Piyomaru Software use AppleScript version "2.4" use scripting additions use framework "Foundation" use framework "AppKit" set aFontMan to current application’s NSFontManager’s sharedFontManager()’s availableFontFamilies() –> (NSArray) {"01FLOPDESIGN", "A-OTF Shin Go Pr6N", "A-OTF Shin Go Pro", "Abadi MT Condensed Extra Bold", "Abadi MT Condensed Light", "AGENDAJinmeiGyoshotaiL1", "AGENDAJinmeiSeikaishotaiL1", "Akubin",….} set aFontMan to current application’s NSFontManager’s sharedFontManager()’s availableMembersOfFontFamily:"MS Mincho" –> (NSArray) {{"MS-Mincho", "Regular", 1, 0}} set aFontMan to current application’s NSFontManager’s sharedFontManager()’s availableMembersOfFontFamily:"Times" –> (NSArray) {{"Times-Roman", "Regular", 1, 0}, {"Times-Italic", "Italic", 1, 1}, {"Times-Bold", "Bold", 1, 2}, {"Times-BoldItalic", "Bold Italic", 1, 3}} set aFontMan to current application’s NSFontManager’s sharedFontManager()’s localizedNameForFamily:"Osaka" face:"Regular-Mono" –> (NSString) "レギュラー−等幅" |
More from my site
(Visited 54 times, 1 visits today)