header fonts
This commit is contained in:
@@ -68,13 +68,16 @@ import sys.FileSystem;
|
||||
}
|
||||
|
||||
#if (openfl && !flash && !display)
|
||||
openfl.text.Font.registerFont (__ASSET__OPENFL__assets_fonts_montserrat_montserratsemibold600_ttf);
|
||||
openfl.text.Font.registerFont (__ASSET__OPENFL__assets_fonts_montserrat_montserratlight300_ttf);
|
||||
openfl.text.Font.registerFont (__ASSET__OPENFL__assets_fonts_montserrat_montserratregular400_ttf);
|
||||
openfl.text.Font.registerFont (__ASSET__OPENFL__assets_fonts_montserrat_montserratmedium500_ttf);
|
||||
openfl.text.Font.registerFont (__ASSET__OPENFL__assets_fonts_montserrat_montserratbold700_ttf);
|
||||
|
||||
#end
|
||||
|
||||
var data, manifest, library, bundle;
|
||||
|
||||
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}';
|
||||
data = '{"name":null,"assets":"aoy4:sizei259416y4:typey4:FONTy9:classNamey55:__ASSET__assets_fonts_montserrat_montserratlight300_ttfy2:idy18:MontserratLight300y7:preloadtgoR0i263192R1R2R3y57:__ASSET__assets_fonts_montserrat_montserratregular400_ttfR5y20:MontserratRegular400R7tgoR0i260236R1R2R3y56:__ASSET__assets_fonts_montserrat_montserratmedium500_ttfR5y19:MontserratMedium500R7tgoR0i261588R1R2R3y54:__ASSET__assets_fonts_montserrat_montserratbold700_ttfR5y17:MontserratBold700R7tgh","rootPath":null,"version":2,"libraryArgs":[],"libraryType":null}';
|
||||
manifest = AssetManifest.parse (data, rootPath);
|
||||
library = AssetLibrary.fromManifest (manifest);
|
||||
Assets.registerLibrary ("default", library);
|
||||
@@ -93,20 +96,29 @@ import sys.FileSystem;
|
||||
#if !display
|
||||
#if flash
|
||||
|
||||
@: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__assets_fonts_montserrat_montserratlight300_ttf extends null { }
|
||||
@:keep @:bind @:noCompletion #if display private #end class __ASSET__assets_fonts_montserrat_montserratregular400_ttf extends null { }
|
||||
@:keep @:bind @:noCompletion #if display private #end class __ASSET__assets_fonts_montserrat_montserratmedium500_ttf extends null { }
|
||||
@:keep @:bind @:noCompletion #if display private #end class __ASSET__assets_fonts_montserrat_montserratbold700_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/MontserratSemiBold600.ttf") @:noCompletion #if display private #end class __ASSET__assets_fonts_montserrat_montserratsemibold600_ttf extends lime.text.Font {}
|
||||
@:keep @:font("bin/html5/obj/webfont/MontserratLight300.ttf") @:noCompletion #if display private #end class __ASSET__assets_fonts_montserrat_montserratlight300_ttf extends lime.text.Font {}
|
||||
@:keep @:font("bin/html5/obj/webfont/MontserratRegular400.ttf") @:noCompletion #if display private #end class __ASSET__assets_fonts_montserrat_montserratregular400_ttf extends lime.text.Font {}
|
||||
@:keep @:font("bin/html5/obj/webfont/MontserratMedium500.ttf") @:noCompletion #if display private #end class __ASSET__assets_fonts_montserrat_montserratmedium500_ttf extends lime.text.Font {}
|
||||
@:keep @:font("bin/html5/obj/webfont/MontserratBold700.ttf") @:noCompletion #if display private #end class __ASSET__assets_fonts_montserrat_montserratbold700_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_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 (); }}
|
||||
@:keep @:expose('__ASSET__assets_fonts_montserrat_montserratlight300_ttf') @:noCompletion #if display private #end class __ASSET__assets_fonts_montserrat_montserratlight300_ttf extends lime.text.Font { public function new () { #if !html5 __fontPath = "assets/fonts/Montserrat/MontserratLight300"; #else ascender = 968; descender = -251; height = 1219; numGlyphs = 1943; underlinePosition = -100; underlineThickness = 50; unitsPerEM = 1000; #end name = "Montserrat Light"; super (); }}
|
||||
@:keep @:expose('__ASSET__assets_fonts_montserrat_montserratregular400_ttf') @:noCompletion #if display private #end class __ASSET__assets_fonts_montserrat_montserratregular400_ttf extends lime.text.Font { public function new () { #if !html5 __fontPath = "assets/fonts/Montserrat/MontserratRegular400"; #else ascender = 968; descender = -251; height = 1219; numGlyphs = 1943; underlinePosition = -100; underlineThickness = 50; unitsPerEM = 1000; #end name = "Montserrat Regular"; super (); }}
|
||||
@:keep @:expose('__ASSET__assets_fonts_montserrat_montserratmedium500_ttf') @:noCompletion #if display private #end class __ASSET__assets_fonts_montserrat_montserratmedium500_ttf extends lime.text.Font { public function new () { #if !html5 __fontPath = "assets/fonts/Montserrat/MontserratMedium500"; #else ascender = 968; descender = -251; height = 1219; numGlyphs = 1943; underlinePosition = -100; underlineThickness = 50; unitsPerEM = 1000; #end name = "Montserrat Medium"; super (); }}
|
||||
@:keep @:expose('__ASSET__assets_fonts_montserrat_montserratbold700_ttf') @:noCompletion #if display private #end class __ASSET__assets_fonts_montserrat_montserratbold700_ttf extends lime.text.Font { public function new () { #if !html5 __fontPath = "assets/fonts/Montserrat/MontserratBold700"; #else ascender = 968; descender = -251; height = 1219; numGlyphs = 1943; underlinePosition = -100; underlineThickness = 50; unitsPerEM = 1000; #end name = "Montserrat Bold"; super (); }}
|
||||
|
||||
|
||||
#end
|
||||
@@ -114,10 +126,16 @@ import sys.FileSystem;
|
||||
#if (openfl && !flash)
|
||||
|
||||
#if html5
|
||||
@: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 (); }}
|
||||
@:keep @:expose('__ASSET__OPENFL__assets_fonts_montserrat_montserratlight300_ttf') @:noCompletion #if display private #end class __ASSET__OPENFL__assets_fonts_montserrat_montserratlight300_ttf extends openfl.text.Font { public function new () { __fromLimeFont (new __ASSET__assets_fonts_montserrat_montserratlight300_ttf ()); super (); }}
|
||||
@:keep @:expose('__ASSET__OPENFL__assets_fonts_montserrat_montserratregular400_ttf') @:noCompletion #if display private #end class __ASSET__OPENFL__assets_fonts_montserrat_montserratregular400_ttf extends openfl.text.Font { public function new () { __fromLimeFont (new __ASSET__assets_fonts_montserrat_montserratregular400_ttf ()); super (); }}
|
||||
@:keep @:expose('__ASSET__OPENFL__assets_fonts_montserrat_montserratmedium500_ttf') @:noCompletion #if display private #end class __ASSET__OPENFL__assets_fonts_montserrat_montserratmedium500_ttf extends openfl.text.Font { public function new () { __fromLimeFont (new __ASSET__assets_fonts_montserrat_montserratmedium500_ttf ()); super (); }}
|
||||
@:keep @:expose('__ASSET__OPENFL__assets_fonts_montserrat_montserratbold700_ttf') @:noCompletion #if display private #end class __ASSET__OPENFL__assets_fonts_montserrat_montserratbold700_ttf extends openfl.text.Font { public function new () { __fromLimeFont (new __ASSET__assets_fonts_montserrat_montserratbold700_ttf ()); super (); }}
|
||||
|
||||
#else
|
||||
@: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 (); }}
|
||||
@:keep @:expose('__ASSET__OPENFL__assets_fonts_montserrat_montserratlight300_ttf') @:noCompletion #if display private #end class __ASSET__OPENFL__assets_fonts_montserrat_montserratlight300_ttf extends openfl.text.Font { public function new () { __fromLimeFont (new __ASSET__assets_fonts_montserrat_montserratlight300_ttf ()); super (); }}
|
||||
@:keep @:expose('__ASSET__OPENFL__assets_fonts_montserrat_montserratregular400_ttf') @:noCompletion #if display private #end class __ASSET__OPENFL__assets_fonts_montserrat_montserratregular400_ttf extends openfl.text.Font { public function new () { __fromLimeFont (new __ASSET__assets_fonts_montserrat_montserratregular400_ttf ()); super (); }}
|
||||
@:keep @:expose('__ASSET__OPENFL__assets_fonts_montserrat_montserratmedium500_ttf') @:noCompletion #if display private #end class __ASSET__OPENFL__assets_fonts_montserrat_montserratmedium500_ttf extends openfl.text.Font { public function new () { __fromLimeFont (new __ASSET__assets_fonts_montserrat_montserratmedium500_ttf ()); super (); }}
|
||||
@:keep @:expose('__ASSET__OPENFL__assets_fonts_montserrat_montserratbold700_ttf') @:noCompletion #if display private #end class __ASSET__OPENFL__assets_fonts_montserrat_montserratbold700_ttf extends openfl.text.Font { public function new () { __fromLimeFont (new __ASSET__assets_fonts_montserrat_montserratbold700_ttf ()); super (); }}
|
||||
|
||||
#end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user