Skip to content

ttf: Load from file pointer#171

Merged
AndreRenaud merged 2 commits intomasterfrom
ttf_file_pointer
Apr 19, 2026
Merged

ttf: Load from file pointer#171
AndreRenaud merged 2 commits intomasterfrom
ttf_file_pointer

Conversation

@AndreRenaud
Copy link
Copy Markdown
Owner

Resolves #170

@AndreRenaud AndreRenaud merged commit b94f21e into master Apr 19, 2026
3 checks passed
@AndreRenaud AndreRenaud deleted the ttf_file_pointer branch April 19, 2026 19:49
@ronaaron
Copy link
Copy Markdown

For a file-based TTF, it is necessary to get the name you've determined for the font, so that get_text_width will work.

Perhaps an additional parameter to the pdf_set_font_ttf_file(), a **char which is filled with the font name you've determined, would be possible.

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.

Permit adding a TTF font that is already loaded in-memory

2 participants