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:MontserratSemiBold600gh","rootPath":null,"version":2,"libraryArgs":[],"libraryType":null}';
|
||||
data = '{"name":null,"assets":"aoy4:sizei259416y4:typey4:FONTy9:classNamey55:__ASSET__assets_fonts_montserrat_montserratlight300_ttfy2:idy18:MontserratLight300goR0i263192R1R2R3y57:__ASSET__assets_fonts_montserrat_montserratregular400_ttfR5y20:MontserratRegular400goR0i260236R1R2R3y56:__ASSET__assets_fonts_montserrat_montserratmedium500_ttfR5y19:MontserratMedium500goR0i261588R1R2R3y54:__ASSET__assets_fonts_montserrat_montserratbold700_ttfR5y17:MontserratBold700gh","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 flash.text.Font { }
|
||||
@:keep @:bind @:noCompletion #if display private #end class __ASSET__assets_fonts_montserrat_montserratlight300_ttf extends flash.text.Font { }
|
||||
@:keep @:bind @:noCompletion #if display private #end class __ASSET__assets_fonts_montserrat_montserratregular400_ttf extends flash.text.Font { }
|
||||
@:keep @:bind @:noCompletion #if display private #end class __ASSET__assets_fonts_montserrat_montserratmedium500_ttf extends flash.text.Font { }
|
||||
@:keep @:bind @:noCompletion #if display private #end class __ASSET__assets_fonts_montserrat_montserratbold700_ttf extends flash.text.Font { }
|
||||
@:keep @:bind @:noCompletion #if display private #end class __ASSET__manifest_default_json extends flash.utils.ByteArray { }
|
||||
|
||||
|
||||
#elseif (desktop || cpp)
|
||||
|
||||
@:keep @:font("assets/fonts/Montserrat/MontserratSemiBold600.ttf") @:noCompletion #if display private #end class __ASSET__assets_fonts_montserrat_montserratsemibold600_ttf extends lime.text.Font {}
|
||||
@:keep @:font("assets/fonts/Montserrat/MontserratLight300.ttf") @:noCompletion #if display private #end class __ASSET__assets_fonts_montserrat_montserratlight300_ttf extends lime.text.Font {}
|
||||
@:keep @:font("assets/fonts/Montserrat/MontserratRegular400.ttf") @:noCompletion #if display private #end class __ASSET__assets_fonts_montserrat_montserratregular400_ttf extends lime.text.Font {}
|
||||
@:keep @:font("assets/fonts/Montserrat/MontserratMedium500.ttf") @:noCompletion #if display private #end class __ASSET__assets_fonts_montserrat_montserratmedium500_ttf extends lime.text.Font {}
|
||||
@:keep @:font("assets/fonts/Montserrat/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.ttf"; #else ascender = null; descender = null; height = null; numGlyphs = null; underlinePosition = null; underlineThickness = null; unitsPerEM = null; #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.ttf"; #else ascender = null; descender = null; height = null; numGlyphs = null; underlinePosition = null; underlineThickness = null; unitsPerEM = null; #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.ttf"; #else ascender = null; descender = null; height = null; numGlyphs = null; underlinePosition = null; underlineThickness = null; unitsPerEM = null; #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.ttf"; #else ascender = null; descender = null; height = null; numGlyphs = null; underlinePosition = null; underlineThickness = null; unitsPerEM = null; #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.ttf"; #else ascender = null; descender = null; height = null; numGlyphs = null; underlinePosition = null; underlineThickness = null; unitsPerEM = null; #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