History

fix advance for monospace fonts

Sigrid Solveig Haflínudóttir committed 3 years ago

Commit a334fd21 parent 8909b7a1 file · +3 −1Browse files

Unified · Split

ttfs.c+3−1
@@ -306,7 +306,9 @@ usage: · 305 unmodified lines
306306 continue;
307307 }
308308
309− advance = MAX(g->w, MAX(maxx-minx, advance));
309+ // this would make sure glyphs always fit, but it also
310+ // makes some monospace fonts not actually have a fixed width
311+ //advance = MAX(g->w, MAX(maxx-minx, advance));
310312
311313 if(w < dst.x+advance || h < g->h){
312314 SDL_Surface *bigger;

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