#!/usr/bin/env python

import phiface

sc = phiface.Context()

yloc = 30

for weight in [1, 3, 6, 10]:
    xloc = 30
    A = phiface.AGlyph(x=xloc, y=yloc)

    xloc += A.width() + 40
    E = phiface.EGlyph(x=xloc, y=yloc)

    xloc += E.width() + 20
    I = phiface.IGlyph(x=xloc, y=yloc)

    xloc += I.width() + 20
    T = phiface.TGlyph(x=xloc, y=yloc)

    A.w = E.w = I.w = T.w = weight

    sc.draw([A, E, I, T])

    yloc += A.capHeight() + 20

sc.write("output.png")
#!/usr/bin/env python

import phiface

sc = phiface.Context()

yloc = 30

for weight in [1, 3, 6, 10]:
    xloc = 30
    A = phiface.AGlyph(x=xloc, y=yloc)

    xloc += A.width() + 40
    E = phiface.EGlyph(x=xloc, y=yloc)

    xloc += E.width() + 20
    I = phiface.IGlyph(x=xloc, y=yloc)

    xloc += I.width() + 20
    T = phiface.TGlyph(x=xloc, y=yloc)

    A.w = E.w = I.w = T.w = (weight * (A.capHeight() / 150.0))

    sc.draw([A, E, I, T])

    yloc += A.capHeight() + 20

sc.write("output.png")
Change weight rendering based on capHeight
Change weight rendering based on capHeight
