[Talk-us] Highway Shield Rendering

Phil! Gold phil_g at pobox.com
Tue Apr 3 17:48:30 BST 2012

* Minh Nguyen <mxn at 1ec5.org> [2012-04-03 09:36 -0700]:
> "INDIANA" and possibly others would be more legible in a wider font.
> There's still space on either side to accommodate the text.

Only on the wide-format shields.  On the narrower ones used for two-digit
numbers, the name runs right to the edge.

> If the FHWA fonts don't work out, you could always resort to a bitmap
> font.

That's a longer-term possibility.  I'd like the shields to look good when
scaled to any size, which is why the templates are all SVGs that get
turned into PNGs only at the last possible moment.  Bitmap fonts tend to
look good at exactly one resolution, so I'd have to figure out a good way
to dynamically choose the font characteristics based on the target
rendering size.

...computer contrarian of the first order... / http://aperiodic.net/phil/
PGP: 026A27F2  print: D200 5BDB FC4B B24A 9248  9F7A 4322 2D22 026A 27F2
--- --
#define BITCOUNT(x)	(((BX_(x) + (BX_(x) >> 4)) & 0x0f0f0f0f) % 255)
#define BX_(x)		((x) - (((x) >> 1) & 0x77777777)		\
			     - (((x) >> 2) & 0x33333333)		\
			     - (((x) >> 3) & 0x11111111))

/* Counts the number of bits in a word. */
---- --- --

More information about the Talk-us mailing list