Skip to content

Commit

Permalink
Small Font Drawing Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gericom committed Nov 19, 2014
1 parent 744b3f1 commit 514e62b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion LibEveryFileExplorer/GFX/BitmapFont.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ public Bitmap PrintToBitmap(String Text, FontRenderSettings Settings)
Height += (int)(LineHeight * Settings.YScale) + Settings.LineSpacing;
}
while (linestart != -1);
Height -= Settings.LineSpacing;
if (Width == 0 || Height == 0) return null;
Height -= Settings.LineSpacing;
Width += 2;
Bitmap b = new Bitmap(Width, Height);
using (Graphics g = Graphics.FromImage(b))
{
Expand Down

0 comments on commit 514e62b

Please sign in to comment.