mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-07 19:08:14 +00:00
Better embed testdata
This commit is contained in:
@@ -12,6 +12,7 @@ package
|
||||
{
|
||||
TestBinaryData;
|
||||
TestFont;
|
||||
TestFontCFF;
|
||||
TestImage;
|
||||
TestImageGrid;
|
||||
//TestImageSvg;
|
||||
|
||||
@@ -11,7 +11,8 @@ package
|
||||
public class MainClassesFlex extends Sprite
|
||||
{
|
||||
TestBinaryData;
|
||||
//TestFont;
|
||||
TestFont;
|
||||
//TestFontCFF;
|
||||
TestImage;
|
||||
TestImageGrid;
|
||||
TestImageSvg;
|
||||
|
||||
@@ -32,9 +32,29 @@ package embed_attributes
|
||||
[Embed(source="../../assets/sound.mp3")]
|
||||
public var soundClass:Class;
|
||||
|
||||
//not supported in Flex, AIR only
|
||||
[Embed(source="../../assets/font.ttf", fontFamily="Great Vibes", fontWeight= "normal", fontStyle = "normal", mimeType="application/x-font-truetype")]
|
||||
[Embed(
|
||||
source="../../assets/font.ttf",
|
||||
fontFamily="Great Vibes",
|
||||
fontWeight="normal",
|
||||
fontStyle="normal",
|
||||
mimeType="application/x-font-truetype",
|
||||
unicodeRange="U+0020,U+0041-005A",
|
||||
advancedAntiAliasing="true",
|
||||
embedAsCFF="false"
|
||||
)]
|
||||
public var fontClass:Class;
|
||||
|
||||
[Embed(
|
||||
source="../../assets/font.ttf",
|
||||
fontFamily="Great Vibes",
|
||||
fontWeight="normal",
|
||||
fontStyle="normal",
|
||||
mimeType="application/x-font-truetype",
|
||||
unicodeRange="U+0030-0039,U+002E",
|
||||
advancedAntiAliasing="true",
|
||||
embedAsCFF="true"
|
||||
)]
|
||||
public var fontClassCFF:Class;
|
||||
|
||||
[Embed(source="../../assets/data.bin", mimeType="application/octet-stream")]
|
||||
public var binaryDataClass:Class;
|
||||
|
||||
@@ -32,10 +32,18 @@ package embed_attributes
|
||||
[Embed(source="../../assets/sound.mp3")]
|
||||
public var soundClass:Class;
|
||||
|
||||
//not supported in Flex, AIR only
|
||||
//[Embed(source="../../assets/font.ttf", fontFamily="Great Vibes", fontWeight= "normal", fontStyle = "normal", mimeType="application/x-font-truetype")]
|
||||
//public var fontClass:Class;
|
||||
|
||||
[Embed(
|
||||
source="../../assets/font.ttf",
|
||||
fontFamily="Great Vibes",
|
||||
fontWeight="normal",
|
||||
fontStyle="normal",
|
||||
mimeType="application/x-font-truetype",
|
||||
unicodeRange="U+0020,U+0041-005A",
|
||||
advancedAntiAliasing="true",
|
||||
embedAsCFF="false"
|
||||
)]
|
||||
public var fontClass:Class;
|
||||
|
||||
[Embed(source="../../assets/data.bin", mimeType="application/octet-stream")]
|
||||
public var binaryDataClass:Class;
|
||||
|
||||
|
||||
@@ -2,8 +2,16 @@ package embed_classes
|
||||
{
|
||||
import flash.text.Font;
|
||||
|
||||
//not supported in Flex, AIR only
|
||||
[Embed(source="../../assets/font.ttf", fontFamily="Great Vibes", fontWeight= "normal", fontStyle = "normal", mimeType="application/x-font-truetype")]
|
||||
[Embed(
|
||||
source="../../assets/font.ttf",
|
||||
fontFamily="Great Vibes",
|
||||
fontWeight="normal",
|
||||
fontStyle="normal",
|
||||
mimeType="application/x-font-truetype",
|
||||
unicodeRange="U+0020,U+0041-005A",
|
||||
advancedAntiAliasing="true",
|
||||
embedAsCFF="false"
|
||||
)]
|
||||
public class TestFont extends Font
|
||||
{
|
||||
}
|
||||
|
||||
18
libsrc/ffdec_lib/testdata/as3_embed/src/embed_classes/TestFontCFF.as
vendored
Normal file
18
libsrc/ffdec_lib/testdata/as3_embed/src/embed_classes/TestFontCFF.as
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
package embed_classes
|
||||
{
|
||||
import flash.text.Font;
|
||||
|
||||
[Embed(
|
||||
source="../../assets/font.ttf",
|
||||
fontFamily="Great Vibes",
|
||||
fontWeight="normal",
|
||||
fontStyle="normal",
|
||||
mimeType="application/x-font-truetype",
|
||||
unicodeRange="U+0030-0039,U+002E",
|
||||
advancedAntiAliasing="true",
|
||||
embedAsCFF="true"
|
||||
)]
|
||||
public class TestFontCFF extends Font
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user