🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #3623

Re: Code sample for Bolder bold fonts

#3623
From: Dick Dunn
Date: Thu, 15 Nov 1990 23:17
36 lines
2053 bytes
patrick@thomas.com (Patrick O'Shaughnessy) writes:
> Some time ago I posted a question about how to make a bold font bolder.
> The two methods most commonly suggested were to print the font some number
> of times sighltly offset or actually design a new font.

[explanation, PostScript code deleted]

Problem with that, as Patrick is aware, is that it fattens more in one
direction than another.  You can work in multiple directions--but that's
still rough, and somewhat painful.

Here's another way to go at it.  The trick is the ability to "outline" the
glyphs with charpath, and the fact that stroking that path will center the
line on the boundary of the character.  Thus, stroking a charpath will
extend the boundary outward by 1/2 linewidth.  This uniformly "fattens"
outward from the strokes.  If you overdo it, it's going to be ugly, but
that's true of any artificial emboldening.  An example "show bolder" proc
is:

%	Bshow - show artificially emboldened string in current font
/Bshow {			% string Bshow -
	currentlinewidth exch	% protect environment
		currentpoint
		2 index show	% normal display
		moveto		% back to start point
		1 setlinewidth	% (for sake of illustration)
		false charpath stroke
	setlinewidth		% restore
} def

The "1 setlinewidth" is just for the sake of a simple illustration; the
actual linewidth needs to be tied to the font size and degree of embold-
ening desired.
-- 
Dick Dunn     rcd@ico.isc.com -or- ico!rcd       Boulder, CO   (303)449-2870
   Cellular phones: more deadly than marijuana.
Technical Details
Message-ID: <1990Nov15.231721.2478@ico.isc.com>
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!ncar!ico!rcd
References: <1990Nov9.231314.9410@thomas.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!ncar!ico!rcd
From: rcd@ico.isc.com (Dick Dunn)
Newsgroups: comp.lang.postscript,comp.fonts
Subject: Re: Code sample for Bolder bold fonts
Summary: another approach
Keywords: fonts
Message-ID: <1990Nov15.231721.2478@ico.isc.com>
Date: 15 Nov 90 23:17:21 GMT
References: <1990Nov9.231314.9410@thomas.com>
Organization: Interactive Systems Corporation, Boulder, CO
Lines: 36