# Itamex News # Gruppo Bodenza - Perez # Carattere per Quotidiani # importo Robofab import robofab from robofab.world import CurrentFont font=CurrentFont() # Parametri Politica = 0 #varia da 0 a 20 Culturaintrattenimento = 0 #varia da 0 a 10 Sport = 0 #varia da 0 a 20 Cronaca = 0 #varia da 0 a 30 Salute = 0 #varia da 0 a 30 Rosa = 0 #varia da 0 a 20 #Parametri di costruzione #variabili w = Culturaintrattenimento*10 #variabile della larghezza dei caratteri j = Sport - Politica #variabile inclinazione dei caratteri (si applica solo su alcuni punti) p = 100 + Cronaca - Salute #valore di pennello stampato a schermo t = 30 + Rosa #Roundness del pennello r = Politica/2 #angolo del pennello #Condizioni if j<0: j=0 else: j=j ##lettere minuscole x =600+w #Larghezza delle lettere y =600 #Altezza delle lettere g=-90 #riposizione su y k = 0 #Avvisi print "Selezionare 'Brush Tracing'" print "Valore 'Stroke':",p print "Valore 'Angle':",r print "Valore 'Roundness':",t print "Cap: select the '1st'" print "Join: select the '2nd'" print "Body: select the '1st'" #Lettere #--------------------------------- #space font = CurrentFont() glyph = font ['space'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*0/9+k,y*0/9+g)) pen.lineTo((x*6/9+k,y*9/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(2) glyph.update() font.update() #fl.CallCommand(32812) #fl.CallCommand(33622) #-------------------------------- #a font = CurrentFont() glyph = font ['a'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*2.5/9+k,y*6.7/9+g)) pen.qCurveTo((x*3/9+k,y*7.8/9+g),(x*4.7/9+k,y*8.2/9+g),(x*5.7/9+k,y*7.8/9+g),(x*6.4/9+k,y*7/9+g),(x*6.5/9+k,y*6/9+g),(x*6.4/9+k,y*5/9+g),(x*6.4/9+k,y*2.5/9+g),(x*7.2/9+k,y*1.5/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) font = CurrentFont() glyph = font ['a2'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*6.4/9+k,y*5/9+g)) pen.curveTo((x*4.5/9+k,y*5.2/9+g),(x*3/9+k,y*4.7/9+g),(x*2/9,y*3/9+g),(x*3/9+k,y*1.6/9+g),(x*4.5/9+k,y*1.6/9+g),(x*6.5/9+k,y*2.5/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment (5) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #--------------------------------- #e font = CurrentFont() glyph = font ['e'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*6.1/9+k,y*2.3/9+g)) pen.curveTo((x*5.4/9+k,y*1.8/9+g),(x*4/9+k,y*1.6/9+g),(x*2.7/9+k,y*1.9/9+g),(x*1.8/9+k,y*2.9/9+g),(x*1.4/9+k,y*5.1/9+g),(x*1.8/9+k,y*6.6/9+g),(x*2.7/9+k,y*7.6/9+g),(x*4/9+k,y*8.1/9+g),(x*5.6/9+k,y*7.9/9+g),(x*6.6/9+k,y*6.6/9+g),(x*6.5/9+k,y*5.1/9+g)) pen.lineTo((x*1.3/9+k,y*5.1/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(11) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #------------------------------------------ #n font = CurrentFont() glyph = font ['n'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*2.3/9+k,y*8.2/9+g)) pen.lineTo((x*2.3/9+k,y*1.4/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) font = CurrentFont() glyph = font ['n2'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*2.3/9+k,y*5.9/9+g)) pen.curveTo((x*3.7/9+k,y*7.6/9+g),(x*5/9+k,y*7.9/9+g),(x*7/9+k,y*7.7/9+g),(x*7/9+k,y*5/9+g)) pen.lineTo((x*7/9+k,y*1.4/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment (4) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #------------------------------------------ #x font = CurrentFont() glyph = font ['x'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*1.7/9+k,y*8/9+g)) pen.lineTo((x*6.5/9+k,y*1.4/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) font = CurrentFont() glyph = font ['x2'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*6.5/9+k,y*8/9+g)) pen.lineTo((x*1.2/9+k,y*1.4/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment (2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #------------------------------------------ #v font = CurrentFont() glyph = font ['v'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*2.5/9+k,y*8.2/9+g)) pen.lineTo((x*5.1/9+k,y*1.4/9+g)) pen.lineTo((x*7.8/9+k,y*8.2/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(3) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #------------------------------------------ #j font = CurrentFont() glyph = font ['j'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*4.6/9+k,y*8.2/9+g)) pen.lineTo((x*4.6/9+k,y*1/9+g)) pen.curveTo((x*4.6/9+k,y*-1/9+g),(x*3/9+k,y*-1/9+g),(x*2.2/9+k,y*-0.6/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(3) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) font = CurrentFont() glyph = font ['j2'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*4.6/9+k,y*11/9+g)) pen.lineTo((x*4.6/9+k,y*9.2/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment (2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #------------------------------------------ #i font = CurrentFont() glyph = font ['i'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*4.6/9+k,y*8.2/9+g)) pen.lineTo((x*4.6/9+k,y*1.4/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) font = CurrentFont() glyph = font ['i2'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*4.6/9+k,y*11/9+g)) pen.lineTo((x*4.6/9+k,y*9.2/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment (2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #--------------------------------- #l font = CurrentFont() glyph = font ['l'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*4.5/9+k,y*11/9+g)) pen.lineTo((x*4.5/9+k,y*1.4/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #--------------------------------- #o font = CurrentFont() glyph = font ['o'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*4/9+k,y*8.2/9+g)) pen.qCurveTo((x*6.8/9+k,y*8.2/9+g),(x*6.8/9+k,y*1.7/9+g),(x*1.4/9+k,y*1.7/9+g),(x*1.4/9+k,y*8.2/9+g),(x*4/9+k,y*8.2/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) #glyph[0].removeSegment() glyph.update() fl.CallCommand(32812) fl.CallCommand(33622) #--------------------------------- #c font = CurrentFont() glyph = font ['c'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*7.2/9+k,y*6.4/9+g)) pen.curveTo((x*7.2/9+k,y*8.2/9+g),(x*3.2/9+k,y*8.2/9+g),(x*2.4/9+k,y*5/9+g),(x*3/9+k,y*2.1/9+g),(x*5.1/9+k,y*1.4/9+g),(x*7.4/9+k,y*1.9/9+g),(x*7.2/9+k,y*3.5/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(6) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #--------------------------------- #z font = CurrentFont() glyph = font ['z'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*1.3/9+k,y*8.1/9+g)) pen.lineTo((x*6.5/9+k,y*8.1/9+g)) pen.lineTo((x*1.7/9+k,y*1.7/9+g)) pen.lineTo((x*7.4/9+k,y*1.7/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(4) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #--------------------------------- #k font = CurrentFont() glyph = font ['k'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*1.6/9+k,y*11/9+g)) pen.lineTo((x*1.6/9+k,y*1.4/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) font = CurrentFont() glyph = font ['k1'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*1.6/9+k,y*3.7/9+g)) pen.lineTo((x*5.8/9+k,y*8.2/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) font = CurrentFont() glyph = font ['k2'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*2.3/9+k,y*4.5/9+g)) pen.lineTo((x*6.2/9+k,y*1.4/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #--------------------------------- #r font = CurrentFont() glyph = font ['r'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*3.6/9+k,y*8.2/9+g)) pen.lineTo((x*3.6/9+k,y*1.4/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) font = CurrentFont() glyph = font ['r2'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*7/9+k,y*6.6/9+g)) pen.qCurveTo((x*6.8/9+k,y*8.5/9+g),(x*3.26/9+k,y*7/9+g),(x*3.6/9+k,y*5.5/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #------------------------------------------ #m font = CurrentFont() glyph = font ['m'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*2.3/9+k,y*8.2/9+g)) pen.lineTo((x*2.3/9+k,y*1.4/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) font = CurrentFont() glyph = font ['m1'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*2.3/9+k,y*5.9/9+g)) pen.curveTo((x*3.7/9+k,y*7.6/9+g),(x*5/9+k,y*7.9/9+g),(x*7/9+k,y*7.7/9+g),(x*7/9+k,y*5/9+g)) pen.lineTo((x*7/9+k,y*1.4/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment (4) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) font = CurrentFont() glyph = font ['m2'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*7/9+k,y*5.9/9+g)) pen.curveTo((x*8.4/9+k,y*7.6/9+g),(x*9.7/9+k,y*7.9/9+g),(x*11.7/9+k,y*7.7/9+g),(x*11.7/9+k,y*5/9+g)) pen.lineTo((x*11.7/9+k,y*1.4/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment (4) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #------------------------------------------ #g font = CurrentFont() glyph = font ['g'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*7.5/9+k,y*8.3/9+g)) pen.lineTo((x*7.5/9+k,y*1.3/9+g)) pen.curveTo((x*7.3/9+k,y*-1.8/9+g),(x*5/9+k,y*-2/9+g),(x*3.4/9+k,y*-1.7/9+g),(x*3.5/9+k,y*0.6/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(4) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) font = CurrentFont() glyph = font ['g1'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*7.5/9+k,y*7.2/9+g)) pen.curveTo((x*7/9+k,y*7.9/9+g),(x*3.8/9+k,y*7.9/9+g),(x*3.2/9+k,y*6/9+g),(x*3.2/9+k,y*2/9+g),(x*7.5/9+k,y*2/9+g),(x*7.5/9+k,y*4.2/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment (5) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #------------------------------------------ #f font = CurrentFont() glyph = font ['f'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*4.6/9+k,y*10.5/9+g)) pen.curveTo((x*3.7/9+k,y*11/9+g),(x*2.5/9+k,y*10/9+g),(x*2.5/9+k,y*8.3/9+g)) pen.lineTo((x*2.5/9+k,y*1.3/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(3) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) font = CurrentFont() glyph = font ['f1'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*1.1/9+k,y*7.6/9+g)) pen.lineTo((x*4.4/9+k,y*7.6/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment (2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #------------------------------------------ #y font = CurrentFont() glyph = font ['y'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*6.6/9+k,y*8.2/9+g)) pen.lineTo((x*4/9+k,y*1.2/9+g)) pen.curveTo((x*3.5/9+k,y*-0.5/9+g),(x*2.6/9+k,y*-1.9/9+g),(x*1.6/9+k,y*-1/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(3) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) font = CurrentFont() glyph = font ['y1'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*1.2/9+k,y*8.2/9+g)) pen.lineTo((x*4/9+k,y*1.2/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment (2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #------------------------------------------ #s font = CurrentFont() glyph = font ['s'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*5.7/9+k,y*7.6/9+g)) pen.curveTo((x*4.2/9+k,y*8.5/9+g),(x*2.5/9+k,y*8.1/9+g),(x*2.3/9+k,y*6.8/9+g)) pen.curveTo((x*2.2/9+k,y*5.6/9+g),(x*3.6/9+k,y*5.2/9+g),(x*4/9+k,y*5/9+g)) pen.curveTo((x*4.4/9+k,y*4.8/9+g),(x*5.7/9+k,y*4.1/9+g),(x*5.6/9+k,y*3/9+g)) pen.curveTo((x*5.5/9+k,y*1.9/9+g),(x*3.5/9+k,y*0.6/9+g),(x*1.3/9+k,y*2.9/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(5) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #------------------------------------------ #t font = CurrentFont() glyph = font ['t'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*3.5/9+k,y*10.7/9+g)) pen.lineTo((x*3.5/9+k,y*4.8/9+g)) pen.curveTo((x*3.5/9+k,y*1.6/9+g),(x*4/9+k,y*1.6/9+g),(x*5.5/9+k,y*1.6/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(3) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) font = CurrentFont() glyph = font ['t1'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*2/9+k,y*8.2/9+g)) pen.lineTo((x*5.5/9+k,y*8.2/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #------------------------------------------ #q font = CurrentFont() glyph = font ['q'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*6.4/9+k,y*7.1/9+g)) pen.curveTo((x*6.3/9+k,y*8.4/9+g),(x*1.5/9+k,y*8.8/9+g),(x*1.5/9+k,y*4.4/9+g)) pen.curveTo((x*1.8/9+k,y*1/9+g),(x*6/9+k,y*1.6/9+g),(x*6.4/9+k,y*2.8/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(3) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) font = CurrentFont() glyph = font ['q1'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*6.4/9+k,y*8.2/9+g)) pen.lineTo((x*6.4/9+k,y*-1.6/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #------------------------------------------ #d font = CurrentFont() glyph = font ['d'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*6.4/9+k,y*7.1/9+g)) pen.curveTo((x*6.3/9+k,y*8.4/9+g),(x*1.5/9+k,y*8.8/9+g),(x*1.5/9+k,y*4.4/9+g)) pen.curveTo((x*1.8/9+k,y*0/9+g),(x*6.2/9+k,y*1.6/9+g),(x*6.4/9+k,y*2.8/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(3) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) font = CurrentFont() glyph = font ['d1'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*6.4/9+k,y*1.4/9+g)) pen.lineTo((x*6.4/9+k,y*11/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #------------------------------------------ #b font = CurrentFont() glyph = font ['b'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*1.5/9+k,y*7.1/9+g)) pen.curveTo((x*1.7/9+k,y*8.4/9+g),(x*6.4/9+k,y*8.8/9+g),(x*6.4/9+k,y*4.4/9+g)) pen.curveTo((x*6.1/9+k,y*0/9+g),(x*1.7/9+k,y*1.6/9+g),(x*1.5/9+k,y*2.8/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(3) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) font = CurrentFont() glyph = font ['b1'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*1.5/9+k,y*1.4/9+g)) pen.lineTo((x*1.5/9+k,y*11/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #------------------------------------------ #p font = CurrentFont() glyph = font ['p'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*1.5/9+k,y*7.1/9+g)) pen.curveTo((x*1.7/9+k,y*8.4/9+g),(x*6.4/9+k,y*8.8/9+g),(x*6.4/9+k,y*4.4/9+g)) pen.curveTo((x*6.1/9+k,y*0/9+g),(x*1.7/9+k,y*1.6/9+g),(x*1.5/9+k,y*2.8/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(3) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) font = CurrentFont() glyph = font ['p1'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*1.5/9+k,y*8.2/9+g)) pen.lineTo((x*1.5/9+k,y*-1.6/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #w font = CurrentFont() glyph = font ['w'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*2.5/9+k,y*8.2/9+g)) pen.lineTo((x*5.1/9+k,y*1.4/9+g)) pen.lineTo((x*7.8/9+k,y*8.2/9+g)) pen.lineTo((x*9.4/9+k,y*1.4/9+g)) pen.lineTo((x*12.1/9+k,y*8.2/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(5) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #------------------------------------- ##Maiuscole #M font = CurrentFont() glyph = font ['M'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*2/9+k,y*1.3/9+g)) pen.lineTo((x*2/9+k,y*10.7/9+g)) pen.lineTo((x*6/9+k,y*3.5/9+g)) pen.lineTo((x*10/9+k,y*10.7/9+g)) pen.lineTo((x*10/9+k,y*1.3/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(5) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #---------------------------------- #I font = CurrentFont() glyph = font ['I'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*1.8/9+k,y*10.7/9+g)) pen.lineTo((x*1.8/9+k,y*1.2/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #---------------------------------------- #H font = CurrentFont() glyph = font ['H'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*1.3/9+k,y*10.7/9+g)) pen.lineTo((x*1.3/9+k,y*1.3/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) font = CurrentFont() glyph = font ['H1'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*1.3/9+k,y*6.4/9+g)) pen.lineTo((x*7.3/9+k,y*6.4/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) font = CurrentFont() glyph = font ['H2'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*7.3/9+k,y*10.7/9+g)) pen.lineTo((x*7.3/9+k,y*1.3/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #-------------------------------- #O font = CurrentFont() glyph = font ['O'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*6/9+k,y*1.3/9+g)) pen.curveTo((x*8.7/9+k,y*1.3/9+g),(x*9.7/9+k,y*6/9+g),(x*8.7/9+k,y*10/9+g),(x*6/9+k,y*11/9+g),(x*3.3/9+k,y*10/9+g),(x*2.1/9+k,y*6/9+g),(x*3.2/9+k,y*1.3/9+g),(x*6/9+k,y*1.3/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) #glyph[0].removeSegment() glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) #-------------------------------- #T font = CurrentFont() glyph = font ['T'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*1/9+k,y*10.5/9+g)) pen.lineTo((x*8/9+k,y*10.5/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) font = CurrentFont() glyph = font ['T1'] glyph.clear() pen = glyph.getPen() pen.moveTo((x*4.5/9+k,y*10.5/9+g)) pen.lineTo((x*4.5/9+k,y*1.3/9+g)) pen.closePath() fl.EditGlyph(glyph.index) fl.CallCommand(40156) glyph[0].removeSegment(2) glyph.update() font.update() fl.CallCommand(32812) fl.CallCommand(33622) ##UNIONI ##unione a g1=font['a'] g2=font['a2'] g1.appendGlyph (g2) g1.update() ##unione n g1=font['n'] g2=font['n2'] g1.appendGlyph (g2) g1.update() ##unione x g1=font['x'] g2=font['x2'] g1.appendGlyph (g2) g1.update() ##unione j g1=font['j'] g2=font['j2'] g1.appendGlyph (g2) g1.update() ##unione i g1=font['i'] g2=font['i2'] g1.appendGlyph (g2) g1.update() ##unione k g1=font['k'] g2=font['k1'] g3=font['k2'] g1.appendGlyph (g2) g1.update() g1.appendGlyph (g3) g1.update() ##unione r g1=font['r'] g2=font['r2'] g1.appendGlyph (g2) g1.update() ##unione m g1=font['m'] g2=font['m1'] g3=font['m2'] g1.appendGlyph (g2) g1.update() g1.appendGlyph (g3) g1.update() ##unione g g1=font['g'] g2=font['g1'] g1.appendGlyph (g2) g1.update() ##unione g g1=font['f'] g2=font['f1'] g1.appendGlyph (g2) g1.update() ##unione g g1=font['y'] g2=font['y1'] g1.appendGlyph (g2) g1.update() ##unione t g1=font['t'] g2=font['t1'] g1.appendGlyph (g2) g1.update() ##unione q g1=font['q'] g2=font['q1'] g1.appendGlyph (g2) g1.update() ##unione d g1=font['d'] g2=font['d1'] g1.appendGlyph (g2) g1.update() ##unione b g1=font['b'] g2=font['b1'] g1.appendGlyph (g2) g1.update() ##unione b g1=font['p'] g2=font['p1'] g1.appendGlyph (g2) g1.update() ##Maiuscole #unione H g1=font['H'] g2=font['H1'] g3=font['H2'] g1.appendGlyph (g2) g1.update() g1.appendGlyph (g3) g1.update() #unione T g1=font['T'] g2=font['T1'] g1.appendGlyph (g2) g1.update() #SPAZIATURE ##minuscole font['space'].leftMargin=x*0 font['space'].rightMargin=x*0 font['a'].leftMargin=x/12 font['a'].rightMargin=x*0 font['b'].leftMargin=0 font['b'].rightMargin=x/14 font['c'].leftMargin=x/12 font['c'].rightMargin=x/30 font['d'].leftMargin=x/12 font['d'].rightMargin=0 font['e'].leftMargin=x/20 font['e'].rightMargin=x/80 font['f'].leftMargin=x/60 font['f'].rightMargin=x/60 font['g'].leftMargin=x/16 font['g'].rightMargin=x/26 font['h'].leftMargin=x/91 font['h'].rightMargin=x/71 font['i'].leftMargin=x/8 font['i'].rightMargin=x/18 font['j'].leftMargin=-x/20 font['j'].rightMargin=x/30 font['k'].leftMargin=x/60 font['k'].rightMargin=-x/51 font['l'].leftMargin=x/20 font['l'].rightMargin=x/25 font['m'].leftMargin=x/20 font['m'].rightMargin=x/160 font['n'].leftMargin=x/30 font['n'].rightMargin=x/111 font['o'].leftMargin=x/13 font['o'].rightMargin=x/12 font['p'].leftMargin=x/20 font['p'].rightMargin=x/30 font['q'].leftMargin=x/14 font['q'].rightMargin=0 font['r'].leftMargin=x/25 font['r'].rightMargin=-x/25 font['s'].leftMargin=x/28 font['s'].rightMargin=x/58 font['t'].leftMargin=x/76 font['t'].rightMargin=0 font['u'].leftMargin=x/6 font['u'].rightMargin=0 font['v'].leftMargin=x/58 font['v'].rightMargin=x/57 font['w'].leftMargin=x/114 font['w'].rightMargin=x/74 font['x'].leftMargin=x/36 font['x'].rightMargin=x/39 font['y'].leftMargin=x/83 font['y'].rightMargin=x/83 font['z'].leftMargin=x/77 font['z'].rightMargin=x/29 ##Maiuscole font['A'].leftMargin=x/12 font['A'].rightMargin=x*0 font['B'].leftMargin=0 font['B'].rightMargin=x/14 font['C'].leftMargin=x/12 font['C'].rightMargin=x/30 font['D'].leftMargin=x/12 font['D'].rightMargin=0 font['E'].leftMargin=10 font['E'].rightMargin=x/80 font['F'].leftMargin=x/10 font['F'].rightMargin=-x/4 font['G'].leftMargin=x/16 font['G'].rightMargin=x/26 font['H'].leftMargin=x/15 font['H'].rightMargin=x/71 font['I'].leftMargin=x/8 font['I'].rightMargin=x/18 font['J'].leftMargin=-x/20 font['J'].rightMargin=x/30 font['K'].leftMargin=x/60 font['K'].rightMargin=-x/51 font['L'].leftMargin=x/8 font['L'].rightMargin=x/11 font['M'].leftMargin=x/10 font['M'].rightMargin=x/160 font['N'].leftMargin=x/30 font['N'].rightMargin=x/111 font['O'].leftMargin=x/8 font['O'].rightMargin=x/20 font['P'].leftMargin=-x/107 font['P'].rightMargin=x/14 font['Q'].leftMargin=x/14 font['Q'].rightMargin=0 font['R'].leftMargin=x/10 font['R'].rightMargin=-x/30 font['R'].leftMargin=x/6 font['R'].rightMargin=x/9 font['T'].leftMargin=0 font['T'].rightMargin=0 font['U'].leftMargin=x/6 font['U'].rightMargin=0 font['V'].leftMargin=x/58 font['V'].rightMargin=x/57 font['W'].leftMargin=x/114 font['W'].rightMargin=x/74 font['X'].leftMargin=x/36 font['X'].rightMargin=x/39 font['Y'].leftMargin=x/83 font['Y'].rightMargin=x/83 font['Z'].leftMargin=x/77 font['Z'].rightMargin=x/29 #Skew for glifo in font: glifo.skew(j) font.update() #overlap for glifo in font: glyph.removeOverlap() glyph.update()