View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000864 | luatex | luatex bug | public | 2013-11-16 00:11 | 2013-12-20 18:30 |
Reporter | phg | Assigned To | Hans Hagen | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Fixed in Version | 0.78.0 | ||||
Summary | 0000864: different italicangle in fontloader.open() and fontloader.info() | ||||
Description | The “italicangle” fields of the tables returned by fontloader.open() and fontloader.info() differ in type (float vs. int). This is inconsistent with the manual which states that both values should be floats. Caused by do_ff_info() which uses dump_intfield() to copy the value. See attached patch. | ||||
Steps To Reproduce | Needs a font with a non-integral italic angle: file = "AntykwaTorunska-Italic.otf" info = fontloader.info (file) data = fontloader.open (file) print(info.italicangle, data.italicangle) | ||||
Additional Information | Reported on the mailing list http://tug.org/pipermail/luatex/2013-November/004635.html | ||||
Tags | No tags attached. | ||||
|
luafflib.c.diff (541 bytes)
Index: luafflib.c =================================================================== --- luafflib.c (revision 4651) +++ luafflib.c (working copy) @@ -2538,7 +2538,7 @@ dump_stringfield(L, "familyname", sf->familyname); dump_stringfield(L, "fontname", sf->fontname); dump_stringfield(L, "fullname", sf->fullname); - dump_intfield(L, "italicangle", sf->italicangle); + dump_floatfield(L, "italicangle", sf->italicangle); dump_stringfield(L, "version", sf->version); dump_stringfield(L, "weight", sf->weight); |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-11-16 00:11 | phg | New Issue | |
2013-11-16 00:11 | phg | File Added: luafflib.c.diff | |
2013-12-20 18:30 | Hans Hagen | Status | new => closed |
2013-12-20 18:30 | Hans Hagen | Assigned To | => Hans Hagen |
2013-12-20 18:30 | Hans Hagen | Resolution | open => fixed |
2013-12-20 18:30 | Hans Hagen | Fixed in Version | => 0.78.0 |