Debian Codegraph @

texk/ttfdump/ChangeLog

raw
1 2025-09-14 Karl Berry <[email protected]>
2
3 * configure.ac: version 0.5.6.
4 * docs/ttfdump.1: send reports to tex-k, not the original author.
5 * src/ttfdump.c: leading comments.
6
7 2025-09-14 Troy Rollo <[email protected]>
8
9 * src/ttfdump.c (main): remove incorrect heuristic that looked for
10 "ttc" anywhere in the filename. Instead, simply try opening as a
11 ttc first, then as a ttf if that failed. The ttc variable no
12 longer needs to be initialized. Report to tex-live list,
13 https://tug.org/pipermail/tex-live/2025-September/051769.html
14
15 2024-01-21 Karl Berry <[email protected]>
16
17 * libttf/hdmx.c (ttfLoadHDMX): calloc the number of widths that we
18 actually read, namely numGlyphs+1. I don't understand why this
19 is numGlyphs+1 and not numGlyphs, per
20 https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6hdmx.html
21 but since the program has always read numGlyphs+1, just leaving it.
22 Report from Dongzhuozhao, working with ADlab of Venustech,
23 https://bugs.launchpad.net/ubuntu/+source/texlive-bin/+bug/2047912
24 and also reported (with alternate fix) from attackoncs,
25 https://github.com/TeX-Live/texlive-source/pull/63.
26
27 2023-08-13 TANAKA Takuji <[email protected]>
28
29 * tests/ttfdump.test: Make easier to test on Windows.
30
31 2021-02-06 TANAKA Takuji <[email protected]>
32
33 * src/ttfdump.c, configure.ac:
34 Show TeX Live version number and bug report address in usage.
35
36 2019-02-26 Hironobu Yamashita <[email protected]>
37
38 * src/ttfdump.c: Forbid too long file name.
39
40 2017-06-24 Akira Kakuto <[email protected]>
41
42 * src/ttfdump.c: allow a suffix .TTC for ttc fonts.
43
44 2017-06-23 Hironobu Yamashita <[email protected]>
45
46 * src/ttfdump.c: avoid segmentation fault when the requested
47 ttc font is not found.
48
49 2016-07-15 Adrian Johnson <[email protected]>
50
51 * libttf/cmap.c,
52 * libttf/name.c,
53 * libttf/post.c: check for null before dereferencing in case
54 of missing cmap/name/post tables.
55 tex-live mail of 9 Jul 2016 18:17:16.
56
57 2015-07-07 Peter Breitenlohner <[email protected]>
58
59 * Makefile.am: Better dependencies for 'make check'.
60
61 2015-03-17 Peter Breitenlohner <[email protected]>
62
63 * include/ttc.h, libttf/ttc.c: Avoid segfault (NULL filename).
64 * tests/ttfdump.gasp, tests/ttfdump.maxp: Adapt.
65
66 2015-02-27 Peter Breitenlohner <[email protected]>
67
68 * ac/withenable.ac: Require kpathsea.
69
70 2015-02-24 Peter Breitenlohner <[email protected]>
71
72 * tests/ttfdump.test: Add a TrueType Collection test.
73 * tests/test.ttc (new): Additional test input.
74 * tests/ttfdump.gasp, tests/ttfdump.maxp (new): Expected output.
75 * Makefile.am: Adapted.
76
77 2014-12-10 Peter Breitenlohner <[email protected]>
78
79 * libttf/pclt.c: Repalce "%02hx" => "%02x" for unsigned char.
80
81 2014-06-16 Peter Breitenlohner <[email protected]>
82
83 * Makefile.am: Drop the obsolete ACLOCAL_AMFLAGS.
84
85 2013-06-30 Peter Breitenlohner <[email protected]>
86
87 * Include <config.h> first in all C files and never in headers.
88
89 2013-04-03 Akira Kakuto <[email protected]>
90
91 * src/ttfdump.c [KPATHSEA]: Recover #include <kpathsea/getopt.h>
92 for WIN32 to avoid compiling error.
93
94 2013-04-03 Karl Berry <[email protected]>
95
96 * src/ttfdump.c [KPATHSEA]: #include <unistd.h> rather than
97 <kpathsea/getopt.h>. Otherwise optarg is NULL on 32-bit MacOSX
98 and thus all options-with-arguments fail. Report and patch from
99 Dick Koch.
100
101 2013-02-01 Peter Breitenlohner <[email protected]>
102
103 * libttf/os2.c: Index checking for string array elements.
104 * tests/ttfdump.test: Add a test case for invalid array indices.
105 * tests/bad.otf (new): Additional test input.
106 * tests/ttfdump.bad (new): Expected output.
107 * Makefile.am: Adapted.
108
109 2013-01-31 Akihiro Sagawa <[email protected]>
110
111 * include/os2_P.h: Added missing commas to fix an ancient bug.
112
113 2012-11-19 Peter Breitenlohner <[email protected]>
114
115 * Makefile.am: Avoid use of deprecated INCLUDES.
116
117 2012-09-09 Peter Breitenlohner <[email protected]>
118
119 * include/tables.h, libttf/os2.c: Handle fields present only in
120 versions 1 and 2 of OS/2 table.
121 * tests/ttfdump.test: Add a test case for OS/2 table.
122 * tests/texmfhome.otf (new): Test input.
123 * tests/ttfdump.os_2 (new): Expected output.
124 * Makefile.am: Adapted.
125
126 2012-09-07 Peter Breitenlohner <[email protected]>
127
128 * include/protos.h: Move prototypes for functions in
129 libttf/stack.c from here ...
130 * include/stack.h: ... to this new (and unused) file.
131 * Makefile.am (EXTRA_DIST): Add the new file.
132
133 2012-07-14 Peter Breitenlohner <[email protected]>
134
135 * Makefile.am, configure.ac, include/ttf.h, include/ttfutil.h,
136 libttf/font.c, libttf/ttc.c, libttf/ttfutil.c, src/ttfdump.c:
137 Use libkpathsea instead of copying xmalloc() & Co (from W32TeX).
138
139 * tests/ttfdump.test [WIN32]: Also test binary mode for stdout.
140
141 2012-03-13 Peter Breitenlohner <[email protected]>
142
143 * include/ttfutil.h: Declare ttfError() with attribute noreturn.
144
145 2011-12-01 Peter Breitenlohner <[email protected]>
146
147 * libttf/otfcommon.c: Improved output strings.
148
149 * include/gpos.h, libttf/gpos.c: Support ValueRecords with
150 device parts (ppem dependent fine tuning).
151
152 2011-12-01 Peter Breitenlohner <[email protected]>
153
154 * include/gpos.h (new): GPOS table format.
155 * include/gsub.h (new): GSUB table format.
156 * include/otftables.h (new): OpenType common table formats.
157 * libttf/gpos.c (new): Load, print, and free GPOS table.
158 * libttf/gsub.c (new): Load, print, and free GSUB table.
159 * libttf/otfcommon.c (new): Handle common table formats.
160 * include/loadtable.h, include/tables.h, include/ttf.h,
161 libttf/font.c, src/ttfdump.c: Add GPOS and GSUB tables.
162 * Makefile.am (libttf_a_SOURCES): Add the new files.
163 * docs/ttfdump.1: Mention GPOS and GSUB tables.
164
165 * tests/ttfdump.test: Add tests for GPOS and GSUB tables.
166 * tests/ttfdump.{gpos,gsub} (new): Expected output.
167 * Makefile.am: Adapted.
168
169 2011-11-21 Peter Breitenlohner <[email protected]>
170
171 Additional 'cmap' SubTable Formats.
172 * include/tables.h: Declare data structures for 'cmap' SubTable
173 Formats 8, 10, 12, 13, and 14.
174 * libttf/cmap.c: Separate Encoding Records from SubTables;
175 several Encodings may refer to the same SubTable.
176 Add support for SubTable Formats 8, 10, 12, 13, and 14.
177 FIXME: Format 14 is not yet implemented.
178 * include/loadtable.h, include/ttf.h, libttf/glyf.c: Adapted.
179
180 2011-11-10 Peter Breitenlohner <[email protected]>
181
182 * include/tables.h, libttf/head.c: Print created and modified.
183 * libttf/font.c: Index to location ('loca') table is optional.
184 * libttf/loca.c: Avoid segfault for missing 'loca' table.
185 * src/ttfdump.c: Avoid segfault for missing 'loca' table (do not
186 try to print glyphs). Print sfnt version.
187
188 * tests/ttfdump.test: Perform all sub-tests and report failed ones.
189
190 2011-11-08 Peter Breitenlohner <[email protected]>
191
192 Major update.
193 * include/*, libttf/*, src/ttfdump.c: Drop <dmalloc.h> and vcid.
194 Copy or adapt xfseek(), xmalloc(), xcalloc(), and xstrdup() from
195 kpathsea. Add functions to allocate and/or read arrays.
196 Add FT_MAKE_TAG macro as used in freetype2. Drop unused funcs().
197 Require sizeof(int)==4. Fix various typos.
198 * configure.ac: Drop AC_C_BIGENDIAN, AC_CHECK_SIZEOF([long]),
199 and AC_CHECK_SIZEOF([long long]).
200 * Makefile.am: Adapt.
201 * docs/ttfdump.1: Fix typos.
202
203 2011-05-12 Peter Breitenlohner <[email protected]>
204
205 * tests/ttfdump.test: Use 'diff -b' for Dos line endings.
206
207 2011-05-04 Peter Breitenlohner <[email protected]>
208
209 docs/ttfdump.1, tests/ttfdump.test: Assume a posixly correct
210 getopt() without non-options followed by options.
211
212 2011-04-25 Peter Breitenlohner <[email protected]>
213
214 * tests/ttfdump.test (new): Shell script for a test case.
215 * tests/FonetikaDaniaIwonaeRegular.ttf (new): Test input.
216 * tests/ttfdump.{glyf,head} (new): Expected output.
217 * Makefile.am: Adapted.
218
219 2011-04-25 Peter Breitenlohner <[email protected]>
220
221 * libttf/tabledir.c: Fix typo "chechsum" -> "checksum".
222
223 2010-12-08 Peter Breitenlohner <[email protected]>
224
225 * configure.ac: Remove duplicate checks (done by KPSE_COMMON).
226
227 2010-02-20 Peter Breitenlohner <[email protected]>
228
229 * libttf/tabledir.c (ttfPrintTableDir): Use memcpy, not bcopy.
230 * src/ttfdump.c [WIN32]: Replace #include <kpathsea/getopt.h>
231 by #include <getopt.h>.
232
233 2009-10-30 Peter Breitenlohner <[email protected]>
234
235 * Makefile.am, configure.ac, ac/withenable.ac: Remove dependency
236 on kpathsea.
237
238 2009-08-23 Peter Breitenlohner <[email protected]>
239
240 Avoid maximal compiler warnings.
241 * include/os2_P.h: Constify all global string arrays.
242 * include/ttfutil.h, src/ttfutil.c: Constify param of ttfError().
243
244 2009-07-17 Peter Breitenlohner <[email protected]>
245
246 * cmap.c (ttfPrintCMAP4) cast USHORT/sizeof() to int for printing.
247 * cvt.c (ttfPrintCVT): cast USHORT*sizeof() to int for printing.
248
249 2009-06-18 Peter Breitenlohner <[email protected]>
250
251 * Makefile.am (AM_CFLAGS): enable compiler warnings.
252 * libttf/font.c (ttfCloneFont): not used.
253 * libttf/gcache.c (ttfInitCacheData): avoid ambiguous "cur = cur++".
254 (merge): only used #ifdef MERGEDELETE.
255 * libttf/stack.c (GetLONG): unused.
256 * libttf/tabledir.c (ttfCalcTableCheckSum): unused.
257 * src/ttfdump.c (dialog, add_suffix): unused.
258 (Strdup): declare as static.
259 (main): silence 'used uninitialized' warning.
260 avoid unused variables.
261
262 2009-06-03 Karl Berry <[email protected]>
263
264 * libttf/ttfread.c (ttfGetBYTE): do not make inline, just in case.
265
266 * include/ttf.h (ttfGetBYTE): replace [non-inline] definition
267 here with declaration, referring to the definition in
268 libttf/ttfread.c. Report from vvv, tlbuild 02 Jun 2009 23:48:52.
269
270 2009-05-27 Peter Breitenlohner <[email protected]>
271
272 Adapt to TL2009 build system.
273
274 2008-01-31 Peter Breitenlohner <[email protected]>
275
276 Convert from autoconf-2.13 to autoconf-2.59+:
277 * Makefile.in, libttf/Makefile.in, src/Makefile.in: Add
278 @configure_input@ lines.
279 * configure.in: Autoupdated.
280 * configure: Regenerated (autoconf).
281
282 Mon Jul 6 06:07:01 1998 Werner Lemberg <[email protected]>
283
284 * include/gcache.h,
285 include/gstate.h,
286 include/loadtable.h,
287 include/os2_P.h,
288 include/tables.h,
289 include/ttc.h,
290 include/ttf.h,
291 include/ttfutil.h,
292 libttf/os2.c,
293 src/Attic/action.c,
294 src/Attic/mkttfdir.c,
295 src/Attic/rasben.c:
296
297 action.c, mkttfdir.c, rasben.c are empty.
298
299 Correcting spelling errors, formatting.
300
301 Sat Jul 4 13:17:52 1998 Werner Lemberg <[email protected]>
302
303 * src/ttfdump.c,
304 Makefile.in,
305 include/ttc.h,
306 include/ttf.h,
307 libttf/Makefile.in,
308 libttf/tabledir.c,
309 libttf/ttfread.c,
310 src/Makefile.in:
311
312 Diffs from Nelson Beebe:
313
314 new target `check' for Makefile, `install' improved
315
316 #include <unistd.h> in ttf.h
317
318 ttfread.c: workaround for egcs bug
319
320 ttfdump.c: `int main' instead of `void main'
321 use of EXIT_SUCCESS and EXIT_FAILURE
322 added Strdup() since strdup() doesn't exist everywhere
323
324 formatting of ttfdump.c
325
326 Sat Jun 6 12:55:53 1998 Werner Lemberg <[email protected]>
327
328 * libttf/post.c: Oops! Not 26.6 but 16.16 format. Added comment.
329
330 * libttf/post.c: fixed overflow bugs and a wrong 26.6 number.
331
332 Sat Jan 4 19:23:56 1997 <[email protected]>
333
334 * libttf/cmap.c (ttfLoadCMAP6): Fixed a fatal bug cause segment fault
335
336 * src/ttfdump.c (main): add TrueType collection support
337
338 Fri Nov 29 15:34:29 1996 <[email protected]>
339
340 * ttfdump :
341 Unrecoverable disaster had happened. The old developing version was
342 destroyed during Red Hat Linux upgrading (it is my fault :~~(. ).
343 Resume to the public releease version.
344
345 Tue Sep 24 21:47:05 1996 Li-Da Lho <[email protected]>
346
347 * font.c (ttfInitFont): The final layer of abstraction is complete.
348 Application programs only need to do the fellowing things to use
349 True Type Font:
350 1. Load the font by calling ttfInitFont(char *font_filename)
351 2. choose a encoding scheme.
352 3. load the glyf by ttfLoadGlyphIndex or ttfLoadglyphCode
353 4. do anythings the application wants about the outline data
354 (i.e. rendering ,showing).
355 4. after all this, release the font by ttfFreeFont(TTFontPtr font).
356
357 * gcache.c: The implementation of glyph cache is completed. Start to
358 add the final layer of TTFont abstraction.
359 * glyf.c: It has been proved that av*.ttf is created by brain damaged
360 programmers. Lots of LOCA entries point to End Of File.
361
362 Benchmark: All Glyf data are loaded but not printed.
363 time ttfdump times.ttf >/dev/null
364 0.080u 0.000s 0:00.19 42.1% 0+0k 0+0io 91pf+0w
365 time ttfdump /mnt/dos/windows/fonts/dftt-fs.ttf > /dev/null
366 2.410u 0.560s 0:03.53 84.1% 0+0k 0+0io 70pf+0w
367 time ttfdump /mnt/dos/windows/fonts/dftt-sk5.ttf > /dev/null
368 2.850u 0.550s 0:03.95 86.0% 0+0k 0+0io 70pf+0w
369 time ttfdump /mnt/dos/windows/fonts/kai.ttf > /dev/null
370 1.920u 0.530s 0:02.85 85.9% 0+0k 0+0io 70pf+0w
371 time ttfdump /mnt/dos/windows/fonts/Dflihm.ttf > /dev/null
372 2.850u 0.460s 0:03.87 85.5% 0+0k 0+0io 70pf+0w
373
374
375 Thu Aug 1 21:11:36 1996 Li-Da Lho <[email protected]>
376 * glyf.c: composite glyph added but not completed yet,does not works
377 on av*.ttf any more but fine for others (is it a bug in av*.ttf or
378 my fault ??)
379 * glyf.c (ttfLoadGlyphIndex): removed the offset parameter
380 and add the glyphOffset entry in TTFont structure,which contain
381 the address of the start of glyf table, almost the same speed.
382
383 Tue Jul 30 08:37:59 1996 Li-Da Lho <[email protected]>
384
385 * post.c : created
386 add postscript information,format 2.0 ,2.5 not implemented yet
387
388 * Release Version 0.4:
389 Almost all required tables in True Type Font Specitication are
390 implemented, except "post", "OS/2" and format 2,4,6 of "cmap".
391 Composite glyph and instruction disassembler are not supported yet.
392 Works fine on times.ttf,dftt-fs.ttf, unexpected EOF on avbbv.ttf,
393 avov.ttf. (possible wrong ttf file)
394
395 There are still some possible memory leak, clean then up when
396 freezing stage.
397
398 Benchmark:
399 time ttfdump times.ttf > /dev/null
400 0.680u 0.020s 0:00.80 87.5% 0+0k 0+0io 94pf+0w
401 time ttfdump /mnt/dos/ttf/avov.ttf > /dev/null
402 276.210u 1.710s 4:50.43 95.6% 0+0k 0+0io 73pf+0w
403 time ttfdump /mnt/dos/windows/fonts/dftt-fs.ttf > /dev/null
404 27.440u 0.700s 0:29.49 95.4% 0+0k 0+0io 73pf+0w
405 time ttfdump /mnt/dos/windows/fonts/dflihm.ttf > /dev/null
406 105.400u 0.830s 1:49.17 97.3% 0+0k 0+0io 73pf+0w