summaryrefslogtreecommitdiff
path: root/include/freetype/t1tables.h
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2021-10-07 22:41:56 -0400
committerAlexei Podtelezhnikov <apodtele@gmail.com>2021-10-07 22:41:56 -0400
commit22befeef82ff8ab7100c0e40f93f748597674b31 (patch)
tree4d5f3410db247e19d005f0f48ea4cb39a7732d68 /include/freetype/t1tables.h
parent842ec5ed623724f2139525a3ac11539994fd6b32 (diff)
downloadfreetype2-22befeef82ff8ab7100c0e40f93f748597674b31.tar.gz
Signedness revisions.
This eliminates explicit casting by switching to unsigned fields. The revisions mostly impact the handling of CID fonts. * include/freetype/fttypes.h (FT_Data): Change to unsigned `length`. * include/freetype/t1tables.h (CID_FaceDictRec): Ditto for `sd_bytes`. (CID_FaceInfoRec): Ditto for `gd_bytes` and `gd_bytes`. * include/freetype/internal/tttypes.h (TT_LoaderRec): Ditto for `byte_len`. * src/cid/cidgload.c (cid_load_glyph): Updated. * src/cid/cidload.h (cid_get_offset): Update argument. * src/cid/cidload.c (cid_get_offset, cid_read_subrs, cid_face_open): Updated. * src/cff/cffgload.c (cff_get_glyph_data, cff_free_glyph_data): Updated. * src/psaux/psft.c (cf2_getT1SeacComponent): Updated. * src/truetype/ttgload.c (TT_Process_Composite_Glyph, load_truetype_glyph): Updated.
Diffstat (limited to 'include/freetype/t1tables.h')
-rw-r--r--include/freetype/t1tables.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/freetype/t1tables.h b/include/freetype/t1tables.h
index 546ec1c00..1f5bc1586 100644
--- a/include/freetype/t1tables.h
+++ b/include/freetype/t1tables.h
@@ -360,7 +360,7 @@ FT_BEGIN_HEADER
FT_UInt num_subrs;
FT_ULong subrmap_offset;
- FT_Int sd_bytes;
+ FT_UInt sd_bytes;
} CID_FaceDictRec;
@@ -415,8 +415,8 @@ FT_BEGIN_HEADER
FT_ULong xuid[16];
FT_ULong cidmap_offset;
- FT_Int fd_bytes;
- FT_Int gd_bytes;
+ FT_UInt fd_bytes;
+ FT_UInt gd_bytes;
FT_ULong cid_count;
FT_Int num_dicts;