def METHOD_NAME(glyph_id, font):
    glyph_order = font.getGlyphOrder()
    glyf_set = font.getGlyphSet()
    glyphname = glyph_order[glyph_id]
    ttglyph = glyf_set[glyphname]
    pen = BoundsPen(glyf_set, ignoreSinglePoints=True)
    ttglyph.draw(pen)
    if not pen.bounds:
        return None, None
    return pen.bounds[1], pen.bounds[3]