shithub: freetype+ttf2subf

Download patch

ref: 793c012635f8406c8370266442d3443ab6287067
parent: a577bbcb5bd895b74c690f5d3eb640330d2fee68
author: Alexei Podtelezhnikov <[email protected]>
date: Wed Oct 27 18:36:11 EDT 2021

[woff] Optimize table tagging.

* include/freetype/internal/wofftypes.h (WOFF_TableRec): Use
32-bit tag.
* src/sfnt/sfwoff.c (woff_open_font): Use 32-bit tag.

git/fs: mount .git/fs: mount/attach disallowed
--- a/include/freetype/internal/wofftypes.h
+++ b/include/freetype/internal/wofftypes.h
@@ -92,7 +92,7 @@
    */
   typedef struct  WOFF_TableRec_
   {
-    FT_ULong  Tag;           /* table ID                  */
+    FT_Tag    Tag;           /* table ID                  */
     FT_ULong  Offset;        /* table file offset         */
     FT_ULong  CompLength;    /* compressed table length   */
     FT_ULong  OrigLength;    /* uncompressed table length */
--- a/src/sfnt/sfwoff.c
+++ b/src/sfnt/sfwoff.c
@@ -109,7 +109,7 @@
     FT_ULong        sfnt_offset;
 
     FT_Int          nn;
-    FT_ULong        old_tag = 0;
+    FT_Tag          old_tag = 0;
 
     static const FT_Frame_Field  woff_header_fields[] =
     {