[autofit] Fix metrics computation.

Problem reported by Markus Trippelsdorf <markus@trippelsdorf.de> and
Nikolaus Waxweiler <madigens@gmail.com>.

* src/base/ftobjs.c (FT_Request_Size): Trigger recomputation of
auto-hinter metrics.  Without this change, multiple size changing
calls for a single face fail.
This commit is contained in:
Werner Lemberg 2017-04-30 17:25:11 +02:00
parent 785833d96e
commit 7abf0cb758
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,14 @@
2017-04-30 Werner Lemberg <wl@gnu.org>
[autofit] Fix metrics computation.
Problem reported by Markus Trippelsdorf <markus@trippelsdorf.de> and
Nikolaus Waxweiler <madigens@gmail.com>.
* src/base/ftobjs.c (FT_Request_Size): Trigger recomputation of
auto-hinter metrics. Without this change, multiple size changing
calls for a single face fail.
2017-04-29 Werner Lemberg <wl@gnu.org>
* src/truetype/ttdriver.c (tt_size_request): Properly check `error'.

View File

@ -3061,6 +3061,10 @@
req->type >= FT_SIZE_REQUEST_TYPE_MAX )
return FT_THROW( Invalid_Argument );
/* signal the auto-hinter to recompute its size metrics */
/* (if requested) */
face->size->internal->autohint_metrics.x_scale = 0;
clazz = face->driver->clazz;
if ( clazz->request_size )