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
157
S
64
G
41
Posts: 2,590
Reputation: 34,640

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,679

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
284
S
109
G
91
Posts: 7,317
Reputation: 87,483

Post » Mon Feb 20, 2012 11:36 pm

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

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,679

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
284
S
109
G
91
Posts: 7,317
Reputation: 87,483

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,679

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
387
S
230
G
87
Posts: 24,248
Reputation: 192,228

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,679

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: jakezinis, R0J0hound and 4 guests