CocoonJS Custom Font! Solved

Get help using Construct 2

Post » Sat Feb 09, 2013 8:29 pm

Hi All.

I have read multiple topics on this subject, but not a single one of them gives a step by step explanation of how to get .ttf fonts to work in the CocoonJS Launcher.
I also saw Ashley post a reply: (You just need to import a TTF file to your project files, then when exporting to CocoonJS C2 automatically puts it in a Fonts subfolder.)

But how do i import the file?
Noob here asking the obvious, but cant find a way on my own.

So if u have the answer, then please give a simple step guide, as in.

A:
B:
C:
Result = fonts visable within Cocoon Launcher.

Thanx for helping!
Kind Regards.
Savvy001Savvy0012013-02-10 01:09:13
B
56
S
20
G
13
Posts: 778
Reputation: 13,204

Post » Sat Feb 09, 2013 9:11 pm

I asked about the same thing recently and was told that proper integration is on the cards, but it might take some time while Ludei and Scirra work out the issues. The feature you mentioned has been removed while that happens.

Here's a workaround for now:

A: Set font face individually per text object in actions -> Font -> set font face (or do it all at once with a family).
B: When you export your project for CocoonJS, create a new folder in the zip called fonts and place your font file there.

Based on the changelog for R117 this workaround could cause compatibility issues but I use this solution with my own project and it works fine.GeometriX2013-02-09 22:19:49
B
56
S
15
G
10
Posts: 910
Reputation: 11,972

Post » Sun Feb 10, 2013 1:08 am

@GeometriX

Thanx!
It works perfectly!

Kind Regards.
Savvy001
B
56
S
20
G
13
Posts: 778
Reputation: 13,204


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 28 guests