···<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

Attachment: pgpOqKo1j2UZ_.pgp
Description: PGP signature

Reply via email to