-
Notifications
You must be signed in to change notification settings - Fork 7
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
Problem of SVG image's textLength #27
Comments
Is this a PlantUML issue? or a plantuml-server issue? |
It's right when I test with PlantUML. Java Version: 1.8.0_152 Perhaps this issue is related to the java version. |
Thanks for the information. Can you give us the PlantUML code? |
PlantUML test code: FileFormatOption formatOption = new FileFormatOption(FileFormat.SVG, true);
SourceStringReader renderer = new SourceStringReader(Defines.createEmpty(), "@startuml\n"
+ "class Hello\n"
+ "class 中文\n"
+ "Hello --> 中文\n"
+ "@enduml", new ArrayList<String>());
ByteArrayOutputStream out = new ByteArrayOutputStream();
renderer.outputImage(out, formatOption);
System.out.println(out.toString("UTF-8")); |
I deploy the plantuml-service locally for testing. |
reproduces this problem. |
Upgrading JDK (#29) does not solve this issue. I guess it might be caused by fonts. |
Maybe you are right. |
Install Hmm, maybe Chinese fonts are required? |
Hmm, I agree with you. |
When I use Chinese characters, the SVG image's textLength is smaller then expected.
actual
source code:
expected
source code:
The text was updated successfully, but these errors were encountered: