© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago
TheBrambleShark

QuestPDF + FontAwesome

Dropping this here in case anyone has any ideas.

Original post: https://github.com/QuestPDF/QuestPDF/discussions/321

Basically, when I try to use FontAwesome glyphs with QuestPDF, I get unexpected characters. I force FontAwesome to work by using the Skia canvas renderer and manually drawing the glyph's SVG, but this is less than ideal because I have to use
Unconstrained()
Unconstrained()
to silence the overflow warning and I have to scale and position the glyph manually.

The fonts are in fact installed and I can use them (e.g. in Word), but it's behaving like the font family is not being applied to the text. Any thoughts on what I might be missing and/or doing weird that's causing this behavior?

Below is a sample I have set up. Don't mind the color differences.
Column 1 draws the glyph with the canvas renderer.
Column 2 uses a text element with the unicode of the same icon with its font family set to Font Awesome 6 Pro
Column 3 is a text element with the letter M.
unknown.png
GitHub
QuestPDF with FontAwesome · Discussion #321 · QuestPDF/QuestPDF
Hi all, I'm trying to get QuestPDF to work with FontAwesome. I am running on Windows 10 Enterprise and targeting .NET 6. I have installed the FontAwesome OTF files and confirmed that they w...
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

QuestPDF measuring text
C#CC# / help
14mo ago
QuestPDF round border
C#CC# / help
4y ago
❔ FontAwesome in .net maui icons bugged
C#CC# / help
3y ago
❔ WPF Image not loading From FontAwesome
C#CC# / help
3y ago