Exception during transcoding – Unable to build font

Exception during transcoding: Cannot embed local font ‘assets/fonts/myfont_rg.ttf’ as CFF. The CSS @font-face ‘local()’ syntax is not supported. Please specify a path directly to a font file using the ‘url()’ syntax. For [Embed] syntax the ‘systemFont’ attribute is not supported. Please specify a path directly to a font file using the ‘source’ attribute.

Solution
Use url() instead of local();

Before

@font-face {
	fontFamily: "MyFont";
	src: local("assets/fonts/font_rg.ttf");
}

After

@font-face {
	fontFamily: "MyFont";
	src: url("assets/fonts/font_rg.ttf");
}

About Judah

Please note in the comments if this has helped you or not.
This entry was posted in Compiler. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

Highlight your code before posting code:

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="">