Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

expose add font family method#2

Merged
polybioz merged 1 commit intopolybioz:masterpolybioz/HTML-Renderer-Core:masterfrom
Shayaomer:feature/expose-add-font-familyShayaomer/HTML-Renderer-Core:feature/expose-add-font-familyCopy head branch name to clipboard
Jan 5, 2025
Merged

expose add font family method#2
polybioz merged 1 commit intopolybioz:masterpolybioz/HTML-Renderer-Core:masterfrom
Shayaomer:feature/expose-add-font-familyShayaomer/HTML-Renderer-Core:feature/expose-add-font-familyCopy head branch name to clipboard

Conversation

@Shayaomer
Copy link

In order to add custom font that loaded locally in my project, it's essential to insert the font name into the exisiting fonts dictionary.
Thus I exposed the AddFontFamily method to the PdfGenerator class, in order to add my custom fonts to the _exisitingFont dicitonary and use those fonts instead of the default Segoe UI.

I havn't found another way to use custom fonts on non-windows machines.

In order to add custom font that loaded locally in the project, it's essential to insert the font name into the exisiting fonts dictionary.
thus I exposed the insert method to the PdfGenerator class
@Shayaomer
Copy link
Author

@polybioz Hey, mind approving this ?

@polybioz polybioz merged commit 12ac111 into polybioz:master Jan 5, 2025
@Shayaomer
Copy link
Author

Shayaomer commented Jan 5, 2025

@polybioz thanks for the quick approval, can you please republish this nuget with the changes so I can use it as nuget?

@polybioz
Copy link
Owner

polybioz commented Jan 6, 2025

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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.