[comp.windows.open-look] OL glyph font problem

doug@crdgw1.ge.com (Doug Becker) (11/13/90)

I'm trying to write an XView application that uses 160-decipoint
Lucida (-b&h-lucida-medium-r-*-*-*-160-*-*-*-*-*-*) as its control
font.  Unfortunately, it appears that the OPEN LOOK glyph fonts are
provided in fb (i.e. unscalable bitmap) format in 100, 120, 140 and
190 decipoint sizes ONLY, and XView is insisting that the glyph font
be opened in the same size as the Lucida font (160).  This causes a
fatal XView error:

XView warning: Cannot load font '-sun-open look glyph-----*-160-*-*-*-*-*-*' (Font package)
XView error: Unable to find OPEN LOOK glyph font (Panel package)

I RTFMed, but couldn't find anything that allows me to arbitrarily
scale an fb font (short of redesigning the OPEN LOOK glyph font myself
using a font editor -- yecch), or anything that would convince XView
to use a different-size glyph font than the point size of the font
used for the controls.  Is there a particular reason that OLGlph isn't
provided as an F3 (scalable outline) font, like the Lucida family is?
How can I design a panel with 160-decipoint Lucida as its control
font?

--

Douglas H. Becker
doug@nmri.GE.COM
{somewhere}!crdgw1.GE.COM!sane!doug

barrya@scout.East.Sun.COM (Barry Andreasen - Sun BOS Hardware) (12/15/90)

I have been trying to develop some tools for work that I am doing but found certain
limitations in the xview capabilities that I would like to overcome.  The O'Reilly
Xview Programming Manual seems to only be moderately complete and high level, so
I haven't been able to find solutions through research.  

What I would like to do and the problems I am experiencing are:

  * dynamically allocate/deallocate choice buttons - when I deallocate a button, it
does not go away.  I have managed to remove the string (which makes it small in my
case).  I have also decreased the PANEL_CHOICE_NCOLS value, but that causes it to be 
placed on a new row.
  * create choice buttons strings using user input - buttons become much too large
and there does not seem to be a way to attach 'continuation arrows' (as with text 
fields).  If I truncate the user input, I then need to store it in its entirety 
elsewher for future reference.
  * get notified on the 'selection/focus' of a window (ie. a single left button
click in a window border - creates a bold corder line) - I have tried most of
the events listed in the Xview Programming Manual, but none of them worked.  Is
there some sort of atomic level that I need to know to do this type of handling?
  * is there some sort of way to associate other data with a xview object that is 
application dependent?

Thanks.
barry andreasen
barrya@scout.east.sun.com