Open main menu

CDOT Wiki β

Changes

User:Sdowne/summer 2010 worklog july

464 bytes added, 15:49, 29 July 2010
no edit summary
* I fixed an odd pixel that was slipping in between lines split on a string with newline characters. The extra pixel only existed using TOP, BOTTOM, and CENTER on the y axis. Basically, everything cept BASELINE, which was default... The problem was due to using the text size, instead of using text ascent, which is the same size for smaller fonts, but as the font gets larger, the gap is more noticeable.
* Noticed I totally overlooked the 4th and 5th parameters of text, which are height and width. This also needs to account for text leading using newlines OR spaces that push the text onto the next line. There is also a few pixel padding in the p5 version from the top of the box, to the first bit of text, which is dependent on the size of the font. I am not yet sure where they get this number, but I am looking through p5's source. The last final problem in textLeading() has to do with the number of pixels being padded between newlines and multiple lines.
 
Thursday July 29th<br />
* Finished off [https://processing-js.lighthouseapp.com/projects/41284/tickets/452-textascent textAscent], [https://processing-js.lighthouseapp.com/projects/41284/tickets/453-textdescent textDescent] and [https://processing-js.lighthouseapp.com/projects/41284/tickets/454-textleading textLeading].
* did [https://processing-js.lighthouseapp.com/projects/41284/tickets/754-in-class-default-scope-is-not-this-but-the-dom-window ticket 754]
[[category:Summer 2010 July]]
[[category:Scott's Work Log]]
1
edit