private void InitializeBuilder() { creator = new FontCreator(); creator.Parameters = Parameters; creator.SetRenderTarget(renderTarget, zoomRenderTarget); SynchronizeParameters(); }
private static void ScriptBuild(IEnumerable <string> files) { foreach (var file in files) { var parameters = ReadParameters(file); FontCreator creator = new FontCreator(); creator.Parameters = parameters; creator.CreateFont(); string saveName = parameters.SaveName; if (string.IsNullOrWhiteSpace(saveName)) { saveName = parameters.Family; } string filename = $"output/{saveName}.yaml"; creator.SaveFont(filename, saveName, $"Fonts/{saveName}"); } }