summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2021-12-11 22:34:27 -0500
committerAlexei Podtelezhnikov <apodtele@gmail.com>2021-12-11 22:34:27 -0500
commit6c831d658f879e542be0b789fbc38e4f45a33ace (patch)
tree7cfebfcfd9122641f54911a7939e90361189a21d /include
parent7809007a5b88b15207d6c6680cd8a979b122eafa (diff)
downloadfreetype2-6c831d658f879e542be0b789fbc38e4f45a33ace.tar.gz
[truetype] Initialize the loader with `hdmx` data.
The `hdmx` matching can be done before the glyph is loaded. * include/freetype/internal/tttypes.h (TT_LoaderRec): Add a field. * src/truetype/ttgload.c (compute_glyph_metrics): Relocate the `hdmx` code from here... (tt_loader_init): ... to here, before the glyph is loaded.
Diffstat (limited to 'include')
-rw-r--r--include/freetype/internal/tttypes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/freetype/internal/tttypes.h b/include/freetype/internal/tttypes.h
index 651131c8d..fcd97cff0 100644
--- a/include/freetype/internal/tttypes.h
+++ b/include/freetype/internal/tttypes.h
@@ -1769,6 +1769,9 @@ FT_BEGIN_HEADER
/* since version 2.6.2 */
FT_ListRec composites;
+ /* since version 2.11.2 */
+ FT_Byte* widthp;
+
} TT_LoaderRec;