This commit is contained in:
EugeneTes
2026-04-03 08:38:32 +02:00
parent 763cd1071b
commit 5ee95c8109
7 changed files with 39 additions and 19 deletions

View File

@@ -44,6 +44,12 @@ public class TM_T30IIITranslated : IPrinter
foreach (var command in commands)
{
if (command.IsCut)
{
await _printer.FeedLinesAsync(10);
await _printer.CutAsync(false);
continue;
}
if(command.SetLineSpacing.HasValue)
{
Console.WriteLine($"Setting line spacing to {command.SetLineSpacing.Value}");
@@ -51,16 +57,17 @@ public class TM_T30IIITranslated : IPrinter
Console.WriteLine($"------------------------------------------------------");
continue;
}
if (command.IsBig)
{
await _printer.SetFontSizeAsync(2, 1);
}
else
{
await _printer.SetFontSizeAsync(1, 1);
}
await _printer.SetFontSizeAsync(command.IsBig?2:1, command.IsTall?2:1);
//if (command.IsBig)
//{
// await _printer.SetFontSizeAsync(2, 1);
//}
//else
//{
// await _printer.SetFontSizeAsync(1, 1);
//}
await _printer.SetEmphasized(command.IsBold);
await _printer.PrintTextAsync(command.Text + "\n");
}