Using FontAwesome with FastReport.net

edited March 2021 in 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?

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

This discussion has been closed.