'Thickness for lines (in pixels) at the specified size'

def underline_thickness(self, pixel_size=12.0):

    yscale = (pixel_size / self.units_per_em)
    return (self.post.underline_thickness * yscale)
