comicgen icon indicating copy to clipboard operation
comicgen copied to clipboard

Speechbubble - Google Fonts not rendering in PNG

Open sanand0 opened this issue 3 years ago • 0 comments

For example, https://gramener.com/comicgen/v1/comic?name=speechbubble&text=Comic+speech+bubble+text&width=100&height=100&align=center&font-family=Architects+Daughter&font-size=15&font-weight=normal&pointerx=130&pointery=50&padding=5&fill=%23ffffff&line-height=1&x=0&y=0&scale=1&rough=2.5&box=&boxcolor=%23000000&boxgap=&mirror=&ext=png renders as:

image

This is likely related to

  • Sharp does not support embedded fonts: https://github.com/lovell/sharp/issues/1722
  • ... because LibRSVG doesn't support embedded fonts: https://gitlab.gnome.org/GNOME/librsvg/-/issues/153

sanand0 avatar Aug 30 '22 23:08 sanand0