diff --git a/Source/FontAwesome.h b/Source/FontAwesome.h index 84ab205..b9466a0 100644 --- a/Source/FontAwesome.h +++ b/Source/FontAwesome.h @@ -48,6 +48,7 @@ class FontAwesomeIcons { static void drawIcon(Graphics & g, int iconCode, Rectangle area) { g.setFont(Font(getTypeface())); + g.setFont(area.getHeight()); g.drawText(String::charToString(iconCode), area, Justification::centred, false); }