のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

ttcからttfを取り出す

% ls                                                           msmincho.ttc
% otc2otf msmincho.ttc                                         % ls                                                           
MS-Mincho.ttf   MS-PMincho.ttf  msmincho.ttc
% otc2otf -h                                                   usage: otc2otf [-h] [--version] [-v] [-r] TTC FONT

Extract all OpenType fonts from the parent OpenType Collection font.

positional arguments:
  TTC FONT       path to TTC font

optional arguments:
  -h, --help     show this help message and exit
  --version      show program's version number and exit
  -v, --verbose  verbose mode
                 Use -vv for debug mode
  -r, --report   report the TTC's fonts and tables (no files are written)