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");
}