protected override Task <ResultStatus> DoCommandOverride(ICommandContext commandContext) { var dynamicFont = FontDataFactory.NewDynamic( FontHelper.PointsToPixels(AssetParameters.Size), AssetParameters.FontName, AssetParameters.Style, AssetParameters.AntiAlias, AssetParameters.UseKerning, AssetParameters.Spacing, AssetParameters.LineSpacing, AssetParameters.DefaultCharacter); var assetManager = new ContentManager(); assetManager.Save(Url, dynamicFont); return(Task.FromResult(ResultStatus.Successful)); }
protected override Task <ResultStatus> DoCommandOverride(ICommandContext commandContext) { var dynamicFont = FontDataFactory.NewDynamic( Parameters.FontType.Size, Parameters.FontSource.GetFontName(), Parameters.FontSource.Style, Parameters.FontType.AntiAlias, useKerning: false, extraSpacing: Parameters.Spacing, extraLineSpacing: Parameters.LineSpacing, defaultCharacter: Parameters.DefaultCharacter); var assetManager = new ContentManager(MicrothreadLocalDatabases.ProviderService); assetManager.Save(Url, dynamicFont); return(Task.FromResult(ResultStatus.Successful)); }