[luatex] italicangle -- int or float?
Philipp Gesang
Philipp.Gesang at alumni.uni-heidelberg.de
Fri Nov 15 23:07:05 CET 2013
···<date: 2013-11-15, Friday>···<from: Philipp Gesang>···
> Hi all,
>
> there is an inconsistency between the “italicangle” values as
> returned by fontloader.info() and fontloader.open(). Both read
> from the same field of the splinefont record, but the former
> returns it using lua_pushinteger() whereas the latter uses
> lua_pushnumber().
Oops, that should have been dump_intfield() and dump_floatfield()
respectively.
> lua_pushnumber(). Since the manual states that a float can be
> expected in both cases, I suspect a bug.
Here is an example with a font that has a fractional italicangle:
file = "AntykwaTorunska-Italic.otf"
info = fontloader.info (file)
data = fontloader.open (file)
print(info.italicangle, data.italicangle)
Output:
-9 -9.5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://tug.org/pipermail/luatex/attachments/20131115/4e9512f3/attachment.bin>
More information about the luatex
mailing list