{"id":318,"date":"2019-08-01T03:35:45","date_gmt":"2019-07-31T18:35:45","guid":{"rendered":"https:\/\/blog.hgrs.me\/?p=318"},"modified":"2019-08-01T03:35:45","modified_gmt":"2019-07-31T18:35:45","slug":"%e3%82%a8%e3%83%b3%e3%82%b8%e3%83%8b%e3%82%a2%e5%90%91%e3%81%91%e3%83%95%e3%82%a9%e3%83%b3%e3%83%88%e3%81%ae%e4%b8%ad%e8%ba%ab%e3%81%ae%e8%a6%8b%e6%96%b9","status":"publish","type":"post","link":"https:\/\/blog.hgrs.me\/archives\/318.html","title":{"rendered":"\u30a8\u30f3\u30b8\u30cb\u30a2\u5411\u3051\u30d5\u30a9\u30f3\u30c8\u306e\u4e2d\u8eab\u306e\u898b\u65b9"},"content":{"rendered":"

\u306f\u3058\u3081\u306b<\/h2>\n

\u30d5\u30a9\u30f3\u30c8\u304c\u597d\u304d\u3067\u3042\u308c\u3070\u3001\u30d5\u30a9\u30f3\u30c8\u306e\u4e2d\u8eab\u3082\u6c17\u306b\u306a\u308a\u307e\u3059\u3088\u306d\u3002\u4eca\u56de\u306f\u30d5\u30a9\u30f3\u30c8\u306e\u4e2d\u8eab\u3092\u898b\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u4e3b\u306b\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u5411\u3051\u3066\u3002<\/p>\n

OpenType\u3068TrueType<\/h2>\n

\u3088\u304f\u898b\u308b\u30d5\u30a9\u30f3\u30c8\u5f62\u5f0f\u3067\u3059\u306d\u3002\u3067\u3082\u3053\u308c\u3089\u306f\u30d0\u30a4\u30ca\u30ea\u306a\u306e\u3067\u4eba\u306b\u306f\u8aad\u3081\u307e\u305b\u3093\u3002\u305d\u306e\u305f\u3081\u4eba\u304c\u8aad\u3081\u308b\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n

\u3053\u3053\u3067\u306fTTX\u3068UFO\u306e2\u5f62\u5f0f\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n

TTX<\/a><\/h2>\n

\u6982\u8981<\/h3>\n

TTX\u306f\u30d5\u30a9\u30f3\u30c8\u3092\u6271\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3042\u308bfontTools\u306b\u542b\u307e\u308c\u308b\u3001OpenType\u3068TrueType\u306b\u4e92\u63db\u306e\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u5f62\u5f0f\u517c\u30c4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n

TTX\u306fXML\u5f62\u5f0f\u3067\u66f8\u304b\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u4eba\u3067\u3082\u8aad\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n

\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n

TTX\u306ffontTools\u306e\u4e00\u90e8\u306a\u306e\u3067\u3001fontTools\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n

fontTools\u306fPython\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u305f\u3081pip<\/code>\u7d4c\u7531\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u884c\u3048\u307e\u3059\uff08Python\u3001pip\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u306a\u3044\u4eba\u306f\u5148\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\uff09\u3002\u30b3\u30de\u30f3\u30c9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002<\/p>\n

pip install fonttools<\/code><\/pre>\n

\u4f7f\u3044\u65b9<\/h3>\n

\u30d5\u30a9\u30f3\u30c8\u30d5\u30a1\u30a4\u30eb\uff08OpenType\u3068TrueType\uff09\u304b\u3089TTX\u3078\u5909\u63db\u3092\u884c\u3046\u306b\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\uff08\u25cb\u25cb\u25cb.otf\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u306e\u4f8b\uff09\u3002<\/p>\n

ttx \u25cb\u25cb\u25cb.otf<\/code><\/pre>\n

\u5b9f\u884c\u304c\u5b8c\u4e86\uff08\u5c11\u3057\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\uff09\u3059\u308b\u3068\u3001\u25cb\u25cb\u25cb.ttx<\/code>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3092\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u7b49\u3067\u958b\u304f\u3068\u81a8\u5927\u306a\u91cf\u306eXML\u304c\u51fa\u3066\u304d\u307e\u3059\u3002<\/p>\n

\u3053\u3053\u306b\u306f\u30d5\u30a9\u30f3\u30c8\u30c6\u30fc\u30d6\u30eb\u304c\u305d\u308c\u305e\u308c\u4eba\u304c\u8aad\u3081\u308b\u5f62\u5f0f\u3067\u66f8\u304b\u308c\u3066\u304a\u308a\u3001\u7de8\u96c6\u3082\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3042\u307e\u308a\u306b\u3082\u9577\u3044\u306e\u3067\u3001\u3082\u3046\u5c11\u3057\u898b\u3084\u3059\u3044\u30c6\u30fc\u30d6\u30eb\u3054\u3068\u306e\u66f8\u304d\u51fa\u3057\u3092\u884c\u3044\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n

ttx -s \u25cb\u25cb\u25cb.otf<\/code><\/pre>\n

\u3053\u308c\u3067\u30c6\u30fc\u30d6\u30eb\u3054\u3068\u306bTTX\u30d5\u30a1\u30a4\u30eb\u304c\u66f8\u304d\u51fa\u3055\u308c\u3001\u305d\u308c\u305e\u308c\u304c\u3088\u308a\u898b\u3084\u3059\u304f\u306a\u308a\u307e\u3057\u305f\u3002\u305d\u306e\u4ed6\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u306fttx -h<\/code>\u3067\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u78ba\u8a8d\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n

\u307e\u305fTTX\u304b\u3089OpenType\u3068TrueType\u3078\u623b\u3059\u3053\u3068\u3082\u3067\u304d\u3001\u3053\u3061\u3089\u306f\u5358\u7d14\u306b\u540c\u3058\u30b3\u30de\u30f3\u30c9\u3067<\/p>\n

ttx \u25cb\u25cb\u25cb.ttx<\/code><\/pre>\n

\u3068\u3059\u308b\u3053\u3068\u3067\u623b\u305b\u307e\u3059\u3002<\/p>\n

UFO<\/a><\/h2>\n

\u6982\u8981<\/h3>\n

Unified Font Object\u3067\u3059\u3002\u672a\u78ba\u8a8d\u98db\u884c\u7269\u4f53\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u307e\u3060\u8db3\u308a\u306a\u3044\u6a5f\u80fd\u306a\u3069\u3082\u591a\u3044\u3067\u3059\u304c\u3001\u500b\u4eba\u7684\u306b\u306f\u3053\u306e\u5f62\u5f0f\u306e\u65b9\u304c\u4eba\u304c\u8aad\u3080\u306e\u306b\u5411\u3044\u3066\u308b\u6c17\u304c\u3057\u307e\u3059\u3002<\/p>\n

UFO\u306f\u30d5\u30a9\u30eb\u30c0\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u5404\u30b0\u30ea\u30d5\u304c\u500b\u5225\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3055\u308c\u305f\u308a\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u30011\u6587\u5b571\u6587\u5b57\u3092\u3058\u3063\u304f\u308a\u307f\u305f\u3044\u6642\u306b\u306f\u8aad\u307f\u3084\u3059\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n

\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n

\u3053\u3061\u3089\u306fTTX\u306e\u3088\u3046\u306b\u4fbf\u5229\u306b\u307e\u3068\u307e\u3063\u305f\u30c4\u30fc\u30eb\u7fa4\u304c\u3042\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u306e\u3067\u4e3b\u306bRoboTools\u306e\u30e9\u30a4\u30d6\u30e9\u30ea<\/a>\u3084Google\u306eufo2ft<\/a>\u4f7f\u7528\u3057\u3066\u3044\u304f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n

\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002\u305d\u308c\u305e\u308cpip<\/code>\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n

\u3061\u306a\u307f\u306bGlyphs\u306e\u66f8\u304d\u51fa\u3057\u5f62\u5f0f\u3068\u3057\u3066\u3082UFO\u3092\u9078\u629e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n

\u304a\u308f\u308a\u306b<\/h2>\n

\u30d5\u30a9\u30f3\u30c8\u306e\u898b\u305f\u76ee\u3067\u306f\u306a\u304f\u3001\u4e2d\u8eab\u304c\u6c17\u306b\u306a\u3063\u305f\u65b9\u306f\u662f\u975e\u3001\u3058\u3063\u304f\u308a\u3068\u4e2d\u307e\u3067\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u306f\u3058\u3081\u306b \u30d5\u30a9\u30f3\u30c8\u304c\u597d\u304d\u3067\u3042\u308c\u3070\u3001\u30d5\u30a9\u30f3\u30c8\u306e\u4e2d\u8eab\u3082\u6c17\u306b\u306a\u308a\u307e\u3059\u3088\u306d\u3002\u4eca\u56de\u306f\u30d5\u30a9\u30f3\u30c8\u306e\u4e2d\u8eab\u3092\u898b\u308b\u65b9\u6cd5\u3092…<\/p>\n","protected":false},"author":1,"featured_media":319,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[21],"_links":{"self":[{"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/posts\/318"}],"collection":[{"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/comments?post=318"}],"version-history":[{"count":0,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/posts\/318\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/media\/319"}],"wp:attachment":[{"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/media?parent=318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/categories?post=318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/tags?post=318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}