[reportlab-users] font weights

Tim Roberts timr at probo.com
Mon Dec 4 13:00:52 EST 2006


Andy Robinson wrote:

> Jerome Alet wrote:

>

>> If you know the exact position of this word, and can "print" it

>> independantly from the rest, you could slightly increment

>> the canvas' scale before printing this word, something like

>> (untested) :

>>

>

> You could also try printing once; then shift right by

> a tiny fraction (say 0.5 points) and reprint; then maybe up 0.25 and

> back 0.25, and print again. That would thicken up all the lines. You

> want to shift it by a small percentage of a typical stroke width in

> one of the characters - vertically and horizontally. It's a bit like

> an old typewriter or dot matrix printer going back and doing it again.

>


For what it's worth, this is exactly how Windows renders bold text when
no bold font is available. It overprints the string one "epsilon" to
the right, where epsilon is usually one pixel. This has a somewhat
unsatisfying effect on characters like "-" and "=".

It has an equally brute force algorithm for slanting italic text when no
italic font is available.

--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the reportlab-users mailing list