@@ -75,8 +75,11 @@ static void default_error_callback(int error, const char *description) {
7575 icons_config.MergeMode = true ;
7676 icons_config.PixelSnapH = true ;
7777 icons_config.FontDataOwnedByAtlas = false ;
78- io.Fonts ->AddFontFromMemoryTTF ((void *)s_iconsFontAwesomeTtf, sizeof (s_iconsFontAwesomeTtf),
79- 12 .0f , &icons_config, icons_ranges);
78+ icons_config.GlyphOffset = {0 , 2 };
79+ icons_config.GlyphMinAdvanceX = 17 ;
80+ io.Fonts ->AddFontFromMemoryTTF ((void *)s_iconsFontAwesomeTtf,
81+ sizeof (s_iconsFontAwesomeTtf), 13 .0f ,
82+ &icons_config, icons_ranges);
8083
8184 if (io.Fonts ->ConfigData .empty ()) io.Fonts ->AddFontDefault ();
8285 // io.Fonts->Build();
@@ -123,9 +126,12 @@ static void default_error_callback(int error, const char *description) {
123126 ImFontConfig icons_config;
124127 icons_config.MergeMode = true ;
125128 icons_config.PixelSnapH = true ;
129+ icons_config.GlyphOffset = {0 , 2 };
130+ icons_config.GlyphMinAdvanceX = 17 ;
126131 icons_config.FontDataOwnedByAtlas = false ;
127- io.Fonts ->AddFontFromMemoryTTF ((void *)s_iconsFontAwesomeTtf, sizeof (s_iconsFontAwesomeTtf),
128- 12 .0f , &icons_config, icons_ranges);
132+ io.Fonts ->AddFontFromMemoryTTF ((void *)s_iconsFontAwesomeTtf,
133+ sizeof (s_iconsFontAwesomeTtf), 13 .0f ,
134+ &icons_config, icons_ranges);
129135
130136 if (io.Fonts ->ConfigData .empty ()) io.Fonts ->AddFontDefault ();
131137 // io.Fonts->Build();
0 commit comments