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

a problem with support for multibyte characters #1900

Closed
nzk1912 opened this issue Feb 21, 2021 · 2 comments
Closed

a problem with support for multibyte characters #1900

nzk1912 opened this issue Feb 21, 2021 · 2 comments
Labels
Graph: Flow Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@nzk1912
Copy link

nzk1912 commented Feb 21, 2021

export to svg file
eg. chinese.
One Chinese character width = 2 English letters width
When calculating the width of foreignObject, did not consider
so, can't upport for multibyte characters.

==========demo=====

graph LR
    A --> B;
    A --程序员--> D;
    A --> C;
    B --> D;
    C --> D;
    E --> D;

export to svg file:
image
18 is error
image
Manually modified to 52, display normal
At the same time, the position of the connecting line also needs to be adjusted

@nzk1912 nzk1912 added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Feb 21, 2021
@nzk1912
Copy link
Author

nzk1912 commented Feb 21, 2021

or ... can i config one char width of foreignObject?

@sidharthv96
Copy link
Member

sidharthv96 commented Jul 25, 2023

Appears to be solved in 10.2.4 (Not sure which version the actual fix was in).

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Graph: Flow Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

3 participants