1.0.12
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user