$ brew tap sanemat/font
$ brew install ricty
# (generate)
$ cp -f /PATH/TO/RICTY/fonts/Ricty*.ttf ~/Library/Fonts/
$ fc-cache -vf
brew install fontforge Si vous obtenez une erreur pendant brew install fontforge , comme ci-dessous:
==> Patching
==> ./bootstrap
==> ./configure --prefix=/Users/sane/.homebrew/Cellar/fontforge/20141230 --disable-silent-rules --without-x --without-giflib --without-libspiro
installed software in a non-standard prefix.
Alternatively, you may set the environment variables PYTHON_CFLAGS
and PYTHON_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Exécutez ce qui suit:
# Install python before installing fontforge and ricty
brew install python
# Then install fontforge and ricty
brew install ricty
J'utilise bien sûr Homebrew, mais je n'utilise pas le Python de Homebrew. J'utilise pyenv via anyenv. Dans le script de construction homebrew, votre PKG_CONFIG_PATH n'est pas utilisé; Il y PKG_CONFIG_PATH de Homebrew. Vous pouvez essayer ce brew sh et printenv | grep PKG_CONFIG_PATH .
Le script de configuration de FontForge ne détecte pas Python de Pyenv (je pense, mais je ne suis pas encore famliar avec AutoConf, désolé). Je ne comprends pas pourquoi cela ne détecte pas le système Python (après avoir exécuté pyenv global system ).
Ce qui suit est la sortie de débogage de brew install fontforge --verbose --debug :
detected a homebrew build environment
./configure: line 18044: /Users/sane/.homebrew/bin/python: No such file or directory
./configure: line 18045: cd: /../../pkgconfig: No such file or directory
found python pkg_config information:
./configure: line 18048: y: command not found
checking for a Python interpreter with version >= 2.7... python
checking for python... /Users/sane/.anyenv/envs/pyenv/versions/2.7.6/bin/python
checking for python version... 2.7
checking for python platform... darwin
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
checking for PYTHON... no
configure: error: Package requirements (python-"2.7") were not met:
No package 'python-2.7' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables PYTHON_CFLAGS
and PYTHON_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
La solution réelle consiste à détecter le système Python ici, mais je ne sais pas encore comment détecter cela.