From 862e19710d18def7bf5841c2ac8a993481d5dd19 Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Sat, 11 Feb 2012 16:27:45 -0600 Subject: [PATCH] revert a change I had made a while ago since I was not aware this was causing stroked fonts to look odd. --- src/Font.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Font.cpp b/src/Font.cpp index 406aaf7d9f..f4df3b1658 100644 --- a/src/Font.cpp +++ b/src/Font.cpp @@ -157,6 +157,11 @@ void FontPage::SetTextureCoords( const vector &widths, int iAdvanceExtraPix void FontPage::SetExtraPixels( int iDrawExtraPixelsLeft, int iDrawExtraPixelsRight ) { + // Most fonts don't take the stroke into account, so if it shows up, it'll + // be cut off. I now understand why this code was here before. -freem + iDrawExtraPixelsRight++; + iDrawExtraPixelsLeft++; + if( (iDrawExtraPixelsLeft % 2) == 1 ) ++iDrawExtraPixelsLeft;