mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Updated IconFontCppHeaders.
This commit is contained in:
38
3rdparty/iconfontheaders/README.md
vendored
38
3rdparty/iconfontheaders/README.md
vendored
@@ -1,17 +1,26 @@
|
|||||||
# IconFontCHeaders
|
# IconFontCppHeaders
|
||||||
C++11 and C89 headers for icon fonts Font Awesome, Google Material Design icons and Kenney game icons.
|
|
||||||
|
|
||||||
A set of header files for using icon fonts in C and C++, along with the python generator used to create the files.
|
[https://github.com/juliettef/IconFontCppHeaders](https://github.com/juliettef/IconFontCppHeaders)
|
||||||
|
|
||||||
|
C++11, C89 and None headers for icon fonts Font Awesome, Google Material Design icons and Kenney game icons.
|
||||||
|
|
||||||
|
A set of header files for using icon fonts in C, C++ and [None](https://bitbucket.org/duangle/nonelang/src), 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.
|
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.
|
||||||
|
|
||||||
## Fonts
|
## Fonts
|
||||||
|
|
||||||
* [Font Awesome](http://fortawesome.github.io/Font-Awesome/) - [github repository](https://github.com/FortAwesome/Font-Awesome/)
|
* [Font Awesome](http://fontawesome.io/)
|
||||||
* [Google Material Design icons](https://design.google.com/icons/) - [github repository](https://github.com/google/material-design-icons/)
|
* [github repository](https://github.com/FortAwesome/Font-Awesome/)
|
||||||
* [Kenney Game icons](http://kenney.nl/assets/game-icons) and [Game icons expansion](http://kenney.nl/assets/game-icons-expansion) - [github repository](https://github.com/SamBrishes/kenney-icon-font)
|
* [fontawesome-webfont.ttf](https://github.com/FortAwesome/Font-Awesome/blob/master/fonts/fontawesome-webfont.ttf)
|
||||||
|
* [Google Material Design icons](https://design.google.com/icons/)
|
||||||
|
* [github repository](https://github.com/google/material-design-icons/)
|
||||||
|
* [MaterialIcons-Regular.ttf](https://github.com/google/material-design-icons/blob/master/iconfont/MaterialIcons-Regular.ttf)
|
||||||
|
* [Kenney Game icons](http://kenney.nl/assets/game-icons) and [Game icons expansion](http://kenney.nl/assets/game-icons-expansion)
|
||||||
|
* [github repository](https://github.com/SamBrishes/kenney-icon-font)
|
||||||
|
* [kenney-icon-font.ttf](https://github.com/SamBrishes/kenney-icon-font/blob/master/fonts/kenney-icon-font.ttf)
|
||||||
|
|
||||||
## Usage
|
## Example Code
|
||||||
|
|
||||||
Using [dear imgui](https://github.com/ocornut/imgui) as an example UI library:
|
Using [dear imgui](https://github.com/ocornut/imgui) as an example UI library:
|
||||||
|
|
||||||
@@ -27,3 +36,18 @@ Using [dear imgui](https://github.com/ocornut/imgui) as an example UI library:
|
|||||||
|
|
||||||
// in an imgui window somewhere...
|
// in an imgui window somewhere...
|
||||||
ImGui::Text( ICON_FA_FILE " File" ); // use string literal concatenation, ouputs a file icon and File as a string.
|
ImGui::Text( ICON_FA_FILE " File" ); // use string literal concatenation, ouputs a file icon and File as a string.
|
||||||
|
|
||||||
|
## Projects using the font icon header files
|
||||||
|
|
||||||
|
### [bgfx](https://github.com/bkaradzic/bgfx) - Cross-platform rendering library
|
||||||
|
|
||||||
|
### [Avoyd](http://www.avoyd.com) - Game
|
||||||
|
The Edit Tool UI uses [dear imgui](https://github.com/ocornut/imgui) with [Font Awesome](http://fontawesome.io/) fonts.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## Credits
|
||||||
|
|
||||||
|
Development - [Juliette Foucaut](http://www.enkisoftware.com/about.html#juliette) - [@juliettef](https://github.com/juliettef)
|
||||||
|
Requirements - [Doug Binks](http://www.enkisoftware.com/about.html#doug) - [@dougbinks](https://github.com/dougbinks)
|
||||||
|
[None language](https://bitbucket.org/duangle/nonelang/src) [format definition and refactoring](https://gist.github.com/paniq/4a734e9d8e86a2373b5bc4ca719855ec) - [Leonard Ritter](http://www.leonard-ritter.com/) - [@paniq](https://github.com/paniq)
|
||||||
|
|||||||
Reference in New Issue
Block a user