summaryrefslogtreecommitdiff
path: root/in_sfnt.c (follow)
Commit message (Collapse)AuthorAge
* Revamp of the Halibut error handling mechanism.Simon Tatham2012-08-29
| | | | | | | | | | | | | | | | I'm not quite sure why I ever thought it was a good idea to have a central variadic error() function taking an integer error code followed by some list of arguments that depend on that code. It now seems obvious to me that it's a much more sensible idea to have a separate function per error, so that we can check at compile time that the arguments to each error call are of the right number and type! So I've done that instead. A side effect is that the errors are no longer formatted into a fixed-size buffer before going to stderr, so I can remove all the %.200s precautions in the format strings. [originally from svn r9639]
* Turn the numeric parameter to err_sfntbadglyph from wchar_t toSimon Tatham2008-07-09
| | | | | | | | | | | | unsigned int, after a correspondent mentioned that DJGPP produces a very scary warning about integer promotion making use of the former in va_arg non-portable. Whether or not that's standards-justifiable, it's certainly the case that we were casting _to_ wchar_t from unsigned int in all cases of this error actually being used, so the simplest thing is just to transfer the number through va_arg as unsigned. [originally from svn r8112]
* Cope with TrueType fonts with slightly broken cmaps, just ignoring code pointsBen Harris2007-12-02
| | | | | | that can't be resolved (apart from warning about it). [originally from svn r7800]
* Recognise a couple more types of Unicode 'cmap'. Also fail if a format 4Ben Harris2007-12-02
| | | | | | 'cmap' refers to a character off the end of the glyphIndexArray. [originally from svn r7798]
* Cope with TrueType fonts that have duplicate glyph names by renaming glyphsBen Harris2007-02-13
| | | | | | | as necessary. The algorithm for ensuring that the new name is unused is partly Gareth's fault. [originally from svn r7277]
* Cope with TrueType fonts without a 'post' table or with a format 3 'post'Ben Harris2007-02-12
| | | | | | | table (which doesn't specify glyph names), constructing an arbitrary list of glyph names for ourselves. [originally from svn r7276]
* Presumed typo preventing compilation in r7269.Jacob Nevins2007-02-11
| | | | | [originally from svn r7270] [r7269 == 6c660b39aeae18c4652a48318bff3373bb535d92]
* Improved error handling in sfnt support. No more calls to abort()!Ben Harris2007-02-11
| | | | [originally from svn r7269]
* Add support for extracting kerning tables from 'kern' tables. Only format 0Ben Harris2007-02-10
| | | | | | | | | | (simple pair kerning) is supported, but with both Apple- and Microsoft-format headers. Also reference Microsoft's TrueType specification in comments, since I've used that to write some of this code. [originally from svn r7268]
* Now that glyph indices are exposed to bk_pdf.c, move CMap generation there,Ben Harris2007-02-10
| | | | | | since that seems closer to being where it belongs. [originally from svn r7262]
* Generate a "W" array for CIDFonts, since acroread seems to do very sillyBen Harris2007-02-10
| | | | | | things without one. [originally from svn r7261]
* Support for embedding TrueType fonts in PDF output. The code isn't the mostBen Harris2007-02-08
| | | | | | | | beautiful I've ever written, and xpdf turns out not to support the encoding mechanism I've chosen, but it works in GhostScript so I'm not too unhappy for now. [originally from svn r7259]
* Add support for extracting some global font metrics from the 'OS/2' tableBen Harris2007-02-07
| | | | | | | of fonts that have one. This should help with generating the FontDescriptor object in PDF. [originally from svn r7246]
* Make ps_token() more generally available and use it to improve the formattingBen Harris2007-02-06
| | | | | | of Type 42 fonts. [originally from svn r7245]
* Insert a missing (though strictly unnecessary) newline.Ben Harris2007-02-06
| | | | [originally from svn r7244]
* Tweak to Tye 42 font generation -- construct the CharStrings dictionaryBen Harris2007-02-06
| | | | | | rather more in PostScript and less in C. [originally from svn r7243]
* Construct a table for mapping glyph names back into glyph indices, for useBen Harris2007-02-06
| | | | | | | | when we come to embed TrueType fonts in PDF. Also provide functions for using this table and its inverse. Unrelatedly, support extracting the italic angle from the 'post' table. [originally from svn r7242]
* Correct a comment.Ben Harris2007-02-03
| | | | [originally from svn r7202]
* Quell some warnings from GCC.Ben Harris2007-02-03
| | | | [originally from svn r7201]
* When adding a new file, it helps to "svn add" it.Ben Harris2007-02-03
[originally from svn r7200]