Description of problem: I use "xterm -fa Anonymous". After a recent upgrade of xterm, when I use Ctrl and Right Mouse Button to select another font size than default, such as Small, the font size used is gigantic. Version-Release number of selected component (if applicable): xterm-223-1.fc6 How reproducible: Use "xterm -fa anytruetypefont". Use Ctrl and Right Mouse Button to select another font size than default, such as Small. Actual results: GIGANTIC font. Expected results: A slightly smaller font.
Thanks for the report. CCing upstream xterm maintainer. This has changed in xterm-217. Problem is that menu_font_size[0] is 0 when computing face_size in xtermComputeFontInfo(). The size is also incorrect when shifting with control sequences, but is correct with {smaller,larger}-vt-font().
It sounds (will check) as if I made it work for the shifted keypad plus/minus, but overlooked something in the direct menu-selection. (I recall doing that before - the initialization is almost the same but not exactly).
Something like this is needed (will check further, but thought this might be helpful): RCS file: RCS/fontutils.c,v retrieving revision 1.219 diff -u -r1.219 fontutils.c --- fontutils.c 2006/11/29 21:57:00 1.219 +++ fontutils.c 2007/01/15 01:20:08 @@ -1493,6 +1493,7 @@ * but this is simpler than adding another resource value - and * as noted above, the data for the fixed fonts are available. */ + lookupOneFontSize(screen, 0); lookupOneFontSize(screen, fontnum); if (fontnum == fontMenu_fontdefault) { face_size = 14.0;
Thanks. There is another problem with the escape sequence when used with -fa option, the font size is changed only once, other attempts are unsuccessful.
hmm: I don't see this discussing escape sequence, but thought it was for the popup menus. Those seemed to work more than once (though I only tried 2-3 times after the initial change). Can you provide more details?
It was for the popup menus, I just wrote in comment #1 that the bug was also triggered with control sequence (OSC 5 0). The comment #4 is about another, unrelated problem that I have noticed when testing the patch. When -fa option is used, the font size can be changed with the OSC control sequence only once.
thanks - I'll take a look at that (sounds like something simple)
Created attachment 145764 [details] several fixes for font-switching
I have several other items on my list for #224 (it would be nice to get some feedback on this in the next week or so).
Thanks. The patch is in xterm-223-2.fc6.
I've downloaded xterm-223-2.fc6 from updates-testing and I can confirm that the bug I reported is fixed. Thanks to both of you!