def char_uvs(char, angel_code):
    """
    Return a list of uv coordinates (for a quad)
    which encompass the relevant character on the font
    texture, as specified by the angel code format.

    """
    cm = angel_code["common"]
    W, H = cm["scaleW"], cm["scaleH"]

    try:
        c = angel_code["char"][str(ord(char))]
    except:
        c = angel_code["char"][str(ord(' '))]

    x, y = c['x'], c['y']
    w, h = c['width'], c['height']

    pu = lambda x, y: [1 / W * x, 1 / H * y]

    #u = [[0, 0],
    #     [1, 0],
    #     [1, 1],
    #     [0, 1]]

    uvs = [pu(x, y + h),
           pu(x + w, y + h),
           pu(x + w, y),
           pu(x, y)]

    #[flip_uv(uv) for uv in uvs]

    return uvs