rlespinasse / docker-drawio-desktop-headless

Headless version of drawio-desktop
https://hub.docker.com/r/rlespinasse/drawio-desktop-headless
MIT License
39 stars 5 forks source link

Add fonts-liberation dependency #35

Closed juananpe closed 1 year ago

juananpe commented 1 year ago

I tried the docker-drawio-desktop-headless as a GitHub action (using https://github.com/rlespinasse/drawio-export-action) and it worked like a charm. However, the current docker-drawio-desktop-headless uses system fonts and these fonts are very limited in docker instances. I understand why this is the case - limiting storage usage - but could you please add the fonts-liberation package here https://github.com/rlespinasse/docker-drawio-desktop-headless/blob/v1.x/Dockerfile#L7?

The problem is that the default font (Helvetica-12pt) in drawio is not available by default in the docker image, and thus, the resulting PNG images look ugly (with some strings drawn out of the boxes)

Example:

This is what I get after running drawio-export-action: (look at the "Berkeley" node on the right side of the picture)image

This is what I would expect: image

Thanks for your work and help

rlespinasse commented 1 year ago

:tada: This issue has been resolved in version 1.9.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

rlespinasse commented 1 year ago

The additional fonts are available on