How to set the font in the html object?

For questions about using Classic.

Post » Thu Aug 14, 2008 3:54 pm

I can't manage to set the font in the html object. I use Set HTML to "<font face="fontname">test" but it says whatever's in the second set of quotations (the font name) is not a recognised system expression or usable object name. "<font size="5">test" results in '5' is not allowed after '<font size='.

If that's not possible, consider this a request to either be able to set the font/size/etc in the html object or to be able to do that via the text object on a per-word basis, so I could [color=#8080FF:2r8ln9gy]write[/color:2r8ln9gy] [size=50:2r8ln9gy]like[/size:2r8ln9gy] [u:2r8ln9gy]this.[/u:2r8ln9gy]
Moderator
B
87
S
32
G
33
Posts: 3,005
Reputation: 27,397

Post » Thu Aug 14, 2008 4:09 pm

If you're going to use " inside expressions, you have to double it up, eg:

"<font face=""Arial"">test"

Otherwise, the parser would have no way of knowing whether you intended to end the expression or not :).
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Thu Aug 14, 2008 4:25 pm

Ah, thanks!
Moderator
B
87
S
32
G
33
Posts: 3,005
Reputation: 27,397


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests