<< Click to Display Table of Contents >> Navigation: »No topics above this level« Fonts and FontAwesome |
Custom fonts can be embedded into document in TTF/OpenType format. When using Office library, WOFF format is also supported.
In addition, custom fonts can be registered directly using canvas class methods
RegisterCustomFont
RegisterCustomFontData
By default documents use shared font collection. To use own font collection (f.e. document is used in thread) pass true to AThreaded parameter of constructor.
Library has built-in FontAwesome support. To enable it add htfontawesome (for VCL) or fmx.htfontawesome (for FMX) into uses list and .
After that you can use standard FA syntax like
<i class="fa fa-solid fa-file"></i>
Note that solid icons require fa class.
There are two sets included: FontAwesome Free Regular and FontAwesome Free Solid.
FontAwesome will only be enabled for document if it have any element with fa or fas class at start (not in dynamically added content).