textHeight doesn't calculate with line height.

Bugs will be moved here once resolved.

Post » Thu Sep 12, 2013 5:11 pm

Link to .capx file (required!):
https://dl.dropboxusercontent.com/u/108499873/textheightBug.capx

Steps to reproduce:
1. Create 2 texts
2. Make one of the have a line height other than 0
3. The still have the same text height!!

Observed result:
Same text height

Expected result:
Different text height

Browsers affected:
Chrome: yes/no
Firefox: yes/no
Internet Explorer: yes/no

Operating system & service pack:
win8

Construct 2 version:
143
B
12
S
3
G
4
Posts: 57
Reputation: 3,186

Post » Thu Sep 12, 2013 5:16 pm

Line height is the spacing between lines, not the font size.
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,670

Post » Thu Sep 12, 2013 5:23 pm

The text height is incorrect when you have multiple lines. The line height needs to be taken into account otherwise the value is too small. Please see capx for an example.Captain2013-09-12 17:24:43
B
12
S
3
G
4
Posts: 57
Reputation: 3,186

Post » Fri Sep 13, 2013 12:58 pm

Thanks, should be fixed in next build.
Scirra Founder
B
399
S
236
G
89
Posts: 24,543
Reputation: 195,430

Post » Fri Sep 13, 2013 4:54 pm

Oops sorry @Captain, totally misunderstood!
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,670


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests