[luatex] italicangle -- int or float?

Philipp Gesang Philipp.Gesang at alumni.uni-heidelberg.de
Sat Nov 16 00:12:27 CET 2013


···<date: 2013-11-15, Friday>···<from: luigi scarso>···

> On Fri, Nov 15, 2013 at 11:07 PM, Philipp Gesang <
> Philipp.Gesang at alumni.uni-heidelberg.de> wrote:
> 
> > ···<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
> >
> 
> Can you put on the tracker ?

Done.
-------------- 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/20131116/cf71ee2b/attachment.bin>


More information about the luatex mailing list