History

always have a gap of one pixel - a few glyphs still go over the edge

Sigrid Solveig Haflínudóttir committed 2 years ago

Commit aabdbc11 parent 1ad72401 file · +7 −0Browse files

Unified · Split

rast.c+7−0
@@ -641,6 +641,13 @@ FIXME metrics (lsb+rsb) · 640 unmodified lines
641641 w = h = 1;
642642 baseline = 0;
643643 }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;
644651 xMin -= gap;
645652 yMin -= gap;
646653 xMax += gap;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t