new font-switcher Perl extension
Adam Spiers
rxvt-unicode at adamspiers.org
Wed Jan 21 20:25:45 CET 2009
On Wed, Jan 21, 2009 at 01:48:16PM -0500, Aron Griffis wrote:
> Adam Spiers wrote: [Wed Jan 21 2009, 08:42:54AM EST]
> > I knocked up a quick font-switching extension to allow
> > switching of fonts on the fly via keyboard shortcuts - see
> > attached.
>
> Nice! It doesn't quite work for me because I set both "font" and
> "boldFont" in my resources. I see in urxvt(7)
>
> Ps = 710 Set normal fontset to Pt. Same as Ps = 50.
> Ps = 711 Set bold fontset to Pt. Similar to Ps = 50
>
> However I'm not sure how this should be integrated into the
> |-separated fontlist you created. Ideas?
I guess you'd need a separate, parallel resource:
URxvt.font-switcher-bold-list
where if the nth item of URxvt.font-switcher-list is selected for
normal text, the nth item of URxvt.font-switcher-bold-list would be
used for bold text. Or is there a cleaner way? Another possibility
would be to "rotate" the matrix of fonts, e.g.
URxvt.font-switcher-1: myfont1:myboldfont1
URxvt.font-switcher-2: myfont2:myboldfont2
URxvt.font-switcher-3: myfont3:myboldfont3
etc.
More information about the rxvt-unicode
mailing list