[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decwindows

Title:DECWINDOWS
Notice:DECwindows Motif V1.2-4 SSB kits: note 5519
Moderator:GRIM::MESSENGER
Created:Wed Nov 28 1990
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:5861
Total number of notes:24081

5832.0. "Matrix XLFD Enhancement assistance needed" by LNKUGL::D_HOHM (Sacred cows make great steaks) Tue Apr 29 1997 17:58

This is a cross posting from NOTED::MOTIF note 5958


A customer called the support center asking questions about the Matrix XLFD
Enhancement available with X11 R6 (for OpenVMS V7.1 in his case).

I can find very little information available anywhere on this.  It is
apparently briefly described in the Programmer's Supplement for Release 6,
Edited by Adrian Nye, ISBN 1-56592-089-9 in a chapter called "New Font 
Technology" by Nathan Meyers

I am hoping that someone has some experience with this and can provide some
assistance.

Question 1:
================================================================================
customer needs to create a fontset with both Iso-Latin and Multi-byte
characters and wants to use the Matrix XLFD Extension for font rotation
etc.

the Programmer's Supplement for Release 6, Edited by Adrian Nye,
ISBN 1-56592-089-9 has a chapter on "New Font Technology" by Nathan
Meyers, that describes the Matrix XLFD Enhancement and describes its use
with a fontstruct and uses the 'attributes' field for passing the new
information

the customer wants to know how to do the same thing using a fontset so that
he can use both ISO-Latn and Multi-byte characters in the same string


Question 2:
================================================================================
- When attempting to rotate the Background of a TextString under XLFD it
  does not rotate at all. The Foreground can be rotated, but the background
  never rotates.

We already have reproducer from and DECWindows Note # 5529.

The only change need to see the problem is to change the following line.

ORIGINAL Code.

   /* Change the window background */
   XSetWindowBackground ( XtDisplay ( TOP ), XtWindow ( GRAPH ), theBGpix
);

MODIFIED Code.

   /* Change the window background */
   XSetWindowBackground ( XtDisplay ( TOP ), XtWindow ( GRAPH ), theFGpix
);

This way the Textstring fg and bg colors are the same and the bg does not
match the fg.


Question 3:
================================================================================
- How to handle the large tangents as the results of trying to draw a
  rotated/matrix font at 90 degree's and or 270 degree's ?

The values are huge when selecting these angles.




Thanks for any help you can provide.

Dale Hohm
Digital Customer Support
(DTN)592-4039

T.RTitleUserPersonal
Name
DateLines