> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ... > > Trying gvim-gtk2 and gvim-motif on Linux system (I didn't try > > other gui's but I could if needed) I found the > > following differences I am not able to say if they are > > correct or not: > > Not surprising, GTK 2 uses completely different font names. >
I know and do use appropriate font names....howgh! :-) > > - :set guifont=* > > .. select the font from the font selector that pops up > > .. and observe that: > > . in gtk2, the 'guifont' will be set to the choice > > . in motif it will not be (guifont will stay set to '*') > > Comment: I found very convenient to see to what it is set to > > because I can than copy&paste it to .gvimrc > > so I like gtk2 behavior. > > Could motif be made to behave the same way? > > What about other gui's? > > Perhaps 'guifont' can be set to the selected font. It's not easy > though, there are a lot of fall back mechanisms. > For TODO then? Would be useful. > > - in both: when I enter :set guifont=* for the first time, > > make no selection click OK, and repeat the command, > > the choice displayed the first and the second time will be very > > different. From then on the display will always be like the > > second time. Repeatable. > > Why? > > Vim tries to set the default to the currently selected font. Because > X11 font names are weird this doesn't always work properly. > They are weird, indeed. Maybe a word or two in the doc would prevent me asking :-)?? > > - Question: > > I have different settings of guifont (list of fonts) for gtk2, > > motif, X11, win32, etc. When I startup gvim, I don't > actually know, > > which font has been picked up for a given choice of gui (which > > element in the guifont list) or maybe one that is not in the > > list when none in the list exists on the platform I am running. > > This is really painful and time consuming to find out what needs > > to be changed for a given O/S platform to get a pleasing display. > > If you move from platform to another often it becomes a headache. > > So: is there or could we have a way to actually display the > > font definition which has been chosen? > > like :set thisguifont? > > Not in general, the GUI library often does things we don't know about. > Especially when you have an incomplete font name (with "*" in X11 font > names) and when you change 'encoding'. For X11 there are > also fontsets, > thus a list of font names. > I see, that's too bad, not nice as it is (in gui's). > > - perhaps unrelated question: > > using colorscheme 'xterm16', I find very striking differences > > in highlightings between motif and gtk2 gui. Motif could be > > called "beautiful" while gtk2 "lousy" at best. > > Is there any coherent explanation to this? > > Depends on how the colors are defined: with names or RGB values. With > RGB values they should be the same. > OK, will have to look at that, thanks for the idea. Cheers, ---Zdenek
