Skip to content
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

Install ttf-freefont in alpine image #170

Merged
merged 1 commit into from
Jun 10, 2020
Merged

Install ttf-freefont in alpine image #170

merged 1 commit into from
Jun 10, 2020

Conversation

yong-jie
Copy link
Member

Problem

Rendering of fonts for SVG and PNG is not working when we switched to an alpine base image.

Solution

The alpine documentation on fonts gives a good list of fonts that we can install to achieve what we need, I'm using GNU FreeFont, with the main reason being that it was what worked with formsg so we've at least tested that it solves font-rendering problems there.

Screenshot

image

Copy link
Contributor

@LoneRifle LoneRifle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one-liner, lgtm. Just for clarity, GNU FreeFont is licensed with GPLv3 with Font Exception, which allows us to freely use this font without impinging on our current license terms

@yong-jie yong-jie merged commit d8c6ce4 into develop Jun 10, 2020
@yong-jie yong-jie deleted the alpine-font branch June 10, 2020 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants