のねの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)

mac pyenv miniconda

なんか、PythonのVersionがおかしい

miniCondaは3.7.4のはずなのに、3.7.7と別の値が表示される。

% pyenv global 3.7.2                                                                                                                             

% pyenv versions                                                                                                                                 [~/Pycharm]
  system
* 3.7.2 (set by /Users/m_fujii/.pyenv/version)
  3.7.7
  3.8.3
  miniconda3-4.7.12
  miniconda3-4.7.12/envs/conda_py37
% pyenv global miniconda3-4.7.12                                                                                                                 % conda activate                                                                                                                                 (base) %
% conda activate conda_py37                                                                                                                      (conda_py37)% python -V                                                                                                                                      Python 3.7.7
(conda_py37)% which python                                                                                                                                   /Users/.pyenv/versions/miniconda3-4.7.12/envs/conda_py37/bin/python
(conda_py37)% /Users/.pyenv/versions/miniconda3-4.7.12/envs/conda_py37/bin/python -V                                                                 Python 3.7.7

作ったときの環境が3.7.7なのかな?