Search code examples
csswindows-8

Adding fonts in windows 8 javascript application (@font-face)


Working on windows 8 java script application, I added new font as folows:

  @font-face{
  font-family: "myalpha";
  src: url("/fonts/myAlpha.ttf") format('truetype');
  } 

this produced an error:

@font-face failed OpenType embedding permission check. Permission must be Installable.

What does this mean? are truetype fonts are not supported?


Solution

  • You need to change the embedding level of the True Type Font to installable embedding allowed. You can use this tool, but make sure that the font license allows embedding.