[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] master 32a3206 1/2: [truetype] Fix GETINFO bytecode instruct
From: |
Werner LEMBERG |
Subject: |
[freetype2] master 32a3206 1/2: [truetype] Fix GETINFO bytecode instruction. |
Date: |
Sat, 16 Jul 2016 16:46:54 +0000 (UTC) |
branch: master
commit 32a320625e333a7728b04a35d7953b3508b80f04
Author: Werner Lemberg <address@hidden>
Commit: Werner Lemberg <address@hidden>
[truetype] Fix GETINFO bytecode instruction.
* src/truetype/ttinterp.c (Ins_GETINFO): Fix return value for
stretching information.
---
ChangeLog | 7 +++++++
src/truetype/ttinterp.c | 4 ++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index eb2cf79..1f45e07 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2016-07-16 Werner Lemberg <address@hidden>
+
+ [truetype] Fix GETINFO bytecode instruction.
+
+ * src/truetype/ttinterp.c (Ins_GETINFO): Fix return value for
+ stretching information.
+
2016-07-16 Behdad Esfahbod <address@hidden>
[truetype] Make all glyphs in `Zycon' GX font work.
diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c
index ad7b123..1ab01ff 100644
--- a/src/truetype/ttinterp.c
+++ b/src/truetype/ttinterp.c
@@ -7227,7 +7227,7 @@
/* Return Bit(s): 8 */
/* */
if ( ( args[0] & 2 ) != 0 && exc->tt_metrics.rotated )
- K |= 0x80;
+ K |= 1 << 8;
/********************************/
/* GLYPH STRETCHED */
@@ -7235,7 +7235,7 @@
/* Return Bit(s): 9 */
/* */
if ( ( args[0] & 4 ) != 0 && exc->tt_metrics.stretched )
- K |= 1 << 8;
+ K |= 1 << 9;
/********************************/
/* BI-LEVEL HINTING AND */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] master 32a3206 1/2: [truetype] Fix GETINFO bytecode instruction.,
Werner LEMBERG <=