Views:

Applies to Product -Dynamics 365 Commerce

What’s happening?
The font size of the OPOS printout from the POS system is very small, making it difficult to read.


Reason:
This arises from the limitations of the thermal printer being used, which typically supports very limited font configurations. The font size is automatically calculated based on the number of characters printed on the line.


Resolution:

  • Check the printer's utility software or Software Set Mode for the option to use "Embedded Font Replacement" and choose between two font options (Font A and Font B).
  • The font size will depend on the paper width and the number of columns configured for the printer. The default mode is 48 columns per line, but switching to 42 columns per line may help.
  • Test one of the four font settings available in the Receipt designer. If the "Large" font is too big, try using "Bold" instead.
  • For customization, modify the value of the last byte on the command code to change the font as follows:
  • byte[] cmd = new byte[] { 27 /* ESC */, 77 /* M */, 0 /* Font A */ }; // Use EPSON 'Font A'
  • byte[] cmd = new byte[] { 27 /* ESC */, 77 /* M */, 1 /* Font B */ }; // Use EPSON 'Font B'
  • byte[] cmd = new byte[] { 27 /* ESC */, 77 /* M */, 2 /* Font C */ }; // Use EPSON 'Font C'
  • byte[] cmd = new byte[] { 27 /* ESC */, 77 /* M */, 3 /* Font D */ }; // Use EPSON 'Font D'
  • byte[] cmd = new byte[] { 27 /* ESC */, 77 /* M */, 4 /* Font E */ }; // Use EPSON 'Font E'
  • Ensure to refer to the specific printer manual for supported fonts and command values.