On Wed, Jun 03, 2015 at 03:31:43PM -0500, "Estrada, Zachary J" <[email protected]> wrote: > It looks like I cannot get the letter spacing to update dynamically using > the escape sequence:
Makes sense, the resource will be ignored - have you tried the letterSpace method from my first reply that sets the internal letterSpace value? > Also, I couldn't get the rxvtperl.xs to work, even with the blank lines. I'm > using "$term->set_fonts();" to access it, is there something else I should > be diong? > --- > urxvt: Can't locate object method "set_fonts" via package "urxvt::term" at > (eval 14) line 4. Sorry, my fault - putting it at the end puts it into the urxvt::pixbuf package. Try this patch: http://ue.tst.eu/8df5f9d6ea91621d388005ad4e0fb21b.txt > I was wondering if there's a better way to achieve this goal. Ideally, I > would use the dimensions of the window to calculate the maximum font size > and appropriate spacing for a given width. I've been attempting this brute > force solution since I thought it would be easier to implement, but maybe > I'm mistaken - is there a better approach I could take? I hope I understand you correctly. urxvt itself only knows the exact size when it gets the base fontset and calculates its size from there. "Guessing" in advance what font size is the right one is going to be hard, you'd have to copy how urxvt sizes the grid cell, and for xft fonts, this could become rather complicated (well, its already going to be complicated with core fonts). OTOH, you can specify transformation matrices and similar things for xft fonts, maybe you should look into this. With a suitable font, you might be able to calculate the font size and letterspacing in advance. It's not going to be easy, though. -- The choice of a Deliantra, the free code+content MORPG -----==- _GNU_ http://www.deliantra.net ----==-- _ generation ---==---(_)__ __ ____ __ Marc Lehmann --==---/ / _ \/ // /\ \/ / [email protected] -=====/_/_//_/\_,_/ /_/\_\ _______________________________________________ rxvt-unicode mailing list [email protected] http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode
