Use web fonts with Node-Webkit?

Get help using Construct 2

Post » Tue Aug 20, 2013 4:44 pm

@ghost yes, I mentioned this method in the OP but it seems quite redundant to convert the webfont into a TFF then back into a webfont.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,699

Post » Tue Aug 20, 2013 4:46 pm

@sqiddster
I was using webfonts but deprecated it, specially with the antialising issues - each browser renders them different...
In the end I found spritefonts much more pleasing and better suited to the task.
B
12
S
3
G
1
Posts: 347
Reputation: 2,866

Post » Tue Aug 20, 2013 4:48 pm

[QUOTE=sqiddster] @ghost yes, I mentioned this method in the OP but it seems quite redundant to convert the webfont into a TFF then back into a webfont.[/QUOTE] webfonts have their own format, if you already got them there's no need to convert them to TTF,
also, I highly doubt there's an (easy) way to convert a webfont to a TTF, mainly to deter piracy.
B
12
S
3
G
1
Posts: 347
Reputation: 2,866

Post » Tue Aug 20, 2013 4:48 pm

@squidster

As far as I know, for any font to be used on a computer it has to be installed. Webfonts however, can be used by the browser, as long as there is a connection to the internet.
The only way to achieve what you want seems to be using spritefont.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Aug 20, 2013 4:55 pm

@LittleStain C2 can use webfonts stored in the game's file system - look at the tutorial linked in the OP.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,699

Post » Tue Aug 20, 2013 8:05 pm

One solution is to use the keyword "local" in the css file. See http://www.scirra.com/forum/offline-web-fonts_topic57335.html for more.

I hope this helps.
B
12
S
3
G
4
Posts: 57
Reputation: 3,186

Post » Tue Aug 20, 2013 8:09 pm

@Captain Thanks, I had forgotten about that thread.

Now, if only I could download the .woff from Google directly, but running it through the converter shouldn't be too much trouble I suppose.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,699

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 11 guests