1. A method for generating a two-dimensional distance field from a pen stroke, comprising: sampling a pen state during a pen stroke, the pen state comprising a location of the pen stroke, to generate an ordered list of pen states along the pen stroke; generating a set of boundary descriptors from the ordered list of pen states; and generating a two-dimensional distance field from the set of boundary descriptors.