×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Changing font weight in Postscript

Changing font weight in Postscript

Changing font weight in Postscript

(OP)
How can I change the weight of a font within a postscript document? I don't mean changing the font SIZE, like 12 point, but changing the thickness of the strokes making up the letter?

Thanks

RE: Changing font weight in Postscript

Hi flash3433,

You could use something like:

CODE

Helvetica findfont [15 0 0 12 0 0] makefont
This would give you the quivalent of 15pt wide Helvetica text that is only 12pt high.

Cheers

[MS MVP - Word]

RE: Changing font weight in Postscript

(OP)
Yes, I use that now. But it results in distortions if the dimensions are too different in size. I want something that uniformly changes the weight of the strokes. What are the other zero's for in the

[15 0 0 12 0 0] makefont

command?

RE: Changing font weight in Postscript

Hi flash3433,

Quote:

What are the other zero's for
This is all standard transformation matrix stuff defined in the Adobe
PostScript Language Reference Manual, 3rd Ed (Red Book) (aka PLRM).

makefont uses a six-element matrix, for which the:
.1st element defines the height
.2nd element defines the amount of rotation
.3rd element defines the obliqueness (italics)
.4th element defines the width
.5th element defines the vertical offset
.6th element defines the horizontal offset

If makefont doesn't do what you want, you could try the techniques outlined
in the PRLM for 'Achieving Special Graphical Effects'. Depending on what
fonts you're using, you may be able to alter the stroke width - but note
that this will increase the height too, so you may need a combination of
this and makefont.

There are some potentially useful examples in the PostScript Language
Tutorial and Cookbook (Blue Book) too.

Cheers

[MS MVP - Word]

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close