Hi Klaus!
after downloading https://krpano.com/plugins/textfi…_sourcecode.zip
i've try to compile (as Windows-Admin!) embeddedfonts.swf with this as code:
Code
/*
krpano font embedding
*/
package
{
import flash.display.Sprite;
import flash.text.Font;
[SWF(width="0", height="0", backgroundColor="#000000")]
public class embeddedfonts extends Sprite
{
// embed a font files
[Embed(source="fonts/PTsN.ttf", fontName="myFont", fontWeight="normal", fontStyle="normal", unicodeRange="U+0020-U+00FF", mimeType="application/x-font", advancedAntiAliasing="true", embedAsCFF="false")] private var embeddedfont_PTsansNormal : Class;
[Embed(source="fonts/PTsNb.ttf", fontName="myFont", fontWeight="bold", fontStyle="normal", unicodeRange="U+0020-U+00FF", mimeType="application/x-font", advancedAntiAliasing="true", embedAsCFF="false")] private var embeddedfont_PTsansBold : Class;
[Embed(source="fonts/PTsi.ttf", fontName="myFont", fontWeight="normal", fontStyle="italic", unicodeRange="U+0020-U+00FF", mimeType="application/x-font", advancedAntiAliasing="true", embedAsCFF="false")] private var embeddedfont_PTsansItalic : Class;
[Embed(source="fonts/PTsib.ttf", fontName="myFont", fontWeight="bold", fontStyle="italic", unicodeRange="U+0020-U+00FF", mimeType="application/x-font", advancedAntiAliasing="true", embedAsCFF="false")] private var embeddedfont_PTsansBoldItalic : Class;
public function registerplugin(krpano:Object, pluginfullpath:String, plugin:Object):void
{
krpano.trace(1,"registering fonts...");
// register all embedded fonts here
Font.registerFont(embeddedfont_PTsansNormal);
Font.registerFont(embeddedfont_PTsansBold);
Font.registerFont(embeddedfont_PTsansItalic);
Font.registerFont(embeddedfont_PTsansBoldItalic);
}
}
}
Display More
i've got this
Quotecompile embeddedfonts.swf...
Der Befehl "mxmlc" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Drücken Sie eine beliebige Taste . . .
What am i doing wrong?
Greetz
mil