gramener / gramener/comicgen

Speechbubble - Google Fonts not rendering in PNG

Open
#119 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
618
Forks
98
PR merge metrics
No merged PRs in 30d

Description

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](https://user-images.githubusercontent.com/63734/187562489-3277543b-b5db-4cd3-8c98-1aca1a9091ad.png)

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.