[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

1935.0. "About 100 dpi fonts" by TKTV20::AIKO () Mon Dec 18 1989 05:05

I have a quetion about Xlib programing ...

I'd like to draw text using 100 dpi fonts.
XLoadFont rouine successfully executed, but I can't draw text.
Of course I installed '100 dpi fonts'.

Should I have any other things to do ?
Please tell me !!


							AIKO

T.RTitleUserPersonal
Name
DateLines
1935.1DECWIN::FISHERBurns Fisher 381-1466, ZKO3-4/W23Mon Dec 18 1989 12:174
What kind of error do you get?  Just no text appearing?  Do you get info back
on XQueryFont?

Burns
1935.2right?TKTV20::AIKOTue Dec 19 1989 06:2112
I received 'BadName' error and 'BadFont' error.

But my program is successfully executed after I defined the following symbol,

	decw$server_density == 100

Is this the right way to use 100 dpi fonts?
Is this the only way to use 100 dpi fonts?


								AIKO

1935.3STAR::MCLEMANJeff McLeman, VMS DevelopmentTue Dec 19 1989 07:082
The symbol you have shown instructs the server to register (load?) the
100 DPI fonts in addition to the 75 dpi fonts.
1935.4STAR::ORGOVANVince OrgovanTue Dec 19 1989 17:574
    See the instructions in sys$manager:decw$private_server_setup.com.
    There are also instructions in the VMS V5.3 Upgrade and Installation
    Procedures Manual in the chapter on starting and customizing 
    DECwindows. 
1935.5?TKTV20::AIKOWed Dec 20 1989 05:4312
>	The symbol you have shown instructs the server to register (load?) the
>	100 DPI fonts in addition to the 75 dpi fonts.

	You mean the definition of symbol isn't related to the execution of 
	program ? But my program can't run without this definition. 
	Or you want to say this is well-known way to use 100 dpi fonts ?


		
								AIKO

1935.6decw$server_density only applies to the serverSTAR::VATNEPeter Vatne, VMS DevelopmentWed Dec 20 1989 10:4425
>	You mean the definition of symbol isn't related to the execution of 
>	program ? But my program can't run without this definition. 
>	Or you want to say this is well-known way to use 100 dpi fonts ?

Let me make sure that I understand what you are doing.  Are you doing
something like:

$ decw$server_density == 100
$ run your_program

and the program runs correctly?  This is strange, because the symbol
is not used by any code or library on the client (application) side.

This symbol can only be used in DECW$PRIVATE_SERVER_SETUP.COM to tell
the server that it should use the 100 DPI fonts instead of the default
75 DPI fonts.  This file must be in SYS$MANAGER:, and it only takes
effect when the server is restarted (or the system is rebooted).  As
Vince suggests, your best bet is to read the VMS installation guide.

This is not the only way to use 100 DPI fonts.  Applications may also
use the XSetFontPath routine to specify the directory path used to look
for fonts.  Your application can explicitly specify the directories
containing the 100 DPI fonts.  However, I don't recommend this.  It
is better for your application to accept the default fonts, and then
to specify the correct density in DECW$PRIVATE_SERVER_SETUP.COM.