View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000882 | luatex | luatex bug | public | 2014-01-26 22:00 | 2015-03-21 15:00 |
Reporter | phg | Assigned To | Taco | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Summary | 0000882: fontloader.info() does not include the names table | ||||
Description | fontloader.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 Information | Can be amended by adding one line to *SFFillFromTTFInfo() in parsettf.c, see attached patch. | ||||
Tags | No tags attached. | ||||
|
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 ); } |
|
patch applied, will be in next release |
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 |