Why my Text Font Change in .apk to Ariel

Discussion and feedback on Construct 2

Post » Sat Jan 16, 2016 5:17 am

in construct 2 i set the text font to Comic Sans MS
when i test game in the browser it is ok
but after i build the game all text switch to Ariel

Why my Text Font Change from Comic San to Ariel
Image
B
35
S
11
G
2
Posts: 312
Reputation: 3,714

Post » Sat Jan 16, 2016 5:23 am

hi @wizdigitech,
are you just setting in the instance Font property or using "set web font"?
B
18
S
4
G
1
Posts: 143
Reputation: 1,868

Post » Sat Jan 16, 2016 6:51 am

@frcol yes i just change the Text Font Property
see in my word search dlp game the text font property was set to comic sans
as you can see it ariel :( :(

|
v
v
v
Image
B
35
S
11
G
2
Posts: 312
Reputation: 3,714

Post » Sat Jan 16, 2016 12:37 pm

it may be that the comic sans is not a supported font anymore for the android compiler u are using... see their settings on that... if u using ludei they have settings on that manner... if ur using intelxdk i think they have it two not sure... if u use some other stuff... have no idea... i didn't done a mobile wrap in a while im focused on standalone apps..(desktop).


that if its a mobile wrap u are doing... u didn't specified... i just wildly guessed it... if its a html5 wrap u do for browsers... then it might be script minimize if u using that?

or u forgot to set the font familly for all the text of the same type...
Last edited by gamecorpstudio on Sat Jan 16, 2016 12:57 pm, edited 1 time in total.
B
70
S
20
G
67
Posts: 1,314
Reputation: 42,301

Post » Sat Jan 16, 2016 12:40 pm

Web fonts are pretty but a pain to get working. You need to create a hidden instance of each text object at the start of layout and assign it the web font at the same time. You can use a wait and destroy it later. I have found that this doesn't work with all web fonts and the only way to know is to test/preview on a computer that doesn't have the font you're using installed.
I only occasionally visit - I'm learning C# for Unity, but c2 is still a respectable game engine imo....
B
73
S
19
G
66
Posts: 2,198
Reputation: 42,188

Post » Sat Jan 16, 2016 9:32 pm

@gamecorpstudio @Colludium @ R0J0hound this is the only setting i change on all text object in my games, nothing advance nor technical (no web font) just the basic setting change text property.

test file
https://drive.google.com/file/d/0BznEFr ... sp=sharing

here is the test build apk using intel xdk
https://drive.google.com/file/d/0BznEFr ... sp=sharing
Image
B
35
S
11
G
2
Posts: 312
Reputation: 3,714

Post » Sat Jan 16, 2016 10:38 pm

Try following the guidance in this tutorial. There are plenty of things you need to do for web font loading, and this tutorial provides an excellent summary. Also note the work-around at the bottom - you should create a text object on layout start and then immediately load load your web font into it.
I only occasionally visit - I'm learning C# for Unity, but c2 is still a respectable game engine imo....
B
73
S
19
G
66
Posts: 2,198
Reputation: 42,188


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests