Skip to content

Commit

Permalink
Добавил поддержку создания обычных не utf шрифтов
Browse files Browse the repository at this point in the history
  • Loading branch information
xrSimpodin committed Jan 29, 2024
1 parent c16131a commit e592515
Show file tree
Hide file tree
Showing 4 changed files with 157 additions and 112 deletions.
12 changes: 6 additions & 6 deletions _sources/FontGen/FontGenForm.Console.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,32 +143,32 @@ public static int MainConsole()
{
case 1:
{
Char32[] s = argv[0].ToLower().ToUTF32();
string s = argv[0].ToLower();
if (s.Length != 4)
throw new ArgumentException(string.Join(",", opt.Arguments));
for (int n = 0; n <= 3; n++)
{
switch (n.ToString())
switch (s[n])
{
case "0":
case '0':
{
ChannelPatterns[n] = ChannelPattern.Zero;
break;
}
case "x":
case 'x':
{
ChannelPatterns[n] = ChannelPattern.Draw;
break;
}
case "1":
case '1':
{
ChannelPatterns[n] = ChannelPattern.One;
break;
}

default:
{
throw new ArgumentException(string.Join(",", opt.Arguments));
throw new ArgumentException(n.ToString());
}
}
}
Expand Down
133 changes: 43 additions & 90 deletions _sources/FontGen/FontGenForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e592515

Please sign in to comment.