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

Can not be generated PNG pictures through CLI with Chinese #451

Closed
lueliu opened this issue Jan 6, 2017 · 2 comments
Closed

Can not be generated PNG pictures through CLI with Chinese #451

lueliu opened this issue Jan 6, 2017 · 2 comments

Comments

@lueliu
Copy link

lueliu commented Jan 6, 2017

hello !
I use mermaid 6.0.0

Can not be generated PNG pictures through CLI with Chinese.

these is no any chinese in PNG pictures.

my mermaid file just like:

graph LR
%%车辆gps
redis-30[Redis<br>192.168.1.1<br>车辆gps] -- B

and then:

mermaid -p -o /tmp -w 6000 -e /opt/node-v4.4.7-linux-x64/bin/phantomjs gps.mmd

something wrong?

@lueliu lueliu changed the title Can not be generated PNG pictures through CLI with Chineses Can not be generated PNG pictures through CLI with Chinese Jan 6, 2017
@lueliu
Copy link
Author

lueliu commented Jan 9, 2017

I solved it. This is my mistake.
I've added new characters to the configuration file and installed in system.

copy new characters to : /usr/share/fonts/chinese/TrueType
# mkfontscale
# mkfontdir
# fc-cache  -fv

and add new characters to config file: ./node_modules/mermaid/dist/{mermaidAPI.js,mermaid.css}
just like: 
font-family: 'trebuchet ms', verdana, arial, '微软雅黑';

then I close this issue.

@lueliu lueliu closed this as completed Jan 9, 2017
@knsv
Copy link
Collaborator

knsv commented Jan 9, 2017

ok Thanks.

mgenereu pushed a commit to mgenereu/mermaid that referenced this issue Jun 25, 2022
Bumps [@sveltejs/adapter-static](https://github.com/sveltejs/kit/tree/HEAD/packages/adapter-static) from 1.0.0-next.20 to 1.0.0-next.21.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/master/packages/adapter-static/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/HEAD/packages/adapter-static)

---
updated-dependencies:
- dependency-name: "@sveltejs/adapter-static"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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

2 participants