[comp.windows.x] R4 xmh oval button mangling

casey@gauss.llnl.gov (Casey Leedom) (01/14/90)

VERSION:
    R4

CLIENT MACHINE and OPERATING SYSTEM:
    Sun 3/60 running SunOS 3.5 (probably not relevant)

DISPLAY TYPE:
    bwtwo0 resolution 1152 x 900 (probably not relevant)

WINDOW MANAGER:
    R3 uwm (still working on getting R4 up) (probably not relevant)

AREA:
    mit/clients/xmh
    mit/lib/Xaw/MenuButton.c
    mit/lib/Xmu/ShapeWidg.c

SYNOPSIS:
    Xmh mangles certain oval buttons ...

DESCRIPTION:
    I'm using a custom default font (*Font) with the following
    properties:

	STARTFONT 2.1
	FONT 7x13-casey
	SIZE 13 80 80
	FONTBOUNDINGBOX 7 13 0 -3
	STARTPROPERTIES 4
	FONT_ASCENT 10
	FONT_DESCENT 3
	DEFAULT_CHAR 32
	COPYRIGHT "casey"
	ENDPROPERTIES
	CHARS 96

    Individual characters look like the following:

	STARTCHAR H20
	ENCODING 32
	SWIDTH 484 0
	DWIDTH 7 0
	BBX 7 13 0 -3
	BITMAP
	... (13 lines of glyph rows)
	ENDCHAR

    Xmh uses this font for its button labels.  When one of those labels
    is one character wide, only the left half of oval button outline and
    the character label are displayed, although placement of the
    surrounding buttons indicates the the button spacing was calculated
    from the full width of the button.

    I don't see this problem (with the buttons I happen to have) when
    I use the misc/6x13 font.  (I was assuming that I would start seeing
    the problem with two character buttons, but instead didn't see any
    problems.)

REPEAT BY:
    Probably difficult without a copy of my font.  I'm willing to send
    it to people via email, but I don't want to fill everyone's mailbox
    with a copy of my font (11539 bytes).  I'm using all the standard
    xmh defaults

SAMPLE FIX:
    I think that the bug is in mit/lib/Xmu/ShapeWidg.c in the function
    ShapeOval(), but I don't know X11 well enough to really understand
    anything that I see there.