freetype/include/freetype
Nikhil Ramakrishnan 1e02076815 [woff2] Avoid too many calls to `FT_REALLOC'.
We do this by using `totalSfntSize' as an initial reference, and
extending the buffer when required.  This reduces rendering time
considerably.

* include/freetype/internal/wofftypes.h (WOFF2_HeaderRec): Add
`totalSfntSize', rename `total_sfnt_size' to `actual_sfnt_size'.

* src/sfnt/sfwoff2.c (write_buf): Add parameter `dst_size' to keep
track of and update total size of stream.

(WRITE_SFNT_BUF, WRITE_SFNT_BUF_AT): Modify macros accordingly.

(pad4, store_loca, reconstruct_glyf, reconstruct_hmtx,
reconstruct_font): Update parameters to accept `sfnt_size'.

(woff2_open_font): Add variable `sfnt_size'.  Use WOFF2 header field
`totalSfntSize' as initial reference (if value makes sense) and
allocate `totalSfntSize' bytes for the sfnt stream.  `write_buf'
handles reallocation if and when required.  Also resize the stream
to `actual_sfnt_size' after reconstruction.
2019-08-27 09:50:48 +02:00
..
config Add Brotli dependency and required checks. 2019-08-27 09:09:48 +02:00
internal [woff2] Avoid too many calls to `FT_REALLOC'. 2019-08-27 09:50:48 +02:00
freetype.h * Version 2.10.1 released. 2019-07-01 15:56:34 +02:00
ftadvanc.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
ftbbox.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
ftbdf.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
ftbitmap.h * src/base/ftbitmap.c (FT_Bitmap_Blend): No fractional offsets. 2019-02-23 11:18:39 +01:00
ftbzip2.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
ftcache.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
ftchapters.h Make `/****...' comments in public headers uniformly end on column 77. 2018-09-04 08:00:58 +02:00
ftcid.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
ftcolor.h Another minor documentation improvement. 2019-08-06 20:38:17 +02:00
ftdriver.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
fterrdef.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
fterrors.h * Version 2.10.1 released. 2019-07-01 15:56:34 +02:00
ftfntfmt.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
ftgasp.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
ftglyph.h Doc polishing. 2019-06-22 22:54:57 -04:00
ftgxval.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
ftgzip.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
ftimage.h Doc polishing. 2019-06-22 22:54:57 -04:00
ftincrem.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
ftlcdfil.h Minor formatting. 2019-03-02 16:05:51 +05:30
ftlist.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
ftlzw.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
ftmac.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
ftmm.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
ftmodapi.h * include/freetype/ftmodapi.h (FT_DebugHook_Func): Return error. 2019-06-12 22:30:21 -04:00
ftmoderr.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
ftotval.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
ftoutln.h Doc polishing. 2019-06-22 22:54:57 -04:00
ftparams.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
ftpfr.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
ftrender.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
ftsizes.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
ftsnames.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
ftstroke.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
ftsynth.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
ftsystem.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
fttrigon.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
fttypes.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
ftwinfnt.h Minor. 2019-04-14 09:39:28 +02:00
t1tables.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
ttnameid.h Update all copyright notices. 2019-02-23 10:07:09 +01:00
tttables.h Minor doc fixes. 2019-02-25 06:32:26 +01:00
tttags.h Add structures for WOFF2. 2019-08-27 08:48:53 +02:00