mirror of
https://gitlab.com/c3d/db48x.git
synced 2024-09-27 15:20:29 +02:00
ttf2font: Flip x coordinates for dense fonts
DM42 dense fonts are flipped backwards, so respect that encoding Fixes: #1177 Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
This commit is contained in:
parent
01927b1c97
commit
4e8eee969a
1 changed files with 1 additions and 1 deletions
|
@ -457,7 +457,7 @@ void processFont(cstring fontName,
|
|||
int dbo = y * colsGlyph + (rwidth - x);
|
||||
if (bit)
|
||||
{
|
||||
int bx = denseBitMapX + x + colsBeforeGlyph;
|
||||
int bx = denseBitMapX + (colsGlyph - x - 1) + colsBeforeGlyph;
|
||||
uint32_t bitOffset = by * denseWidth + bx;
|
||||
uint32_t byteOffset = bitOffset / 8;
|
||||
if (byteOffset > denseBitMapSize)
|
||||
|
|
Loading…
Reference in a new issue