i have pet chickens, i make drawings, and i write software of questionable usefulness. that's pretty much the extent of my personality. ask me about array programming, decker, or anything, really.


In the process of creating MSFonts, I determined that Windows 95 used a very simple method for creating boldface variants of bitmap fonts: it logically widens glyphs by one pixel and double-strikes each glyph with a 1-pixel offset. MSFonts includes pre-baked bold variants for every font that makes sense, but it isn't too hard to do this yourself for any font that exists in a deck.


You can paste the following function in the Listener:

on embolden old new do
 f:deck.fonts[old]
 n:deck.add[f new]
 n.size:f.size+1,0
 each i in range 96
  g:f[i]
  g.size:g.size+1,0
  n[i]:g.paste[g 1,0 1]
 end
end

And then use it like so:

embolden["deckbuilder" "deckbuilder_bold"]

A variety of variations on this technique are possible to create different "mechanically compressed" fonts.


You must log in to comment.