Unified · Split
| @@ -641,6 +641,13 @@ FIXME metrics (lsb+rsb) · 640 unmodified lines | |||
| 641 | w = h = 1; | 641 | w = h = 1; |
| 642 | baseline = 0; | 642 | baseline = 0; |
| 643 | }else{ | 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 | xMin -= gap; | 651 | xMin -= gap; |
| 645 | yMin -= gap; | 652 | yMin -= gap; |
| 646 | xMax += gap; | 653 | xMax += gap; |