freetype/src
Nikhil Ramakrishnan 4d9b3d1d50 [woff2] Reconstruct loca', hmtx', and swap out stream.
Add necessary functions to reconstruct loca and hmtx tables (the two
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.

(WRITE_SFNT_BUF): Updated.

(pad4, store_loca, reconstruct_htmx): New functions.

(reconstruct_glyf): Calculate loca values and store them.

(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-08-27 09:46:47 +02:00
..
autofit [autofit] Disable hinting if no blue zones are available (#56450). 2019-06-16 15:33:32 +02:00
base * src/base/ftbbox.c (cubic_peak): Sanitize left shift (#56586). 2019-07-23 22:38:30 -04:00
bdf * src/bdf/bdfdrivr.c (bdf_cmap_char_{index,next}): Fix inequality. 2019-06-26 20:18:00 -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 * src/cid/cidload.c (cid_hex_to_binary): Fix typo (#56653). 2019-07-22 09:49:22 +02:00
gxvalid Update all copyright notices. 2019-02-23 10:07:09 +01:00
gzip * Version 2.10.1 released. 2019-07-01 15:56:34 +02: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 * src/psaux/cffdecode.c (cff_operator_seac): Fix numeric overflow. 2019-08-26 20:36:19 +02: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 [woff2] Reconstruct loca', hmtx', and swap out stream. 2019-08-27 09:46:47 +02:00
smooth [smooth] Restore the span buffering for direct mode only. 2019-06-13 00:17:36 -04:00
tools * src/tools/apinames.c: Formatting, minor edits. 2019-06-16 16:04:12 +02:00
truetype [type1] Fix `FT_Get_Var_Axis_Flags' (#56804). 2019-08-26 09:08:56 +02:00
type1 [type1] Fix `FT_Get_Var_Axis_Flags' (#56804). 2019-08-26 09:08:56 +02:00
type42 [type1,type42] Use `const' for string literals. 2019-06-10 23:09:49 -04:00
winfonts [sfnt, winfonts] Avoid memory leaks in case of error (#56587). 2019-07-12 11:36:12 +02:00
Jamfile Update all copyright notices. 2019-02-23 10:07:09 +01:00