[luatex] italicangle -- int or float?
luigi scarso
luigi.scarso at gmail.com
Fri Nov 15 23:40:19 CET 2013
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 ?
--
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/luatex/attachments/20131115/29117e00/attachment.html>
More information about the luatex
mailing list