How do I get these fonts working

Get help using Construct 2

Post » Wed Aug 06, 2014 9:58 pm

Image
https://dl.dropboxusercontent.com/u/49149597/fontsbug.png This link has my project settings visible!

That should say it all really. Why are the two fonts not different?
To the person who will ask: Title is the "Black and white" and options is the "text".

I got them from this site: http://www.google.com/fonts/#
I have not downloaded them or added them to the project, to be in the same position that the player would be.

In theory this should work, I believe. What's up? :geek: :?:
B
20
S
7
G
4
Posts: 322
Reputation: 4,521

Post » Wed Aug 06, 2014 10:11 pm

You can't use fonts that way. You need to use SpriteFont object.
Read the manual concerning this, I believe it should explain why.
Image
B
75
S
23
G
3
Posts: 673
Reputation: 9,283

Post » Wed Aug 06, 2014 10:14 pm

@TheDom

I did (https://www.scirra.com/tutorials/236/using-web-fonts-in-the-text-object), but not entirely..


Is your point still valid?
B
20
S
7
G
4
Posts: 322
Reputation: 4,521

Post » Wed Aug 06, 2014 10:19 pm

Hey, sorry, my mistake. I forgot about that..
B
75
S
23
G
3
Posts: 673
Reputation: 9,283

Post » Wed Aug 06, 2014 10:21 pm

@TheDom

No worries. Thanks anyway.

@EveryoneElse
Still need an answer to this problem or I'll have to report it as a bug, as I see no logical answer.
B
20
S
7
G
4
Posts: 322
Reputation: 4,521

Post » Wed Aug 06, 2014 11:10 pm

You set the font size via the 'Set font size' action. You just need to include the URL in one of the text objects, but give all the same Family name. You then set the font size specifically. It takes a bit to down load the font, so you just need that once in 'On start of layout'.
You do not have the required permissions to view the files attached to this post.
ImageImageImage
B
71
S
22
G
247
Posts: 3,756
Reputation: 137,558

Post » Wed Aug 06, 2014 11:15 pm

@blackhornet

Ok so I get what you're doing. I can see how setting the family name works too; however, Josefin Sans has many variants e.g. "Thin 100", "Semi-Bold 600".. nothing to do with the actual pt sizing.

In my example I want to use those different ones. How do I do this correctly?

EDIT: By 'variants' I meant "Font styles"
B
20
S
7
G
4
Posts: 322
Reputation: 4,521

Post » Wed Aug 06, 2014 11:50 pm

'Set font face', "Josefin Sans", bold

I don't know how you'd go beyond the 4 options C2 provides.
ImageImageImage
B
71
S
22
G
247
Posts: 3,756
Reputation: 137,558

Post » Thu Aug 07, 2014 12:33 am

Thanks for that @blackhornet . This could be useful to me too
Image
B
75
S
23
G
3
Posts: 673
Reputation: 9,283

Post » Thu Aug 07, 2014 9:19 am

@blackhornet

OK, I will. It's a shame.

I'd recommend downloading the font just so you have a 100% idea of what I'm referring to.
B
20
S
7
G
4
Posts: 322
Reputation: 4,521


Return to How do I....?

Who is online

Users browsing this forum: worm1 and 40 guests