Multiple web fonts in text object?

Discussion and feedback on Construct 2

Post » Mon Feb 20, 2012 11:29 pm

I just did what you wrote. @Kyatric we can share credits ;)
ImageImageImageImage
B
158
S
67
G
43
Posts: 2,603
Reputation: 36,003

Post » Mon Feb 20, 2012 11:30 pm

So... just to clarify..
If I set a random text object to all my web fonts at the start of the game, I can use these fonts from ANY object by 'setting font face' to the name of the web font?
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,699

Post » Mon Feb 20, 2012 11:35 pm

Apparently yes.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
295
S
118
G
96
Posts: 7,327
Reputation: 71,246

Post » Mon Feb 20, 2012 11:36 pm

OK then. Coolio ;)
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,699

Post » Mon Feb 20, 2012 11:37 pm

@Kyat... I regret translating your french :O
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,699

Post » Tue Feb 21, 2012 12:48 am

@sqiddster: ROFL, indeed sorry.
I didn't pay attention, that's my kind of testing sentences/debug

I've changed it to something more suitable.

Sorry again.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
295
S
118
G
96
Posts: 7,327
Reputation: 71,246

Post » Tue Feb 21, 2012 1:43 am

Oh, no need to apologise, ha ha :D
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,699

Post » Tue Feb 21, 2012 2:10 am

I just checked the source to the Text object. There is indeed one global store for all web fonts for all text objects. So you should be able to set a web font in one object and use in any other object.

Having a dummy text object which just does 'set web font' on start of layout on all the web fonts you want to use sounds like a good trick.
Scirra Founder
B
402
S
238
G
89
Posts: 24,613
Reputation: 195,993

Post » Tue Feb 21, 2012 10:57 am

And that's exactly what I did ;)
Perhaps this could be added to the web font tutorial?
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,699

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests