View Issue Details

IDProjectCategoryView StatusLast Update
0000882luatexluatex bugpublic2015-03-21 15:00
Reporterphg Assigned ToTaco  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Summary0000882: fontloader.info() does not include the names table
Descriptionfontloader.info() should return the names table as advertised in the manual.
It doesn’t, though, because the table is not copied when reading the font.

The issue exists both in the current trunk (r4760) and the experimental branch.
Steps To Reproduce#!/usr/bin/env texlua

local dump = function (fname)
  local f = fontloader.info (fname)
  if not f then
    return false
  end
  print ("the font " .. (f.names and "has" or "lacks") .. " a names table")
  return true
end

return arg [1] and dump (arg [1]) or print "argument must be a font file name"

Additional InformationCan be amended by adding one line to *SFFillFromTTFInfo() in parsettf.c, see attached patch.
TagsNo tags attached.

Activities

phg

2014-01-26 22:00

reporter  

parsettf.c.patch (319 bytes)   
Index: parsettf.c
===================================================================
--- parsettf.c	(revision 4760)
+++ parsettf.c	(working copy)
@@ -6041,6 +6041,7 @@
 	free( info->weight );
     sf->version = info->version;
     sf->italicangle = info->italicAngle;
+    sf->names = info->names;
 
 return( sf );
 }
parsettf.c.patch (319 bytes)   

Taco

2014-01-27 13:32

administrator   ~0001221

patch applied, will be in next release

Issue History

Date Modified Username Field Change
2014-01-26 22:00 phg New Issue
2014-01-26 22:00 phg File Added: parsettf.c.patch
2014-01-27 13:32 Taco Note Added: 0001221
2014-01-27 13:32 Taco Status new => resolved
2014-01-27 13:32 Taco Resolution open => fixed
2014-01-27 13:32 Taco Assigned To => Taco
2015-03-21 15:00 Hans Hagen Status resolved => closed