Oct 22, 2004 #1 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 !
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 !
Oct 22, 2004 #2 popalu Programmer Apr 8, 2004 31 0 0 GB /Helvetica-Bold findfont [37 0 0 57 0 0] makefont setfont Sets the height and width of a font Upvote 0 Downvote
Oct 22, 2004 #3 popalu Programmer Apr 8, 2004 31 0 0 GB 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 Upvote 0 Downvote
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
Oct 22, 2004 Thread starter #4 cypressm Programmer Jul 24, 2003 18 0 0 FR Thanks a lot, I'm going to test that. Upvote 0 Downvote
Oct 22, 2004 #5 tgreer Programmer Oct 4, 2002 1,781 0 0 US You can also use "scale" non-uniformly to alter the entire graphics state. For example, to set a 10-point font at 2x width: Code: /Courier 10 selectfont 10 10 moveto gsave 1 2 scale (Test) show grestore Thomas D. Greer http://www.tgreer.com Providing PostScript & PDF Training, Development & Consulting Upvote 0 Downvote
You can also use "scale" non-uniformly to alter the entire graphics state. For example, to set a 10-point font at 2x width: Code: /Courier 10 selectfont 10 10 moveto gsave 1 2 scale (Test) show grestore Thomas D. Greer http://www.tgreer.com Providing PostScript & PDF Training, Development & Consulting