[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] master 8406ae5 2/2: [truetype] Reload context after re-execu
From: |
Werner Lemberg |
Subject: |
[freetype2] master 8406ae5 2/2: [truetype] Reload context after re-executing `prep`. |
Date: |
Fri, 15 Oct 2021 16:38:39 -0400 (EDT) |
branch: master
commit 8406ae53244de1e4439802804c44aebccb66bb8e
Author: Ben Wagner <bungeman@chromium.org>
Commit: Werner Lemberg <wl@gnu.org>
[truetype] Reload context after re-executing `prep`.
When a different hinting mode from the current is selected, the `prep` table
must be re-executed with the new mode. After this happens the context must
be re-loaded in preparation for the glyph program to be run.
Fixes #1104.
* truetype/ttgload.c (tt_loader_init): Add call to `TT_Load_Context`.
---
src/truetype/ttgload.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c
index 9136c17..a341c83 100644
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -2717,6 +2717,9 @@
error = tt_size_run_prep( size, pedantic );
if ( error )
return error;
+ error = TT_Load_Context( exec, face, size );
+ if ( error )
+ return error;
}
/* check whether the cvt program has disabled hinting */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] master 8406ae5 2/2: [truetype] Reload context after re-executing `prep`.,
Werner Lemberg <=