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
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

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
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

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
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Mon Feb 20, 2012 11:36 pm

OK then. Coolio ;)
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Mon Feb 20, 2012 11:37 pm

@Kyat... I regret translating your french :O
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

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
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Tue Feb 21, 2012 1:43 am

Oh, no need to apologise, ha ha :D
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

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
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

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
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: MrMaciej and 1 guest