question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

textLength error in plantuml

See original GitHub issue

POST : https://kroki.io/plantuml/svg

JSON:

{
  "diagram_source": "@startmindmap\n * 为啥重合\n @endmindmap",
  "diagram_type": "plantuml",
  "output_format": "svg"
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Mogzttercommented, Feb 7, 2021

The root cause is that the Docker image (based on Alpine) does not include a (sans-serif) Chinese font. I found this package (available only in the edge channel): https://pkgs.alpinelinux.org/package/edge/testing/x86_64/wqy-zenhei It can be installed using:

apk add wqy-zenhei --update-cache --repository https://dl-cdn.alpinelinux.org/alpine/edge/testing/

Once this package is installed, the textLength is correct.

0reactions
Mogzttercommented, Feb 7, 2021

Thanks for clarifying! kroki.io is not using the same version as www.plantuml.com (i.e., we are using v1.2021.0 whereas www.plantuml.com is using v1.2021.2beta2) but it does not seem to explain why the textLength is incorrect.

I will investigate 🔍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Syntax Error inside map, but works on the online webservice
I'm trying to use plantuml inside java ...
Read more >
Recent questions and answers in Bug - PlantUML Q&A
Recent questions and answers in Bug. 0 votes. 0 answers. Entity relationship link is not displayed correctly when creole tree view syntax is...
Read more >
Text Encoding format - PlantUML
An special encoding format that contains only characters valid in URL has been defined. Using this format, it's possible to fully encode a...
Read more >
Frequently Asked Questions - PlantUML
PlantUML is used to draw UML diagrams, using a simple and human readable text ... You can have a look on this page...
Read more >
Sequence Diagram syntax and features - PlantUML
PlantUML sequence diagram syntax: You can have several kinds of participants (actors and others), arrows, notes, groups... Changing fonts and colors is also ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found