On Sun, 10 Aug 2003 11:53:49 EDT, Jeff Abrahamson <jeff@xxxxxxxxxx> said: > Thanks, I was thinking something like this, but it seems the metric > information is wrong on one. That is, buttons displayed on one machine > look like normal, > > +----------+ > | button | > +----------+ > > on the other they get displayed all spread out like this: > > +--------------------+ > | b u t t o n | > +--------------------+ Well, they could still be different fonts.. remember that the XLFD spec has a 'width' field (third from the end)... soooo: % xlsfonts -fn "-*-*-*-r-normal-sans-*-140-100-100-*-*-iso8859-15" -b&h-lucida-bold-r-normal-sans-19-140-100-100-p-0-iso8859-15 -b&h-lucida-bold-r-normal-sans-20-140-100-100-p-127-iso8859-15 -b&h-lucida-medium-r-normal-sans-19-140-100-100-p-0-iso8859-15 -b&h-lucida-medium-r-normal-sans-20-140-100-100-p-114-iso8859-15 -b&h-lucidatypewriter-bold-r-normal-sans-19-140-100-100-m-0-iso8859-15 -b&h-lucidatypewriter-bold-r-normal-sans-20-140-100-100-m-120-iso8859-15 -b&h-lucidatypewriter-medium-r-normal-sans-19-140-100-100-m-0-iso8859-15 -b&h-lucidatypewriter-medium-r-normal-sans-20-140-100-100-m-120-iso8859-15 Widths of 114, 120, and 127. Let's look at that first font in detail - if you actually have a bad metric, it will show up in the 'bounds' list. Bad metrics *do* happen, but in over 15 years I've only seen 5-6 examples of that, so I'm guessing the 'avgWidth' is what's biting you.... (oh, and xlsfonts -lll (3 el's) will dump this info on a char-by-char basis...) % xlsfonts -ll -fn "-b&h-lucida-bold-r-normal-sans-19-140-100-100-p-0-iso8859-15" name: -b&h-lucida-bold-r-normal-sans-19-140-100-100-p-0-iso8859-15 direction: left to right indexing: linear rows: 0x00 thru 0x00 (0 thru 0) columns: 0x00 thru 0xff (0 thru 255) all chars exist: no default char: 0x0000 (0) ascent: 17 descent: 4 font type: Proportional (min and max widths not equal) bounds: width left right asc desc attr keysym min 5 -13 -10 -1 -12 0x0102 max 21 5 20 17 4 0x043c properties: 27 FOUNDRY b&h FAMILY_NAME lucida WEIGHT_NAME bold SLANT r SETWIDTH_NAME normal ADD_STYLE_NAME sans PIXEL_SIZE 19 POINT_SIZE 140 RESOLUTION_X 100 RESOLUTION_Y 100 SPACING p AVERAGE_WIDTH 121 CHARSET_REGISTRY iso8859 CHARSET_ENCODING 15 FONT -b&h-lucida-bold-r-normal-sans-19-140-100-100-p-121-iso8859-15 RAW_ASCENT 877 RAW_DESCENT 206 RAW_PIXEL_SIZE 1000 RAW_POINT_SIZE 723 RAW_AVERAGE_WIDTH 6263 X_HEIGHT 10 RAW_X_HEIGHT 516 CAP_HEIGHT 14 RAW_CAP_HEIGHT 723 WEIGHT 10 QUAD_WIDTH 13 RAW_QUAD_WIDTH 671
Attachment:
pgp00020.pgp
Description: PGP signature