Commit f0629006 authored by Alexei Podtelezhnikov's avatar Alexei Podtelezhnikov

* src/ftcommon.c (FTDemo_String_Draw): Control pen position better.

parent 2a0da9d2
2021-02-18 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/ftcommon.c (FTDemo_String_Draw): Control pen position better.
2021-02-18 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/ftstring.c (write_header): Fix header formatting.
......
......@@ -1966,13 +1966,14 @@
pen.y += handle->string[n].hadvance.y;
}
pen.x = FT_MulFix( pen.x, sc->center );
pen.y = FT_MulFix( pen.y, sc->center );
/* round to control initial pen position and preserve hinting... */
pen.x = FT_MulFix( pen.x, sc->center ) & ~63;
pen.y = FT_MulFix( pen.y, sc->center ) & ~63;
/* XXX sbits */
/* get pen position */
/* ... unless rotating; XXX sbits */
FT_Vector_Transform( &pen, sc->matrix );
/* get pen position */
pen.x = ( x << 6 ) - pen.x;
pen.y = ( y << 6 ) - pen.y;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment