1

How can we reduce the size of text/font while printing using an OPOS printer? I am using an Epson printer and the following softare components for making this work.

  • OPOS ADK for .Net
  • Microsoft POS for .Net

command used for printing a line is

m_Printer.PrintNormal(PrinterStation.Receipt, "\u001b|cA" + "noob is printing"+ "\n");

Is ther any escape charater for reducing the font size? RecLineChars is set as 42.

TutuGeorge
  • 1,972
  • 2
  • 22
  • 42

1 Answers1

2

We use the following:

// Scale the font to OPOS (1 to 4)
int fontSize = (int)Math.Round((format.FontSize.Value - 5) / 5.0);
if (fontSize < 1)
    fontSize = 1;
if (fontSize > 4)
    fontSize = 4;
_printerText += string.Format("\x1B|{0}C", fontSize);
Benjamin Gale
  • 12,977
  • 6
  • 62
  • 100
Martyn
  • 21
  • 1