View Issue Details

IDProjectCategoryView StatusLast Update
0000864luatexluatex bugpublic2013-12-20 18:30
Reporterphg Assigned ToHans Hagen  
Status closedResolutionfixed 
Fixed in Version0.78.0 
Summary0000864: different italicangle in and
DescriptionThe “italicangle” fields of the tables returned by and differ in type (float vs. int).
This is inconsistent with the manual which states that both values should be

Caused by do_ff_info() which uses dump_intfield() to copy the value.
See attached patch.
Steps To ReproduceNeeds a font with a non-integral italic angle:

file = "AntykwaTorunska-Italic.otf"
info = (file)
data = (file)
print(info.italicangle, data.italicangle)
Additional InformationReported on the mailing list
TagsNo tags attached.



2013-11-16 00:11


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);
luafflib.c.diff (541 bytes)   

Issue History

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