Mercurial > hg > tweakathon2ios
comparison UI code/TextPanel.mm @ 22:8124f46eda65
pretty much working.
ugly though.
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Thu, 23 Oct 2014 18:15:46 +0100 |
parents | a223551fdc1f |
children | fea11c3d1d94 |
comparison
equal
deleted
inserted
replaced
21:5cf2b80909fc | 22:8124f46eda65 |
---|---|
32 | 32 |
33 // TODO check for fitting inside?? | 33 // TODO check for fitting inside?? |
34 if(fontSize == SMALLFONT){ | 34 if(fontSize == SMALLFONT){ |
35 smallFont.drawString(theText, x, y + 8); | 35 smallFont.drawString(theText, x, y + 8); |
36 }else if(fontSize == LARGEFONT){ | 36 }else if(fontSize == LARGEFONT){ |
37 bigFont.drawString(theText, x, y + 8); | 37 bigFont.drawString(theText, x, y + 16); |
38 }else{ | 38 }else{ |
39 verdana16.drawString(theText, x, y + 8); | 39 verdana16.drawString(theText, x, y + 12); |
40 } | 40 } |
41 | 41 |
42 //ofRect(x,y,width,height); | 42 //ofRect(x,y,width,height); |
43 } | 43 } |