summaryrefslogtreecommitdiff
path: root/src/luaotfload-auxiliary.lua
Commit message (Collapse)AuthorAgeFilesLines
* [aux] fix units lookup prevent crash with AFM fontsPhilipp Gesang2016-05-041-10/+16
| | | | | | | | | | | With the new loader, the ``units_per_em`` field resides under the toplevel TFM structure with the key ``units``. For AFM fonts, it is not fount under the metadata table too, which we are currently querying. Thus we prefer the main value, falling back on metadata only in case it is missing. At this occasion, tidy up our unit lookup helper and use that wherever we need access to the values ourselves.
* [aux] fix \fontdimen{10,114}Philipp Gesang2016-04-261-12/+11
| | | | | | | | Fix #341 Hironori Kitagawa pointed out that the patch for the other math parameters doesn’t work. Turns out Hans relocated the “mathconstants” table …
* [aux] actually pull capheight and ascender values from the correct tablePhilipp Gesang2016-04-261-7/+12
|
* [aux] probe multiple characters when guessing the capital heightPhilipp Gesang2016-04-261-4/+22
| | | | | Provide fallbacks in case no ‘X’ character is available for capheight measurement.
* [aux] fix \fontdimen8 hackPhilipp Gesang2016-04-261-31/+63
| | | | | | | | Addresses #341 This cleans up the font patching code we inherited from Fontspec. In addition to treating the bitrot with an extra dose of fungicide, we also make the process in which the final values are chosen more transparent.
* [aux] make name_of_slot API more robustPhilipp Gesang2016-04-241-2/+14
|
* [aux] make slot_of_name API more robustPhilipp Gesang2016-04-241-15/+22
|
* [aux] fix features table access (issue #338)Philipp Gesang2016-04-241-17/+59
| | | | | | | | | | | Fix #338 Due to the new loader, certain tables were relocated inside the fontdata structure. This would cause a crash with certain kinds of fonts, most notably those for which TeX metrics exist. Many thanks to @aminophen and @u-fischer for their help in tracking this down.
* [aux] make fontname substitution more robustPhilipp Gesang2016-04-191-2/+7
| | | | | | | | | Another take on https://github.com/lualatex/luaotfload/issues/334 The parsing issues we aim to prevent occur with spaces because Luatex treats them as argument separators. Hence apply quoting only if necessary. Also use the appropriate format string as a defense against garbage inputs.
* [aux] fix crash with tfm fontsPhilipp Gesang2016-04-191-1/+4
| | | | | | | Fixes https://github.com/lualatex/luaotfload/issues/334 Old-style font definitions only need a font name, so the extra quotes aren’t necessary to feed the \fontname string back into \font.
* [aux] fix crash in patching code that sets \fontdimen8Philipp Gesang2016-04-091-8/+13
| | | | | | | | | | Obviously, since Fontforge has been ditched, we need to adapt to the slightly different data structures created by the Lua reader. For the time being, we revise the code so it will not crash instantly due to the lack of a missing ``pfminfo`` table. Hans has been notified of our use of the ``capheight`` data and may add that value grudgingly again.
* [aux,init] move lazy char-def loading code into earlier stage of initializationPhilipp Gesang2016-04-091-126/+0
| | | | | | | | | | | | | | The fontloader requires parts of the ``characters`` table to be present at load time. This turns out to interfere with our custom of installing the lazy loader for the table components only after the fontloader has been injected. Since inserting the code at the appropriate place in the loading chain would be tedious and unmaintainable due to the various load options, we just preinstall the metatable onto an empty table prior to loading the loader. Some precautions had to be taken regarding the ``classifiers`` subhash of the table that needs to be relocated from the data we received via mkcharacters.
* [init] force preloading of the character tablePhilipp Gesang2016-04-081-4/+5
|
* [*] update dates, versionPhilipp Gesang2016-04-071-1/+1
|
* [auxiliary] move callback handling to initializationPhilipp Gesang2015-12-231-23/+58
|
* [aux] assimilate logger to conventionv2.6-fix-3Philipp Gesang2015-12-221-32/+32
|
* [aux] fix typo in function namePhilipp Gesang2015-11-291-1/+1
| | | | | Doesn’t seem like anyone is using these since this would’ve exploded immediately …
* [*] kill off file headersPhilipp Gesang2015-11-051-2/+0
| | | | We have the VCS info in the status file; these things are just silly.
* [aux] do not rely on the AGL being loaded at initialization timePhilipp Gesang2015-07-301-4/+3
|
* [*] bump version and datePhilipp Gesang2015-03-291-3/+3
|
* [main, aux] add a callback that installs a .resources table in fonts that itPhilipp Gesang2014-12-141-0/+29
| | | | | | | | | | | | | | Fixes https://github.com/lualatex/luaotfload/issues/253 Sort of. In order to not interfere with the other callbacks which expect a sane environment this hack got added by means of another callback that is called whenever a defined font lacks essential subtables. This means that the user must consider cases like numbers and partially defined fonts. It’s best to keep both cases separate so those who aren’t concerned with workarounds for weird fonts can stick with the clean interface.
* [auxiliary] eliminate redundant conditionsPhilipp Gesang2014-09-051-53/+47
|
* [auxiliary] robustify font property lookupsPhilipp Gesang2014-09-051-3/+9
| | | | | | | | | | This adresses an issue with entries in the font table that lack the common font structure (manually parsed fonts??). Subtable lookups are now guarded with nil-checks. Reported by Herbert Voss Signed-off-by: Philipp Gesang <phg42.2a@gmail.com>
* aux: add helpers for accessing the index table/index filePhilipp Gesang2014-06-041-2/+39
|
* [main] log name: requests independent of fontloaderPhilipp Gesang2014-05-181-2/+2
|
* [*] move source files to ./srcPhilipp Gesang2014-02-121-0/+783