ref: d9c7f5aa6e5e9aa834ae574a45e157cbd97667a0
parent: 3a528bbe5aec292598f655567ac48a06e3d2c137
author: Werner Lemberg <[email protected]>
date: Tue Jul 26 16:20:27 EDT 2016
* src/autofit/aflatin.c (af_latin_metrics_scale_dim): Minor. No functional change.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-07-26 Werner Lemberg <[email protected]>
+
+ * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Minor.
+
+ No functional change.
+
2016-07-22 Hin-Tak Leung <[email protected]>
[truetype] Record the end of IDEFs.
--- a/src/autofit/aflatin.c
+++ b/src/autofit/aflatin.c
@@ -1076,7 +1076,7 @@
FT_UInt ppem;
- scaled = FT_MulFix( blue->shoot.org, scaler->y_scale );
+ scaled = FT_MulFix( blue->shoot.org, scale );
ppem = metrics->root.scaler.face->size->metrics.x_ppem;
limit = metrics->root.globals->increase_x_height;
threshold = 40;
@@ -1123,8 +1123,6 @@
if ( dist == 0 )
{
- scale = new_scale;
-
FT_TRACE5((
"af_latin_metrics_scale_dim:"
" x height alignment (style `%s'):\n"
@@ -1132,9 +1130,11 @@
" vertical scaling changed from %.4f to %.4f (by %d%%)\n"
"\n",
af_style_names[metrics->root.style_class->style],
- axis->org_scale / 65536.0,
scale / 65536.0,
+ new_scale / 65536.0,
( fitted - scaled ) * 100 / scaled ));
+
+ scale = new_scale;
}
#ifdef FT_DEBUG_LEVEL_TRACE
else