shithub: neatmkfn

Download patch

ref: bf0e3f1722bbeb9268bc009bdc7e4735a40176b5
parent: 7b11846c7e54082fec049cbb2bf554a249595fe9
author: Ali Gholami Rudi <ali@rudi.ir>
date: Mon May 28 13:08:46 EDT 2018

otf: ignore CFF table font bounding box

--- a/otf.c
+++ b/otf.c
@@ -1047,7 +1047,6 @@
 	void *chridx;		/* charstrings index */
 	void *charset;		/* charset offset */
 	int badcff;		/* invalid CFF SIDs */
-	int bbox[4] = {0};
 	int i, j;
 	if (U8(cff, 0) != 1)
 		return;
@@ -1081,11 +1080,6 @@
 			}
 		}
 	}
-	/* use font bbox for all glyphs */
-	cffdict_get(cffidx_get(topidx, 0), cffidx_len(topidx, 0), 5, bbox);
-	for (i = 1; i < glyph_n; i++)
-		for (j = 0; j < 4; j++)
-			glyph_bbox[i][j] = bbox[3 - j];
 }
 
 static void *otf_input(int fd)