GRAPHICS: Implement kMacFontCondense and kMacFontExtend

Judging by the experiments I made in a Mac emulator, condensed and
extended slant simply decreases and increases the glyph width by one.
You'd think it would depend on the font size, but apparently not. It is
possible to use both condensed and extended slant at the same time, and
it's just as useless as it sounds.
This commit is contained in:
Torbjörn Andersson 2023-09-28 18:08:22 +02:00 committed by Eugene Sandulenko
parent 3e0a726cb4
commit e5e5f049be

View File

@ -649,6 +649,12 @@ MacFONTFont *MacFONTFont::scaleFont(const MacFONTFont *src, int newSize, int sla
srcSurf.copyFrom(tmpSurf);
}
if (slant & kMacFontCondense)
glyph->width--;
if (slant & kMacFontExtend)
glyph->width++;
byte *ptr = &data._bitImage[glyph->bitmapOffset / 8];
for (int y = 0; y < data._fRectHeight; y++) {