AppleScript名:指定のフォントのグリフ数をカウント |
— Created 2016-02-01 by Takaaki Naganoya — 2016 Piyomaru Software use AppleScript version "2.4" use scripting additions use framework "Foundation" use framework "AppKit" set aFontName to "YuMin_36pKn-Medium" set aRes to countNumberOfGlyphsInFont(aFontName) of me –指定Postscript名称のフォントに定義されている文字数を数えて返す on countNumberOfGlyphsInFont(fontName) set aFont to current application’s NSFont’s fontWithName:fontName |size|:9.0 if aFont = missing value then return false set aProp to aFont’s numberOfGlyphs() return aProp end countNumberOfGlyphsInFont |
More from my site
(Visited 72 times, 1 visits today)