The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Debug info for boundaries

These changes was commited to the Birdfont repository Thu, 14 Jul 2016 12:00:47 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
author Johan Mattsson <johan.mattsson.m@gmail.com>
Thu, 14 Jul 2016 12:00:47 +0000 (14:00 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Thu, 14 Jul 2016 12:00:47 +0000 (14:00 +0200)
commit 8c73be6b3f6ad1e12cad3c6154b8a5a10efce66b
tree ead563721b93b03ebd3b9cda9924a141ba3f1a44
parent 9646ef0f904cbcabbc369f611a3ca489c214d148
Debug info for boundaries

libbirdfont/OpenFontFormat/GlyfTable.vala
libbirdfont/OpenFontFormat/HmtxTable.vala
--- a/libbirdfont/OpenFontFormat/GlyfTable.vala +++ b/libbirdfont/OpenFontFormat/GlyfTable.vala @@ -308,18 +308,22 @@ // save bounding box for head table if (glyf_data.bounding_box_xmin < this.xmin) { + printd (@"YMin in $(g.get_name ())\n"); this.xmin = glyf_data.bounding_box_xmin; } if (glyf_data.bounding_box_ymin < this.ymin) { + printd (@"YMin in $(g.get_name ())\n"); this.ymin = glyf_data.bounding_box_ymin; } if (glyf_data.bounding_box_xmax > this.xmax) { + printd (@"XMax in $(g.get_name ())\n"); this.xmax = glyf_data.bounding_box_xmax; } if (glyf_data.bounding_box_ymax > this.ymax) { + printd (@"YMax in $(g.get_name ())\n"); this.ymax = glyf_data.bounding_box_ymax; }
--- a/libbirdfont/OpenFontFormat/HmtxTable.vala +++ b/libbirdfont/OpenFontFormat/HmtxTable.vala @@ -161,7 +161,7 @@ } if (extent < 0) { - warning ("Negative extent."); + warning (@"Negative extent in $(gc.get_name ())."); } advance_width[nmetrics] = (uint16) extent;