View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000516 | luatex | luatex bug | public | 2010-11-17 23:01 | 2012-04-09 05:07 |
Reporter | phi | Assigned To | Taco | ||
Priority | normal | Severity | tweak | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Fixed in Version | 0.65.0 | ||||
Summary | 0000516: FontForge bug makes Cambria Math accents look bad | ||||
Description | A small bug in FontForge may lead to displacements when reading the AccentTop table, which makes accents in Cambria Math look wrong. Patch is attached. | ||||
Tags | math | ||||
|
fontforge-bug.patch (1,142 bytes)
Index: source/texk/web2c/luatexdir/luafontloader/fontforge/fontforge/parsettfatt.c =================================================================== --- source/texk/web2c/luatexdir/luafontloader/fontforge/fontforge/parsettfatt.c (revision 3963) +++ source/texk/web2c/luatexdir/luafontloader/fontforge/fontforge/parsettfatt.c (working copy) @@ -4954,13 +4954,14 @@ if ( glyphs==NULL ) return; fseek(ttf,start+4,SEEK_SET); - for ( i=0; i<cnt; ++i ) if ( glyphs[i]<info->glyph_cnt && info->chars[ glyphs[i]]!=NULL ) { - val = (int16) getushort(ttf); + for ( i=0; i<cnt; ++i ) { + val = (int16) getushort(ttf); + offset = getushort(ttf); + if ( glyphs[i]<info->glyph_cnt && info->chars[ glyphs[i]]!=NULL ) { if ( is_ic ) info->chars[ glyphs[i] ]->italic_correction = val; else info->chars[ glyphs[i] ]->top_accent_horiz = val; - offset = getushort(ttf); #ifdef FONTFORGE_CONFIG_DEVICETABLES if ( offset!=0 ) { DeviceTable *dv = chunkalloc(sizeof(DeviceTable)); @@ -4971,6 +4972,7 @@ info->chars[ glyphs[i] ]->top_accent_adjusts = dv; } #endif + } } free(glyphs); } |
|
patch applied in revision 3968. |
Date Modified | Username | Field | Change |
---|---|---|---|
2010-11-17 23:01 | phi | New Issue | |
2010-11-17 23:01 | phi | File Added: fontforge-bug.patch | |
2010-11-24 14:48 | Taco | Status | new => assigned |
2010-11-24 14:48 | Taco | Assigned To | => Taco |
2010-11-24 14:51 | Taco | Note Added: 0000660 | |
2010-11-24 14:51 | Taco | Status | assigned => resolved |
2010-11-24 14:51 | Taco | Resolution | open => fixed |
2010-12-13 14:43 | Taco | Fixed in Version | => 0.65.0 |
2010-12-13 14:43 | Taco | Status | resolved => closed |
2012-04-09 05:07 | Khaled Hosny | Tag Attached: math |