View Issue Details

IDProjectCategoryView StatusLast Update
0000864luatexluatex bugpublic2013-12-20 18:30
Reporterphg Assigned ToHans Hagen  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Fixed in Version0.78.0 
Summary0000864: different italicangle in fontloader.open() and fontloader.info()
DescriptionThe “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 ReproduceNeeds 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 InformationReported on the mailing list http://tug.org/pipermail/luatex/2013-November/004635.html
TagsNo tags attached.

Activities

phg

2013-11-16 00:11

reporter  

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