Delphi-Font-Awesome-Icons
Delphi unit for Font Awesome Icons
- Quiet · last change 12-15-2023
- ★ 25 on GitHub
README
Delphi Font Awesome Icons (.SVG)
The Font Awesome Icons library to use within Delphi.
Open source SVG icon library with over 2,000 icons.
Usage
SVG Code
uses uFontAwesomeIcons
...
// Returns SVG Code:
var HouseIconSVG := GetFontAwesomeIcon('house');
var ValveSteamIconSVG := GetFontAwesomeIcon('steam');
var BrushIconSVG := GetFontAwesomeIcon('brush');
// Returns SVG Code with Width/Height set to 24:
var HouseIconSVG := GetFontAwesomeIcon('house', 24);
var ValveSteamIconSVG := GetFontAwesomeIcon('steam', 24);
var BrushIconSVG := GetFontAwesomeIcon('brush', 24);
// Returns SVG Code with Width/Height set to 24 and color set to purple (#800080):
var HouseIconSVG := GetFontAwesomeIcon('house', 24, 'purple');
var ValveSteamIconSVG := GetFontAwesomeIcon('steam', 24, '#800080');
var BrushIconSVG := GetFontAwesomeIcon('brush', 24, 'purple');SVG Path Data
uses uFontAwesomeIcons
...
// Returns SVG Code:
var HouseIconSVG := GetFontAwesomeIconPathData('house');
var ValveSteamIconSVG := GetFontAwesomeIconPathData('steam');
var BrushIconSVG := GetFontAwesomeIconPathData('brush');
// Returns SVG Code with Width/Height set to 24:
var HouseIconSVG := GetFontAwesomeIconPathData('house', 24);
var ValveSteamIconSVG := GetFontAwesomeIconPathData('steam', 24);
var BrushIconSVG := GetFontAwesomeIconPathData('brush', 24);
// Returns SVG Code with Width/Height set to 24 and color set to purple (#800080):
var HouseIconSVG := GetFontAwesomeIconPathData('house', 24, 'purple');
var ValveSteamIconSVG := GetFontAwesomeIconPathData('steam', 24, '#800080');
var BrushIconSVG := GetFontAwesomeIconPathData('brush', 24, 'purple');SVG Base64 Image
uses uFontAwesomeIcons
...
// Returns SVG Base64 Image:
var HouseIconSVGBase64 := GetFontAwesomeIconBase64('house');
var ValveSteamIconSVGBase64 := GetFontAwesomeIconBase64('steam');
var BrushIconSVGBase64 := GetFontAwesomeIconBase64('brush');
// Returns SVG Base64 Image with Width/Height set to 24:
var HouseIconSVGBase64 := GetFontAwesomeIconBase64('house', 24);
var ValveSteamIconSVGBase64 := GetFontAwesomeIconBase64('steam', 24);
var BrushIconSVGBase64 := GetFontAwesomeIconBase64('brush', 24);
// Returns SVG Base64 Image with Width/Height set to 24 and color set to purple (#800080):
var HouseIconSVGBase64 := GetFontAwesomeIconBase64('house', 24, 'purple');
var ValveSteamIconSVGBase64 := GetFontAwesomeIconBase64('steam', 24, '#800080');
var BrushIconSVGBase64 := GetFontAwesomeIconBase64('brush', 24, 'purple');Other ways to use Font Awesome Icons: [https://fontawesome.com/docs](https://fontawesome.com/docs)
License
- Font Awesome Icons are free and open source (CC BY 4.0).



