Skip to content

Files

Latest commit

53bde0a · Oct 6, 2024

History

History
This branch is 1 commit ahead of rism-digital/verovio:develop-annote.

fonts

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 24, 2024
Oct 6, 2024
Sep 27, 2024
Sep 20, 2022
Sep 20, 2022
Sep 21, 2022
Feb 15, 2023
Sep 24, 2024
Sep 29, 2022
Sep 24, 2024
Jun 13, 2022
Sep 24, 2024
Apr 22, 2024
Sep 27, 2024

Fonts

All fonts included in Verovio are licensed under the SIL Open Font License.

Generate Script

The generate.py script is a utility for working with font files and preparing them for Verovio. Calling it with the --help argument will list the possible sub-commands and options for working with the font files.

To extract the fonts, the svgpathtools module is required to exist in your Python environment.

To generate the css, woff2, and svg fonts you should have fontforge installed. The script will try to auto-detect the path to fontforge, but you can also pass a path to the binary directly with the --fontforge argument.

If you are having problems, you can pass the --debug parameter, which will increase the verbosity of the script.

Using poetry

Included are the necessary files to install a Python poetry-managed virtual environment. If you do not wish to use these you may ignore them. You should make sure you have Poetry installed and then run poetry install from this directory. poetry shell will then allow you to interact with the script using the virtual environment.

Installing svgpathtools

You may run into problems installing numpy and/or scipy when installing svgpathtools on a Mac using Homebrew, where it will complain of not being able to find LAPACK/BLAS.

To fix this try:

 brew install openblas lapack

 export LDFLAGS="-L/opt/homebrew/opt/lapack/lib"
 export LDFLAGS="-L/opt/homebrew/opt/lapack/include"
 export CPPFLAGS="-L/opt/homebrew/opt/lapack/include"
 export PKG_CONFIG_PATH="-L/opt/homebrew/opt/lapack/pkgconfig"
 export CFLAGS=-Wno-error=implicit-function-declaration
 export LAPACK=/opt/homebrew/opt/lapack/lib/liblapack.dylib
 export BLAS=/opt/homebrew/opt/openblas/lib/libopenblas.dylib

After that, re-run poetry install and it should work.

Contributing

Contributions are welcome. Please ensure you run the mypy and black utilities on any Python code submitted.