Skip to content

shaunroselt/Delphi-Font-Awesome-Icons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Delphi Font Awesome Icons (.SVG)

The Font Awesome Icons library to use within Delphi.

Font Awesome Free

Open source SVG icon library with over 2,000 icons.

Font Awesome Icons preview

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

License

  • Font Awesome Icons are free and open source (CC BY 4.0).

Other Delphi Icon Libraries

About

Delphi unit for Font Awesome Icons

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages