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
141
S
58
G
37
Posts: 2,549
Reputation: 31,736

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

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
253
S
87
G
42
Posts: 7,039
Reputation: 59,293

Post » Mon Feb 20, 2012 11:36 pm

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

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

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
253
S
87
G
42
Posts: 7,039
Reputation: 59,293

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

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
363
S
216
G
75
Posts: 23,120
Reputation: 180,534

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

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: JerkTheRipper and 11 guests