openfl / openfl-html5

[deprecated] OpenFL HTML5 backend
Other
0 stars 1 forks source link

TextField multiline support #49

Closed jgranick closed 10 years ago

jgranick commented 10 years ago

49 Issue by lpmitchell,

This may not be the most efficient way of rendering (worth caching the array of lines?), but the implementation matches other targets.

Since Context doesn't support rendering of multiple lines I'm splitting by \n then looping through. yOffset is increased for each line using the textHeight property.

Doesn't support wordwrap.

jgranick commented 10 years ago

Comment by lpmitchell:

Test project: https://dl.dropboxusercontent.com/u/10641626/Github/OpenFL-TestApp.zip

jgranick commented 10 years ago

Comment by lpmitchell:

Closing due to deprecation - I'll transition these changes and send a pull request to openfl/openfl