Skip to main content
vagrantrobbie
Participating Frequently
November 28, 2016
Question

AIR SDK 24 embedFonts - fontPath contains an invalid value

  • November 28, 2016
  • 1 reply
  • 1267 views

I am using AIR SDK 24 Beta and trying to use the new Cusomt Fonts feature.

I am on macOS Sierra, compiling with IntelliJ.

When I try to include a custom TrueType font in the application XML, a compiler error is thrown

error 105: application.embedFonts.font.fontPath contain an invalid path

I have tried both absolute an relative URLs to the font. Are there any characters we can not use in the file path? I have set the font to be included in the files to package.

This topic has been closed for replies.

1 reply

Community Manager
November 29, 2016

Hi,

We tried to check with IntelliJ and we are able to include a custom TrueType font in the application xml successfully. We have used relative paths for the same.

For example:

If ttf file is placed at src/ttf/c1.ttf, the relative path used in application xml is ttf/c1.ttf

This works fine. Please give it a try and let us know.

Thanks,

Adobe AIR Team

vagrantrobbie
Participating Frequently
November 29, 2016

thanks heaps!

This now works. Sorry, I was using fonts in a directory above the 'src'. I moved the fonts I want to use in the src folder, in another directory called ttf (as suggested).

Thanks for the help!