rossning92 / movy

movy.js is a client-side JS animation engine for creating explanatory videos.
https://rossning92.github.io/movy/
MIT License
1.31k stars 147 forks source link

Some symbols won't display correctly #8

Open IanXV opened 3 years ago

IanXV commented 3 years ago

I ran the hello-world according to the README on the OS X platform, but what the browsers displayed was movy.js is simple?, instead of movy.js is simple!.

After a few tries I found some common symbols like: !`_ and other symbols like: ∏π will be displayed as ?.

Both my editor(VS Code 1.52.1) and browsers (Chrome 88.0.4324.96 and Safari 14.0.2) are encoding=UTF-8.

sheng-di commented 3 years ago

Use fontto display ∏π and other symbols:

mo.addText('∏π', {
  font: 'math'
})

Currently, the following fonts are supported:

The font files are located at: \node_modules\_movy@0.0.5@movy\src\fonts

rossning92 commented 3 years ago

should be fixed by cab4e8c