Using FontAwesome with FastReport.net
Has anyone used FontAwesome with FastReports.Net?
ie. Use the FontAwesome Font ie. var test = new Font("FontAwesome", 10, FontStyle.Bold);
or as an SVG?
If so, can you provide a line of code using it?
This discussion has been closed.
Comments
Hello!
Load the FontAwesome .ttf/.otf file into PrivateFontCollection (Report.Dictionary / Config.PrivateFontCollection or install the font on your system) and assign it to TextObject.Font using the glyph code in the text (for example, ‘\uf007’). When exporting to PDF, set PDFExport.EmbeddingFonts = true (or TextInCurves = true)
Article on this topic: https://www.fast-report.com/blogs/fonts-reports-without-installing