<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Frank,<br>
<br>
Thank you! That did it... I'm not sure I would have figured this out on
my own!<br>
<br>
I had "LANG=en_US.UTF-8" set in my environment, which I picked up from
the default Ubuntu login setup. If I run "env LANG=C twm" or "env
LANG=en_US twm" the titlebuttons are scaled properly.<br>
<br>
Overcome by curiosity, I started twm under a debugger to see what it
was doing with the fonts, and I found this comment in util.c:<br>
<br>
<tt>/*<br>
 * The following functions are sensible to 'use_fontset'.<br>
 * When 'use_fontset' is True,<br>
 *  - XFontSet-related internationalized functions are used<br>
 *     so as multibyte languages can be displayed.<br>
 * When 'use_fontset' is False,<br>
 *  - XFontStruct-related conventional functions are used<br>
 *     so as 8-bit characters can be displayed even when<br>
 *     locale is not set properly.<br>
 */<br>
void<br>
GetFont(MyFont *font)<br>
{</tt><br>
<tt>...</tt><br>
<br>
When "use_fontset" is true, the ascent and descent values are
determined by the "max" ascent and descent of all the fonts in the set.
For example, in the case I was looking at, the "fixed" font was an
alias for 17 fonts, which included an "-arabic-newspaper-*" font that
has an ascent==24 and descent==11. When "use_fontset" is false, twm
does a straight-up by-name lookup of the font, which has an ascent==8
and descent==2.<br>
<br>
Finally, as you observed, the locale controls the setting of
"use_fontset":<br>
<br>
<tt>    loc = setlocale(LC_ALL, "");<br>
    if (!loc || !strcmp(loc, "C") || !strcmp(loc, "POSIX") ||<br>
        !XSupportsLocale()) {<br>
         use_fontset = False;<br>
    } else {<br>
         use_fontset = True;<br>
    }<br>
</tt><br>
Cheers, John D.<br>
<br>
Frank Steiner wrote:
<blockquote cite="mid:5642EEDC.70206@bio.ifi.lmu.de" type="cite">
  <pre wrap="">John DelSignore wrote

  </pre>
  <blockquote type="cite">
    <pre wrap=""> Hi,

I'm using twm on an Ubuntu 14.04 system, and for some reason depending
on the TitleFont I pick, the titlebuttons are much bigger than the
TitleFont. Below, I used the font "fixed" for the TitleFont, and the
titlebutton is much bigger than height of the font. Why is that happening?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Check your LC_CTYPE settings. When I use en_US.UTF-8 I get the same huge
titlebuttons while en_US works fine. Maybe it somehow depends of the font
you use, if it can handle utf8 encoding or not (just a guess).

cu,
Frank
  </pre>
</blockquote>
</body>
</html>