Skip to content

nedrysoft/FontAwesomeForQt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nedrysoft Font Awesome for Qt

This library provides easy access to Font Awesome glyphs. It embeds a copy of the FontAwesome fonts and makes them available to the application.

Usage

To get the names of the fonts:

auto brandsFontName = Nedrysoft::FontAwesome::brandsName();
auto brandsFontName = Nedrysoft::FontAwesome::regularName();
auto brandsFontName = Nedrysoft::FontAwesome::solidName();

To get HTML text from a plaintext with FontAwesome tags:

QString html = Nedrysoft::FontAwesome::richText("Here is a robot [fas fa-robot]");

To get a QIcon from a glyph:

QIcon icon = Nedrysoft::FontAwesome::icon("[fas fa-robot]", 16, Qt::red);

Requirements

  • Qt 5
  • CMake

Building

To build the library, invoke CMake or open the CMakeLists.txt file in your preferred IDE.

Setting the following CMake variables allows the customisation of the build.

NEDRYSOFT_FONTAWESOME_LIBRARY_DIR=<dir>

Sets the output folder for the dynamic library; if omitted, you can find the binaries in the default location.

Credits

None of this is possible without FontAwesome.

License

This project is open source and released under the GPLv3 licence.

Distributed as-is; no warranty is given.

About

FontAwesome helper library for accessing FontAwesome glyphs easily from Qt.

Topics

Resources

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published