font embed try #2
This commit is contained in:
+1
-1
@@ -1,2 +1,2 @@
|
||||
bin/html5/bin/assets/fonts/Montserrat/Montserrat_SemiBold_600
|
||||
bin/html5/bin/assets/fonts/Montserrat/MontserratSemiBold600
|
||||
bin/html5/bin/manifest/default.json
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -28,7 +28,7 @@
|
||||
#openfl-content { background: #000000; width: 100%; height: 100%; }
|
||||
@font-face {
|
||||
font-family: 'Montserrat SemiBold';
|
||||
src: url('assets/fonts/Montserrat/Montserrat_SemiBold_600.ttf') format('truetype');
|
||||
src: url('assets/fonts/Montserrat/MontserratSemiBold600.ttf') format('truetype');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"name":null,"assets":"aoy4:sizei260936y4:typey4:FONTy9:classNamey60:__ASSET__assets_fonts_montserrat_montserrat_semibold_600_ttfy2:idy27:Montserrat_SemiBold_600.ttfy7:preloadtgh","rootPath":null,"version":2,"libraryArgs":[],"libraryType":null}
|
||||
{"name":null,"assets":"aoy4:sizei260936y4:typey4:FONTy9:classNamey58:__ASSET__assets_fonts_montserrat_montserratsemibold600_ttfy2:idy21:MontserratSemiBold600y7:preloadtgh","rootPath":null,"version":2,"libraryArgs":[],"libraryType":null}
|
||||
@@ -35,7 +35,7 @@ class ApplicationMain
|
||||
ManifestResources.init(config);
|
||||
#end
|
||||
|
||||
app.meta["build"] = "4";
|
||||
app.meta["build"] = "5";
|
||||
app.meta["company"] = "Nekotoro";
|
||||
app.meta["file"] = "LPTCManager2026";
|
||||
app.meta["name"] = "lepetittrot.com - manager";
|
||||
|
||||
@@ -68,13 +68,13 @@ import sys.FileSystem;
|
||||
}
|
||||
|
||||
#if (openfl && !flash && !display)
|
||||
openfl.text.Font.registerFont (__ASSET__OPENFL__assets_fonts_montserrat_montserrat_semibold_600_ttf);
|
||||
openfl.text.Font.registerFont (__ASSET__OPENFL__assets_fonts_montserrat_montserratsemibold600_ttf);
|
||||
|
||||
#end
|
||||
|
||||
var data, manifest, library, bundle;
|
||||
|
||||
data = '{"name":null,"assets":"aoy4:sizei260936y4:typey4:FONTy9:classNamey60:__ASSET__assets_fonts_montserrat_montserrat_semibold_600_ttfy2:idy27:Montserrat_SemiBold_600.ttfy7:preloadtgh","rootPath":null,"version":2,"libraryArgs":[],"libraryType":null}';
|
||||
data = '{"name":null,"assets":"aoy4:sizei260936y4:typey4:FONTy9:classNamey58:__ASSET__assets_fonts_montserrat_montserratsemibold600_ttfy2:idy21:MontserratSemiBold600y7:preloadtgh","rootPath":null,"version":2,"libraryArgs":[],"libraryType":null}';
|
||||
manifest = AssetManifest.parse (data, rootPath);
|
||||
library = AssetLibrary.fromManifest (manifest);
|
||||
Assets.registerLibrary ("default", library);
|
||||
@@ -93,20 +93,20 @@ import sys.FileSystem;
|
||||
#if !display
|
||||
#if flash
|
||||
|
||||
@:keep @:bind @:noCompletion #if display private #end class __ASSET__assets_fonts_montserrat_montserrat_semibold_600_ttf extends null { }
|
||||
@:keep @:bind @:noCompletion #if display private #end class __ASSET__assets_fonts_montserrat_montserratsemibold600_ttf extends null { }
|
||||
@:keep @:bind @:noCompletion #if display private #end class __ASSET__manifest_default_json extends null { }
|
||||
|
||||
|
||||
#elseif (desktop || cpp)
|
||||
|
||||
@:keep @:font("bin/html5/obj/webfont/Montserrat_SemiBold_600.ttf") @:noCompletion #if display private #end class __ASSET__assets_fonts_montserrat_montserrat_semibold_600_ttf extends lime.text.Font {}
|
||||
@:keep @:font("bin/html5/obj/webfont/MontserratSemiBold600.ttf") @:noCompletion #if display private #end class __ASSET__assets_fonts_montserrat_montserratsemibold600_ttf extends lime.text.Font {}
|
||||
@:keep @:file("") @:noCompletion #if display private #end class __ASSET__manifest_default_json extends haxe.io.Bytes {}
|
||||
|
||||
|
||||
|
||||
#else
|
||||
|
||||
@:keep @:expose('__ASSET__assets_fonts_montserrat_montserrat_semibold_600_ttf') @:noCompletion #if display private #end class __ASSET__assets_fonts_montserrat_montserrat_semibold_600_ttf extends lime.text.Font { public function new () { #if !html5 __fontPath = "assets/fonts/Montserrat/Montserrat_SemiBold_600"; #else ascender = 968; descender = -251; height = 1219; numGlyphs = 1943; underlinePosition = -100; underlineThickness = 50; unitsPerEM = 1000; #end name = "Montserrat SemiBold"; super (); }}
|
||||
@:keep @:expose('__ASSET__assets_fonts_montserrat_montserratsemibold600_ttf') @:noCompletion #if display private #end class __ASSET__assets_fonts_montserrat_montserratsemibold600_ttf extends lime.text.Font { public function new () { #if !html5 __fontPath = "assets/fonts/Montserrat/MontserratSemiBold600"; #else ascender = 968; descender = -251; height = 1219; numGlyphs = 1943; underlinePosition = -100; underlineThickness = 50; unitsPerEM = 1000; #end name = "Montserrat SemiBold"; super (); }}
|
||||
|
||||
|
||||
#end
|
||||
@@ -114,10 +114,10 @@ import sys.FileSystem;
|
||||
#if (openfl && !flash)
|
||||
|
||||
#if html5
|
||||
@:keep @:expose('__ASSET__OPENFL__assets_fonts_montserrat_montserrat_semibold_600_ttf') @:noCompletion #if display private #end class __ASSET__OPENFL__assets_fonts_montserrat_montserrat_semibold_600_ttf extends openfl.text.Font { public function new () { __fromLimeFont (new __ASSET__assets_fonts_montserrat_montserrat_semibold_600_ttf ()); super (); }}
|
||||
@:keep @:expose('__ASSET__OPENFL__assets_fonts_montserrat_montserratsemibold600_ttf') @:noCompletion #if display private #end class __ASSET__OPENFL__assets_fonts_montserrat_montserratsemibold600_ttf extends openfl.text.Font { public function new () { __fromLimeFont (new __ASSET__assets_fonts_montserrat_montserratsemibold600_ttf ()); super (); }}
|
||||
|
||||
#else
|
||||
@:keep @:expose('__ASSET__OPENFL__assets_fonts_montserrat_montserrat_semibold_600_ttf') @:noCompletion #if display private #end class __ASSET__OPENFL__assets_fonts_montserrat_montserrat_semibold_600_ttf extends openfl.text.Font { public function new () { __fromLimeFont (new __ASSET__assets_fonts_montserrat_montserrat_semibold_600_ttf ()); super (); }}
|
||||
@:keep @:expose('__ASSET__OPENFL__assets_fonts_montserrat_montserratsemibold600_ttf') @:noCompletion #if display private #end class __ASSET__OPENFL__assets_fonts_montserrat_montserratsemibold600_ttf extends openfl.text.Font { public function new () { __fromLimeFont (new __ASSET__assets_fonts_montserrat_montserratsemibold600_ttf ()); super (); }}
|
||||
|
||||
#end
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user