diff --git a/README.md b/README.md index 1c8a5cc..e2cc694 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ + ## ImGui + FontAwesome Example - Icon header provided by [IconFontCppHeaders](https://github.com/juliettef/IconFontCppHeaders) @@ -15,6 +16,16 @@ 2. Run generated executable *with fonts in same folder that executable* using following parameters: ```binary_to_compressed_c.exe fa-solid-900.ttf FontAwesome > fa.h``` 3. Finished +### Additional Information +1. You can use brands icons following the same steps but using Brands fonts +2. To use multiple icon sizes you'll need add create multiple versions in memory like: + ``` + io.Fonts->AddFontFromMemoryCompressedTTF(FA_compressed_data, FA_compressed_size, 12.0f, &icons_config, icons_ranges); + io.Fonts->AddFontFromMemoryCompressedTTF(FA_compressed_data, FA_compressed_size, 20.0f, &icons_config, icons_ranges); + ``` + 3. If a quotation mark is displayed instead of the icon, probably the Icon header and Font Awesome version are not the same + + #### Performance Implications: I had some issues with performance degradation when using custom icons in a extreme low-end hardware (in a application with a HUGE iterations per second)