Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some symbols won't display correctly #8

Open
IanXV opened this issue Feb 1, 2021 · 2 comments
Open

Some symbols won't display correctly #8

IanXV opened this issue Feb 1, 2021 · 2 comments

Comments

@IanXV
Copy link

IanXV commented Feb 1, 2021

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
Copy link

sheng-di commented Feb 13, 2021

Use fontto display ∏π and other symbols:

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

Currently, the following fonts are supported:

  • zh
  • en
  • math
  • code
  • gdh
    Corresponding to:
  • source-han-medium
  • muli-bold
  • latin-modern-math-regular
  • source-code-pro-regular
  • gdh-regular

The font files are located at:
\node_modules\[email protected]@movy\src\fonts

@rossning92
Copy link
Owner

should be fixed by cab4e8c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants