Adding Custom Fonts

Discussion and feedback on Construct 2

Post » Fri Dec 14, 2012 5:52 pm

Hi all,
I'm loving working in Construct 2 except for one thing!
I am trying to add a custom font into C2 and applying it throughout the game.
I have followed the tutorial closely, yet still can't get the fonts to show on any device or browser.

The font file is GoodDog-webfont.woff

The css is

@font-face {
font-family: 'GoodDogRegular';
font-style: normal;
font-weight: 400;
src: local('GoodDogRegular'), url('GoodDog-webfont.woff') format('woff');
}


I have added > System >OnStart of layout>Scoretext> Set webfont "GoodDogRegular" from "webfont.css"

I've tried allsorts of configurations without success..please help.
Many thanks
Matt
B
4
Posts: 3
Reputation: 368

Post » Fri Dec 14, 2012 5:58 pm

If you're using this tutorial, you should be using a full URL to the CSS file (e.g. http://fonts.googleapis.com/.../something.css) rather than just the CSS filename by itself.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,564

Post » Fri Dec 14, 2012 6:18 pm

Thanks Ashley, I'm using this

http://www.scirra.com/tutorials/237/how-to-use-your-own-web-fonts/page-1

which is for adding fonts directly to C2
B
4
Posts: 3
Reputation: 368


Return to Construct 2 General

Who is online

Users browsing this forum: andreyin, Eisenhans, Yahoo [Bot] and 13 guests