All Projects → juliettef → Iconfontcppheaders

juliettef / Iconfontcppheaders

Licence: zlib
C, C++ headers and C# classes for icon fonts: Font Awesome, Fork Awesome, Material Design, Kenney game icons and Fontaudio

Programming Languages

c
50402 projects - #5 most used programming language
cpp
1120 projects
csharp
926 projects

Projects that are alternatives of or similar to Iconfontcppheaders

Vectoriconsroundup
A comparison between popular vectorial icon fonts
Stars: ✭ 126 (-75.25%)
Mutual labels:  material-design, icons, font-awesome, icon-font, font-icons
Imgui markdown
Markdown for Dear ImGui
Stars: ✭ 594 (+16.7%)
Mutual labels:  gamedev, library, gui, imgui
Swifticons
🎢Swift Library for Font Icons - ★ this library
Stars: ✭ 747 (+46.76%)
Mutual labels:  fontawesome, icons, font-awesome, font-icons
rofi-fontawesome
fontawesome icon list for rofi dmenu
Stars: ✭ 58 (-88.61%)
Mutual labels:  fontawesome, icons, font-awesome, font-icons
Fontawesome Module
Module to use Font Awesome icons in Nuxt.js
Stars: ✭ 79 (-84.48%)
Mutual labels:  fontawesome, icons, font-awesome
Font Awesome Stylus
Stylus port for font-awesome 4.7.0
Stars: ✭ 77 (-84.87%)
Mutual labels:  fontawesome, icons, font-awesome
Mahapps.metro.iconpacks
Awesome icon packs for WPF and UWP in one library
Stars: ✭ 1,157 (+127.31%)
Mutual labels:  material-design, fontawesome, icons
Fork Awesome
A fork of the iconic font and CSS toolkit
Stars: ✭ 878 (+72.5%)
Mutual labels:  icons, font-awesome, icon-font
Imgui
Bloat-free Immediate Mode Graphical User interface for JVM with minimal dependencies (rewrite of dear imgui)
Stars: ✭ 394 (-22.59%)
Mutual labels:  gamedev, gui, imgui
Cimgui
c-api for imgui (https://github.com/ocornut/imgui) Look at: https://github.com/cimgui for other widgets
Stars: ✭ 707 (+38.9%)
Mutual labels:  gamedev, gui, imgui
Gooi
LÖVE GUI Library
Stars: ✭ 168 (-66.99%)
Mutual labels:  gamedev, library, gui
Font Awesome Php
A PHP library for Font Awesome 4.7.
Stars: ✭ 47 (-90.77%)
Mutual labels:  fontawesome, icons, font-awesome
Imgui sdl
ImGuiSDL: SDL2 based renderer for Dear ImGui
Stars: ✭ 134 (-73.67%)
Mutual labels:  gamedev, gui, imgui
Gwork
Skinnable GUI with useful widget collection. Fork of GWEN.
Stars: ✭ 179 (-64.83%)
Mutual labels:  gamedev, library, gui
Android Iconics
Android-Iconics - Use any icon font, or vector (.svg) as drawable in your application.
Stars: ✭ 4,916 (+865.82%)
Mutual labels:  material-design, fontawesome, icon-font
Alfred Font Awesome Workflow
🎩 Font Awesome workflow for Alfred
Stars: ✭ 714 (+40.28%)
Mutual labels:  fontawesome, icons, font-awesome
Imguifontstudio
Font Helper Gui Tool for programming
Stars: ✭ 149 (-70.73%)
Mutual labels:  imgui, font-awesome, font-icons
Font Awesome Swift
Font Awesome swift library for iOS.
Stars: ✭ 743 (+45.97%)
Mutual labels:  icons, font-awesome, font-icons
Imgui
Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
Stars: ✭ 33,574 (+6496.07%)
Mutual labels:  gamedev, gui, imgui
react-native-fontawesome-pro
Easily use your FontAwesome Pro icons in React-Native
Stars: ✭ 44 (-91.36%)
Mutual labels:  fontawesome, icons, font-awesome

Support development of IconFontCppHeaders through GitHub Sponsors or Patreon

Become a Patron

IconFontCppHeaders

https://github.com/juliettef/IconFontCppHeaders

C, C++ headers and C# classes for icon fonts Font Awesome, Fork Awesome, Google Material Design icons, Kenney game icons and Fontaudio.

A set of header files and classes for using icon fonts in C, C++ and C#, along with the python generator used to create the files.

Each header contains defines for one font, with each icon code point defined as ICON_*, along with the min and max code points for font loading purposes.

In addition the python script can be used to convert ttf font files to C and C++ headers. Each ttf icon font file is converted to a C and C++ header file containing a single array of bytes. To enable conversion, run the GenerateIconFontCppHeaders.py script with 'ttf2headerC = True'.

Icon Fonts

Font Awesome

Font Awesome 4

Font Awesome 5 - see notes below

Font Awesome 5 Pro - this is a paid product, see notes below

Files downloaded from fontawesome.com

  • ..\fontawesome-pro-n.n.n-web\metadata\icons.yml
  • ..\fontawesome-pro-n.n.n-web\webfonts\fa-brands-400.ttf
  • ..\fontawesome-pro-n.n.n-web\webfonts\fa-light-300.ttf
  • ..\fontawesome-pro-n.n.n-web\webfonts\fa-regular-400.ttf
  • ..\fontawesome-pro-n.n.n-web\webfonts\fa-solid-900.ttf

Fork Awesome

Google Material Design icons - see Issue #19

Kenney Game icons and Game icons expansion

Fontaudio

Notes about Font Awesome 5

Codepoints grouping

Font Awesome 5 splits the different styles of icons into different font files with identical codepoints for light, regular and solid styles, and a different set of codepoints for brands. We have put the brands into a separate header file.

Generating Pro header files

Download the Font Awesome Pro Web package. To generate the headers, drop icons.yml in the same directory as GenerateIconFontCppHeaders.py before running the script. The file icons.yml is under ..\fontawesome-pro-n.n.n-web\metadata\icons.yml where n.n.n is the version number.

Ionicons and webfont Material Design Icons

Unsupported as of 29 Apr 2020. See Issue #16.

Example Code

Using Dear ImGui as an example UI library:


#include "IconsFontAwesome5.h"

ImGuiIO& io = ImGui::GetIO();
io.Fonts->AddFontDefault();
 
// merge in icons from Font Awesome
static const ImWchar icons_ranges[] = { ICON_MIN_FA, ICON_MAX_FA, 0 };
ImFontConfig icons_config; icons_config.MergeMode = true; icons_config.PixelSnapH = true;
io.Fonts->AddFontFromFileTTF( FONT_ICON_FILE_NAME_FAS, 16.0f, &icons_config, icons_ranges );
// use FONT_ICON_FILE_NAME_FAR if you want regular instead of solid

// in an imgui window somewhere...
ImGui::Text( ICON_FA_PAINT_BRUSH "  Paint" );    // use string literal concatenation
// outputs a paint brush icon and 'Paint' as a string.

Projects using the font icon header files

Avoyd

Avoyd is a 6 degrees of freedom voxel game that includes a voxel editor tool.
www.avoyd.com

The voxel editor's UI uses Dear ImGui with Font Awesome icon fonts.

Screenshot of the the game Avoyd's Voxel Editor UI using an IconFontCppHeaders header file for Font Awesome with Dear ImGui

bgfx

Cross-platform rendering library.
bkaradzic.github.io/bgfx/overview

glChAoS.P

Real time 3D strange attractors scout.
www.michelemorrone.eu/glchaosp

Screenshot of glChAoS.P UI using IconFontCppHeaders header file for Font Awesome with Dear ImGui

iPlug2

Cross platform C++ audio plug-in framework
iplug2.github.io

Tracy Profiler

Real time, nanosecond resolution, remote telemetry frame profiler for games and other applications.

New features in Tracy Profiler v0.6

Visual 6502 Remix

Transistor level 6502 Hardware Simulation
floooh.github.io/visual6502remix

Credits

Development - Juliette Foucaut - @juliettef
Requirements - Doug Binks - @dougbinks
None language implementation and refactoring - Leonard Ritter - @paniq
Suggestion to add a define for the ttf file name - Sean Barrett - @nothings
Initial Font Awesome 5 implementation - Codecat - @codecat
Suggestion to add Fork Awesome - Julien Deswaef - @xuv
Suggestion to add Ionicons - Omar Cornut - @ocornut
C# language implementation - Rokas Kupstys - @rokups
Suggestion to add Material Design Icons - Gustav Madeso - @madeso
Fontaudio implementation - Oli Larkin - @olilarkin
Initial ttf to C and C++ headers conversion implementation - Charles Mailly - @Caerind

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].