Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

cheap man's boldface? via overstrike?

3 views
Skip to first unread message

ivo welch

unread,
Sep 3, 2003, 8:19:57 PM9/3/03
to
hi: I have a font (lucida casual) that appears not to come in
boldface. Is there a macro that overstrikes each character in its
argument, just a little bit to the side, so as to give it a bolder
impression?

help appreciated. regards, /iaw

Scott Pakin

unread,
Sep 3, 2003, 9:23:12 PM9/3/03
to
ivo welch wrote:
> hi: I have a font (lucida casual) that appears not to come in
> boldface. Is there a macro that overstrikes each character in its
> argument, just a little bit to the side, so as to give it a bolder
> impression?

Yes. amsmath provides a \pmb ("poor man's bold") macro that does
exactly that. I don't know how well it works in text mode, though.

-- Scott

ivo welch

unread,
Sep 5, 2003, 2:45:17 PM9/5/03
to
Scott Pakin <pa...@uiuc.edu> wrote in message news:<3F569400...@uiuc.edu>...

> ivo welch wrote:
>
> Yes. amsmath provides a \pmb ("poor man's bold") macro that does
> exactly that. I don't know how well it works in text mode, though.
>
> -- Scott

Hi Scott: it works, but rather poorly for my font. (A better policy
would be to go back, overstrike a little bit up, go back, overstrike a
little bit left, go back, overstrike a little bit right, go back,
overstrike a little bit down. Defining a little as an arbitrary
length would be even better.) Worse, it cannot break across lines.
So, it does not even help to modify it.

I guess I will have to look at modifying ulem.sty next.

regards,

/ivo

Rowland McDonnell

unread,
Sep 17, 2003, 2:09:18 PM9/17/03
to
ivo welch <ivo....@anderson.ucla.edu> wrote:

> Scott Pakin <pa...@uiuc.edu> wrote:
> > ivo welch wrote:
> >
> > Yes. amsmath provides a \pmb ("poor man's bold") macro that does
> > exactly that. I don't know how well it works in text mode, though.
> >
> > -- Scott
>
> Hi Scott: it works, but rather poorly for my font. (A better policy
> would be to go back, overstrike a little bit up, go back, overstrike a
> little bit left, go back, overstrike a little bit right, go back,
> overstrike a little bit down. Defining a little as an arbitrary
> length would be even better.)

You might like to take a look at my eurofont package (on CTAN) - it uses
a hexagonal overstrike arrangement that produces much better results
than \pmb. I've optimized it (i.e., hacked things unmercifully,
unsubtly, and brutally in my usual `voodoo programming' fashion) for
euro symbols in particular circumstances, but you might be able to do
something useful with it.

> Worse, it cannot break across lines.

That'll be the problem with any simple TeX-end bold fakery. If you want
fake emboldening that'll break across lines, you'll have to do it at the
vf stage or later; or use clever tricks thought up by a TeX wizard.

> So, it does not even help to modify it.
>
> I guess I will have to look at modifying ulem.sty next.

Might not be a bad idea.

Rowland.

--
Remove the animal for email address: rowland....@dog.physics.org
PGP pub key 0x62DCCA78 Sorry - the spam got to me
http://www.mag-uk.org
UK biker? Join MAG and help keep bureaucracy at bay

Donald Arseneau

unread,
Sep 17, 2003, 7:23:47 PM9/17/03
to
real-addr...@flur.bltigibbet (Rowland McDonnell) writes:

> ivo welch <ivo....@anderson.ucla.edu> wrote:
>
> You might like to take a look at my eurofont package (on CTAN) - it uses
> a hexagonal overstrike arrangement that produces much better results
> than \pmb.

I agree. I've used hexagonal overstrike (understrike, really)
with ulem.sty to get "outlined" text.

> > Worse, it cannot break across lines.

well, ulem and hexagonal overstrike will do that bit. Much better
to find a real bold font though :-)

Donald Arseneau as...@triumf.ca

Donald Arseneau

unread,
Sep 17, 2003, 8:12:43 PM9/17/03
to
real-addr...@flur.bltigibbet (Rowland McDonnell) writes:

I didn't notice the ulem/pmb connection in this thread before,
but you can find postings that use ulem.sty to make a pmb "halo"
around the chracters. It could easily use black instead.

OK, based on

http://groups.google.com/groups?selm=10APR199715511703%40reg.triumf.ca

(which seems to have the hexagon distorted)-:


\def\pmbtext{\bgroup
\U...@pixel.008em \let\UL@leadtype\@empty
\let\UL@putbox\UL@pmbbox \ULon}

\def\UL@pmbbox{\ifx\UL@start\@empty \else % not inner
\vrule\@width\z@ \LA@penalty\@M
\kern-2\UL@pixel\copy\UL@box\kern-\wd\UL@box
\kern \UL@pixel\raise1.73\UL@pixel\copy\UL@box\kern-\wd\UL@box
\lower1.73\UL@pixel\copy\UL@box\kern-\wd\UL@box
\kern 2\UL@pixel\raise1.73\UL@pixel\copy\UL@box\kern-\wd\UL@box
\lower1.73\UL@pixel\copy\UL@box\kern-\wd\UL@box
\kern \UL@pixel\copy\UL@box\kern-\wd\UL@box
\kern-2\UL@pixel\box\UL@box
\fi}


Donald Arseneau as...@triumf.ca

0 new messages