Closed rvilarl closed 1 year ago
Hi @rvilarl !
See my recent PR work in progress. I should have it ready for review soon.
The vexflow-fonts URLs that you have above are the old way (VexFlow 4.x).
We have moved all the fonts to individual NPM projects under a @vexflow-fonts
namespace. The font names no longer have version numbers in them.
Tagging @jaredjj3 so he's aware that this has already been implemented (via this vexflow-fonts
repo that you're looking at right now). The font files under the vexflow
repo will eventually be removed.
You can already use all the new URLs. For example:
https://cdn.jsdelivr.net/npm/@vexflow-fonts/finalejazz/finalejazz.woff2
See the vexflow/tests/fonts.css
for examples. This file is used by the flow.html
test page.
fonts.css uses the local fonts installed by npm install
:
../node_modules/@vexflow-fonts/finalejazz/finalejazz.woff2
Replace ../node_modules/
with https://cdn.jsdelivr.net/npm/
to get the new URL for the font file.
You can see what files are in each font project with URLs like: https://cdn.jsdelivr.net/npm/@vexflow-fonts/finalejazz/ https://cdn.jsdelivr.net/npm/@vexflow-fonts/bravura/ https://cdn.jsdelivr.net/npm/@vexflow-fonts/petaluma/
If you look at the files inside this repo: https://github.com/vexflow/vexflow-fonts
You'll see that the file names do not have version numbers. Each folder is a separate NPM project, and the README.md contains the version and source URL information.
Eventually.... we will be able to remove the vexflow/tools/fonts/@/ folder that we introduced in VexFlow 4. This separate repo is the new V5 approach.
Thanks @ronyeh! I was thinking about starting a vexflow-examples repo with html pages showing how to use vexflow. I would start with the tutorial steps and then add other ones. This would replace the need touse jsfiddle.
@ronyeh now we have to load the fonts like
it would be better to have the possibility that @jaredjj3 suggested