On Sat, Aug 16, 2008 at 01:23:59PM +0200, Jehan wrote: > the change for utf-8 are pretty difficult because the functions are > messy and do a lot of stuffs, some of them I don't understand. > > Especially I have questions about fonts, because a lot lot of tests, > etc. are done to allocate the functions. And I think this is maybe > possible to simplify this all (then it will be easier to modify for me). > But for this I need to understand any line, so that I am sure not to > break a functionnality. So these are functional questions (rather than > programmation): > > 1/Can fonts change during the execution of mrxvt? Or is there supposed > to be one font for one instance of mrxvt? Or one font for each tab? Or > can there really be change of font in the same tab?
Yes. Pressing Ctrl+Plus/Minus changes them. Without Xft, it chooses from a list of 6 predefined fonts. With Xft it adjusts the size by some specified increment. > 2/ What is exactly the "bold" option for, with all this preprocessor > variable BOLDFONT. I don't really see where it is enabled or not (I > don't see this "feature" in the configure options). What does it do? Set > all your text in bold? BOLDFONT enables drawing bold characters using a different (presumably bold) font. Without Xft this font can be specified using -fb. With xft the font used is the same as the current font. The weight of the bold font can be specified using -xftbwt. > 3/ In xft, you have also 2 other kinds of fonts: xftpfont and > xftPfont. I did not understand what it is. They are to draw tab titles. IIRC xftpfont is a (presumably) proportionally spaced font to draw inactive tab titles. xftPfont is a (presumably) bold one for the active tab title. > 4/ Is a mfont/xftmfont really needed? I really don't see why we set a > different font depending on the fact that it is multibyte or not... On > my tests, it does strange things (for instance, I have french > characters with accents on 2 columns instead of one because in utf-8, > it uses 2 bytes). As far as I understood, font do not really depend on > the encoding (or at least, not this way). But maybe there is something > I haven't seen myself. So let you explain me. :-) I don't know squat about multichar stuff. Good luck. > 5/ I would be happy if you could explain me the functional > configuration of font in mrxvt. For instance what do you set exactly > in .mrxvtrc to change a font (in xft as well as in Xlib), to specify > maybe fonts for special cases (bold?..) and all other details about > font. But also directly on the command line, and other ways if any... > This way I will maybe better understand in the code how the fonts are > chosen. Here's the font options from my ~/.mrxvtrc # # Ugly X11 fonts # Mrxvt.font: -misc-fixed-medium-r-normal-*-18-*-*-*-c-*-iso8859-1 Mrxvt.font1: -misc-fixed-medium-r-normal-*-12-*-*-*-c-*-iso8859-1 Mrxvt.font2: -misc-fixed-medium-r-normal-*-13-*-*-*-c-*-iso8859-1 Mrxvt.font3: -misc-fixed-medium-r-normal-*-14-*-*-*-c-*-iso8859-1 Mrxvt.font4: -misc-fixed-medium-r-normal-*-15-*-*-*-c-*-iso8859-1 Mrxvt.font5: -misc-fixed-medium-r-normal-*-20-*-*-*-c-*-iso8859-1 # # Xft settings. As of mrxvt-0.5.0, Xft support is quite good, so use Xft by # default. # Mrxvt.xft: 1 Mrxvt.xftFont: Bitstream Vera Sans Mono Mrxvt.xftNomFont: 1 Mrxvt.xftAntialias: 1 Mrxvt.xftPFont: Bitstream Vera Sans Mrxvt.xftPSize: 8 GI -- What do you call a fish with no eyes? A fsh
pgp4ROgxwMSEV.pgp
Description: PGP signature
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Materm-devel mailing list Materm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/materm-devel mrxvt home page: http://materm.sourceforge.net