GRAPHICS: Calculate bitmapOffset correctly. Again.

Add, don't set, the extra bitmap offset for italics to keep glyphs from
overlapping in memory.
This commit is contained in:
Torbjörn Andersson 2023-10-23 18:57:58 +02:00 committed by Eugene Sandulenko
parent 2798b124d1
commit 16ac86cdeb

View File

@ -566,7 +566,7 @@ MacFONTFont *MacFONTFont::scaleFont(const MacFONTFont *src, int newSize, int sla
if (slant & kMacFontOutline)
bitmapOffset += 2;
if (slant & kMacFontItalic)
bitmapOffset = (data._fRectHeight - 1) / SLANTDEEP;
bitmapOffset += (data._fRectHeight - 1) / SLANTDEEP;
if (slant & kMacFontShadow)
bitmapOffset++;