[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] master ecfdfd4: [truetype] Make blend/design coordinate roun
From: |
Werner LEMBERG |
Subject: |
[freetype2] master ecfdfd4: [truetype] Make blend/design coordinate round-tripping work. |
Date: |
Tue, 2 Jan 2018 18:20:33 -0500 (EST) |
branch: master
commit ecfdfd4498d6c1313b3faaa9d7cf1917e4be98c5
Author: Werner Lemberg <address@hidden>
Commit: Werner Lemberg <address@hidden>
[truetype] Make blend/design coordinate round-tripping work.
Behdad reported that setting blend coordinates, then getting design
coordinates did incorrectly return the default instance's
coordinates.
* src/truetype/ttgxvar.c (tt_set_mm_blend): Fix it.
---
ChangeLog | 10 ++++++++++
src/truetype/ttgxvar.c | 4 ++--
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 57058ea..7d6fce7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2018-01-03 Werner Lemberg <address@hidden>
+
+ [truetype] Make blend/design coordinate round-tripping work.
+
+ Behdad reported that setting blend coordinates, then getting design
+ coordinates did incorrectly return the default instance's
+ coordinates.
+
+ * src/truetype/ttgxvar.c (tt_set_mm_blend): Fix it.
+
2017-12-31 Werner Lemberg <address@hidden>
* src/sfnt/ttcmap.c (tt_cmap2_char_next): Fix endless loop.
diff --git a/src/truetype/ttgxvar.c b/src/truetype/ttgxvar.c
index 2bf7d18..5378852 100644
--- a/src/truetype/ttgxvar.c
+++ b/src/truetype/ttgxvar.c
@@ -2493,14 +2493,14 @@
coords,
num_coords * sizeof ( FT_Fixed ) );
+ face->doblend = TRUE;
+
if ( set_design_coords )
ft_var_to_design( face,
all_design_coords ? blend->num_axis : num_coords,
blend->normalizedcoords,
blend->coords );
- face->doblend = TRUE;
-
if ( face->cvt )
{
switch ( manageCvt )
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] master ecfdfd4: [truetype] Make blend/design coordinate round-tripping work.,
Werner LEMBERG <=