Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:siegel
rxvt-unicode
font-width-fix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File font-width-fix.patch of Package rxvt-unicode
Description: don't use g.width as a width of a character! instead use g.xOff, see e.g.: http://keithp.com/~keithp/render/Xft.tutorial --- src/rxvtfont.C.orig +++ src/rxvtfont.C @@ -1267,12 +1267,10 @@ rxvt_font_xft::load (const rxvt_fontprop XGlyphInfo g; XftTextExtents16 (disp, f, &ch, 1, &g); - g.width -= g.x; - int wcw = WCWIDTH (ch); - if (wcw > 0) g.width = (g.width + wcw - 1) / wcw; + if (wcw > 1) g.xOff = g.xOff / wcw; + if (width < g.xOff) width = g.xOff; - if (width < g.width ) width = g.width; if (height < g.height ) height = g.height; if (glheight < g.height - g.y) glheight = g.height - g.y; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor