Workflow: ‘Embedding’ fonts

Using this tutorial as the basic workflow, this are the steps to get embedded fonts.

  • Create a stylesheet.css, and input the following:
    src: url('square.ttf') format ('truetype')
    font-weight: normal;
    font-style: normal;
  • The src attribute refers to square.ttf, which is the TTF that must be avaiable.
  • Import via C2 the CSS and TTF so that it is registered in the C2 /Files folder
  • Create a ‘dummy’ Text object instance, then set the webfont and stylesheet parameters.
  • Ask System to wait 0.1 seconds.
  • Then Destory the Text object instance. This guarantees initialisation of the Text object with this font.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s