Hi Klaus!
This is what I'm doing but I can't get the embeded font to show in texfield
I opened compile.bat from this folder: examples/as3-interface/plugin-sources/textfield/
with a text editor
then:
1. download the Flex SDK from here: (use the latest production release)
http://opensource.adobe.com/flexsdk/ DONE!
2. extract the zip package anywhere
DONE!
3. edit the line below and set there the path where you have extracted the Flex SDK package:
DONE!
in my case it is:
set FLEXSDKPATH=E:\krpano\flexSDK
save .bat file
ok no I open textfield.as and add this line:
[Embed(source="fonts/Aladin-Regular.ttf", fontFamily="Aladin", mimeType='application/x-font' )] private var AladinFont:Class;
I of course have the font saved in the folder fonts/Aladin-Regular.ttf, relative to textfield.as location.
this is where I add the line:
[SWF(width="400", height="300", backgroundColor="#000000")]
public class textfield extends Sprite
{
[Embed(source="fonts/Aladin-Regular.ttf", fontFamily="Aladin", mimeType='application/x-font' )] private var AladinFont:Class;
// krpano as3 interface
private var krpano:krpano_as3_interface = null;
...
Ok, now I save textfield.as and double click compile.bat
I get a textielf.swf file in the same directory. no errors in cmd window.
now I take my krpano xml.
in CSS properties of my textfield, I change font-family to "Aladin" wich is the name of my font.
now open the tour, and I get the default font, not the one I want to embed.
Can someone help me with this and let me know where am I failing?
thanks a lot! =)