-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
68 lines (61 loc) · 1.43 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
namespace FontTransformers
{
class Program
{
static void Main(string[] args)
{
ProcessSVG(args);
}
static void ProcessSVG(string[] args)
{
#if RELEASE
if (args.Length < 5)
{
ShowHelp();
return;
}
string srcFile = args[0];
string targetFile = args[1];
string transDefFile = args[2];
bool includeOriginal = (args[3] == "1");
int turdSize = Convert.ToInt32(args[4]);
#else
string srcFile = @"_Ramaraja-Regular.svg";
string targetFile = @"Ramaraja-Regular.svg";
string transDefFile = @"Textures\Fills\Topography.xml";
bool includeOriginal = false;
int turdSize = 25;
#endif
Runner.ProcessSVG(srcFile, targetFile, transDefFile, includeOriginal, turdSize);
}
static void ProcessUFO(string[] args)
{
#if RELEASE
if (args.Length < 5)
{
ShowHelp();
return;
}
string srcDirectory = args[0];
string targetDirectory = args[1];
string transDefFile = args[2];
bool includeOriginal = (args[3] == "1");
int turdSize = Convert.ToInt32(args[4]);
#else
string srcDirectory = @"_Ramaraja-Regular.ufo";
string targetDirectory = @"Ramaraja-Regular.ufo";
string transDefFile = @"Textures\Fills\Topography.xml";
bool includeOriginal = false;
int turdSize = 25;
#endif
Runner.ProcessUFO(srcDirectory, targetDirectory, transDefFile, includeOriginal, turdSize);
}
/// <summary>
/// Help
/// </summary>
static void ShowHelp()
{
//TODO..
}
}
}