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
147
S
58
G
38
Posts: 2,557
Reputation: 32,526

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

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
258
S
90
G
48
Posts: 7,084
Reputation: 62,904

Post » Mon Feb 20, 2012 11:36 pm

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

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

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
258
S
90
G
48
Posts: 7,084
Reputation: 62,904

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

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
367
S
217
G
82
Posts: 23,264
Reputation: 183,863

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

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 2 guests