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

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

56.0. "Font inquiry and/or manipulation " by LDP::GABRIEL (Daylight come an me wanna go home) Fri Jan 27 1989 15:25

    
    I am looking for a way to do the following in either XLIB, XIntrinsics,
    or DECwindows Toolkit:
    
    	Call some proceudre/functions that will return the font name
    	(and/or load it) based on a set of given characteristics.  For
    	example, "16 point, italic, roman" returns/loads font_type_xxx
        as this is the closest match.  If the font doesn't exist, somehow
    	"massage" the current font to become what I want.
    
    The customer claims that MS Windows supports this type of feature.
    I have tried to explain that XListFontsWithInfo might be a good
    start as it accepts wildcards, but this was call was not suitable.
    
    Is there anything else I can suggest ????
    
    Thanks,
    
    -joe
    
    
    	

T.RTitleUserPersonal
Name
DateLines
56.1You had it right...IAGO::SCHOELLERWho's on first?Fri Jan 27 1989 15:5713
Joe,

you had it right.  You can call XListFonts with the fields that
they are interested in filled in.  This will tell you what fonts qualify.
You would then use XLoadQueryFont to grab a font which satisfies your
requirements. In addition, if there are some characteristics they don't want 
varied, you can default these.

It is unclear to me why your customer would think that the X routine
was inappropriate.  Could you expand a little?

Dick

56.2My understandingLDP::GABRIELDaylight come an me wanna go homeFri Jan 27 1989 16:1015
    
    Dick,
    
    They told me that's not how they do it with MS windows.
    XListFontsWithInfo also doesn't have some of the other capabilities
    I specified (scaling current font, etc).  I talked to the programmer
    himself and he said his boss uses MS-Windows currently and wants to see
    the same functionality with fonts in DECwindows.  
    
    They don't want to write their own function to do this, they want
    the software (namely DECwindows) to do it for them.  
    
    -joe
     

56.3Still not real clearIAGO::SCHOELLERWho's on first?Fri Jan 27 1989 16:3410
Joe,

So, do you mean that they want a program which tells them which fonts are
out there?  Or do you mean that they want our applications to have a font
selector capability?  Or do you mean that they want a routine supplied with
DECwindows which has exactly the same coding format as a routine supplied with
MS windows?

Dick

56.4How's this LDP::GABRIELDaylight come an me wanna go homeFri Jan 27 1989 16:5214
    
    They would like to see a program/function that can be called
    from their application that asks DECwindows to list/load a
    font based on certain criteria (such as point size, italics,etc).
    If the EXACT font does not exist, they want the same program/function
    to manipulate the current font to match the criteria specified.
    They want the *functionality* of the MS-Windows routines that do this
    exact thing, not necessarily the same syntax.
    
    -joe
    
   
    

56.5IAGO::SCHOELLERWho's on first?Mon Jan 30 1989 09:298
The first part is definitely there in the routines discussed previously.

Since there is no capability to manipulate (ie: scale, rotate) fonts on the
fly, the second part would be difficult to impossible.  It might be reasonable
to try something which would give a best fit (ie: 12 point when 13 requested).

Dick

56.6Resize fonts ?STKHLM::LHOLMSTROMLars Holmstr�m SWAS @SOOThu Jun 29 1989 08:0612
	Hello !

	A major customer of us have a small (?) problem.
	They want a font in DECWindows of about 20x9 pixels (HxW).
	The font should be used both for their own applications as well
	as for DECterm's and VAXPC.

	Is there a way to achieve this ?

								Lars