SCOUG-Programming Mailing List Archives
Return to [ 06 | 
July | 
2004 ]
<< Previous Message << 
 >> Next Message >>
 
 
 
Content Type:   text/plain 
Steven Levine wrote:  
>   
> You will also eventually run across dialog units.  These are  
> relative to the current font size and are intended to allow dialogs to be  
> designed with resolution independent code.  A horizontal dialog unit is  
> 1/4 the average character width and 1/8 the average character height.  
 
Why didn't the guy who created this just use the font metrics?  I mean,  
you've got the font so you know the metrics.  And the metrics have more  
resolution than 1/4*X and 1/8*Y.  
 
> >If the prtgraph GoTo command lets me set X and Y by TWIPS then I can kern  
>   
> This is how the GPI does it under the covers.  If the library supports it  
> you should be able to ask it to do most of the kerning for you.  The fonts  
> contain default kerning tables.  
 
PrtGraph/VRPrint doesn't appear to have any font interfacing other than  
the ability to choose a font from the list of those available.  Maybe  
there's a Rexx library somewhere that can do this, although I tend to  
just use the default Courier font.  I don't remember too much about how  
OS/2 fonts work; I think PrtGraph/VRPrint will use the system soft fonts  
rather than the printer's hard fonts which I use when writing PCL.  
 
Basically I just need to squeeze a variety of reports onto sheets of  
paper.  Most of this stuff is OS/2 Radio studio tracking and I'm tired  
of setting the margins differently for every report.  I'd rather just  
send the reports through a little program that determines the widest  
line and then sets the margins accordingly.  When the lines are "too  
wide" I just kern the letters closer together.  I suppose PostScript  
would be easier but I never learned it.  
 
Thanks for your help on this.  
 
- Peter  
 
 
 
=====================================================  
 
To unsubscribe from this list, send an email message  
to "steward@scoug.com". In the body of the message,  
put the command "unsubscribe scoug-programming".  
 
For problems, contact the list owner at  
"rollin@scoug.com".  
 
=====================================================  
 
  
<< Previous Message << 
 >> Next Message >>
Return to [ 06 | 
July | 
2004 ] 
  
  
The Southern California OS/2 User Group
 P.O. Box 26904
 Santa Ana, CA  92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group.  ALL RIGHTS 
RESERVED. 
 
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International 
Business Machines Corporation.
All other trademarks remain the property of their respective owners.
 
 |