Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Fix loading of custom fonts #70

Merged
merged 3 commits into from
Mar 20, 2023

Conversation

janopae
Copy link

@janopae janopae commented Mar 19, 2023

This is the first half of resolving #9. This PR fixes the parsing and validating of .ttf files, and therefore enables you to load a font file and set it as a font for your screenplay. Rendering PDFs with the font however still doesn't work, as the binary blob of the file still won't properly be included into the PDF file. However, I don't consider that last part worth fixing, as it will be automatically resolved by #59.

Load fonts in binary mode, because font files aren't encoded strings.

Fix parseFunc tables encoding
by fixing parseFunc tables encoding
@limburgher
Copy link
Owner

Thank you!

@limburgher limburgher merged commit 6db5934 into limburgher:main Mar 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants