def get_glyph_dimensions(glyph):
    """ Returns dict of the dimesions of the glyph passed to it. """
    bbox = glyph.boundingBox()
    return {
        'xmin'  : bbox[0],
        'ymin'  : bbox[1],
        'xmax'  : bbox[2],
        'ymax'  : bbox[3],
        'width' : bbox[2] + (-bbox[0]),
        'height': bbox[3] + (-bbox[1]),
    }