Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing font size only for height or width

Status
Not open for further replies.

cypressm

Programmer
Jul 24, 2003
18
0
0
FR
Hi,

Is it possible to resize a font (like scalefont command), but only for the height or for the width of the font.

For example :
10 for the width of the font
20 for the height of the font

Thanks !
 
/Helvetica-Bold findfont [37 0 0 57 0 0] makefont setfont

Sets the height and width of a font
 
Sorry forgot to add

'/Courier findfont 3 scalefont setfont' scales the font to a pitch of 3

using this line

'/Helvetica-Bold findfont [37 0 0 57 0 0] makefont setfont' scales the font to whatever you set the 37 and 57 value to

Hope that helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top