mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 10:17:14 +00:00
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:
parent
3e0a726cb4
commit
e5e5f049be
@ -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++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user