When I create a multi-line text object in Construct2, the space between the different lines is different in editor than in browser.
Attach a Capx
https://dl.dropboxusercontent.com/u/326 ... ement.capx
Description of Capx
I've got three text objects here. The paragraph of black text, and two highlights, one blue and one green. I've placed the highlighted words so that they cover up corresponding words in the paragraph (or as closely as possible). The font size, family, and style are all the same, it's just the color that's different. And as you can see, it's pretty close. Here's a screenshot of what it looks like in the editor:
But once I run it in a browser, it looks like this:
https://dl.dropboxusercontent.com/u/326 ... serCap.PNG
The blue highlight is okay, but the green one is no longer lined up. There's a grid behind the text, and when you compare the two screenshots, you can tell that the second line of black text is higher in browser than it is in editor, causing it to no longer line up correctly with the green text.
Steps to Reproduce Bug
- Create a new project and create a text object that spans multiple lines. Place a grid background if you wish.
- Create another text object that has the exact same font size, style, and family, but a different color. Choose just a word or two from the bottom line of the original text object, and position it so that it exactly covers up those same words in the original.
- Run in any browser.
The colored text will not line up with the original text.
They should line up in the browser since they do in the editor.
- Chrome: Yes
- FireFox: Yes
- Internet Explorer: Yes
- Opera: Yes
- Safari: Yes
Operating System and Service Pack
Construct 2 Version ID
Release 173 (64-bit)