Unified · Split
| @@ -641,6 +641,13 @@ FIXME metrics (lsb+rsb) · 640 unmodified lines | ||
| 641 | 641 | w = h = 1; |
| 642 | 642 | baseline = 0; |
| 643 | 643 | }else{ |
| 644 | + /* | |
| 645 | + * very rarely a glyph will have one of its segments | |
| 646 | + * go over the edge because of imprecise arithmetic. | |
| 647 | + * it's much easier to solve this by always having a small gap. | |
| 648 | + */ | |
| 649 | + if(gap < 1) | |
| 650 | + gap = 1; | |
| 644 | 651 | xMin -= gap; |
| 645 | 652 | yMin -= gap; |
| 646 | 653 | xMax += gap; |