freetype/src
Nikhil Ramakrishnan b9414b4dc6 Reconstruct loca, hmtx and swap out stream.
Add necessary functions to reconstruct loca and hmtx tables (the 2
remaining tables that can have a transform). `woff2_open_font' is now
capable of loading a woff2 font face. This code may still need more
refining and better memory management.

* include/freetype/internal/wofftypes.h (WOFF2_HeaderRec): Add total (final)
size of sfnt stream.

(WOFF2_InfoRec): Add header checksum value.

* src/sfnt/sfobjs.c (sfnt_open_font): Change `face_instance_index' parameter
to its pointer so its value can be modified by `woff2_open_font'.

* src/sfnt/sfwoff2.c: (WRITE_SFNT_BUF_AT): New macro to write into sfnt
buffer at given position.

(write_buf): Add parameter `extend_buf' which allows caller to specify
whether buffer should be reallocated before copying data. Modify macro
`WRITE_SFNT_BUF' accordingly.

(pad4): New function to pad buffer to closest multiple of 4.

(store_loca): Store loca values (provided by `reconstruct_glyf') to output
stream.

(reconstruct_glyf): Calculate loca values and store them.

(reconstruct_hmtx): Reconstruct transformed hmtx table.

(reconstruct_font): Call `reconstruct_hmtx', write table record entries, and
calculate table checksums. Also calculate font checksum and update
`checksumAdjustment' entry in head table.

(woff2_open_font): Open stream for sfnt buffer, swap out input stream and
return.

* src/sfnt/sfwoff2.h (woff2_open_font): Modify parameter to accept pointer
to `face_index'.
2019-07-16 02:45:03 +05:30
..
autofit [autofit] Disable hinting if no blue zones are available (#56450). 2019-06-16 15:33:32 +02:00
base * src/base/ftinit.c (FT_Set_Default_Properties): Fix crash. 2019-06-07 09:15:28 +02:00
bdf [bdf,pcf] Use `const' for string literals. 2019-06-10 22:27:39 -04:00
bzip2 Update all copyright notices. 2019-02-23 10:07:09 +01:00
cache Various clang 8.0 static analyzer fixes. 2019-05-04 08:13:22 +02:00
cff [type1,type42] Use `const' for string literals. 2019-06-10 23:09:49 -04:00
cid Fix invalid function pointer casts. 2019-03-07 09:43:05 +01:00
gxvalid Update all copyright notices. 2019-02-23 10:07:09 +01:00
gzip [gzip] Add support for `gzip' encoded header (#9812). 2019-06-11 21:29:52 +05:00
lzw Update all copyright notices. 2019-02-23 10:07:09 +01:00
otvalid Update all copyright notices. 2019-02-23 10:07:09 +01:00
pcf [bdf,pcf] Use `const' for string literals. 2019-06-10 22:27:39 -04:00
pfr Various clang 8.0 static analyzer fixes. 2019-05-04 08:13:22 +02:00
psaux [type1,type42] Use `const' for string literals. 2019-06-10 23:09:49 -04:00
pshinter Update all copyright notices. 2019-02-23 10:07:09 +01:00
psnames Update all copyright notices. 2019-02-23 10:07:09 +01:00
raster * src/raster/ftraster.c (Draw_Sweep): Unbreak. 2019-05-07 19:07:11 -04:00
sfnt Reconstruct loca, hmtx and swap out stream. 2019-07-16 02:45:03 +05:30
smooth [smooth] Restore the span buffering for direct mode only. 2019-06-13 00:17:36 -04:00
tools * src/tools/apinames.c (main): Fix error message. 2019-04-15 10:10:38 +02:00
truetype * src/truetype/ttobjs.c (tt_check_trickyness_family): Add `const'. 2019-06-11 21:43:47 -04:00
type1 [type1,type42] Use `const' for string literals. 2019-06-10 23:09:49 -04:00
type42 [type1,type42] Use `const' for string literals. 2019-06-10 23:09:49 -04:00
winfonts Update all copyright notices. 2019-02-23 10:07:09 +01:00
Jamfile Update all copyright notices. 2019-02-23 10:07:09 +01:00