简体   繁体   English

有没有办法使用 c# 增加 POS 打印机的字体大小?

[英]Is there a way to increase font size of POS printer using c#?

How to increase text/font size while printing?如何在打印时增加文本/字体大小? I am using EPSON TM-T82 thermal printer.我正在使用 EPSON TM-T82 热敏打印机。

  • OPOS ADK for .Net .Net 的 OPOS ADK
  • Microsoft POS for .Net适用于 .Net 的 Microsoft POS

m_Printer.PrintNormal(PrinterStation.Receipt, "\|bC" + "\|4C" + "0012"+ "\\n"); //print 0012

By using this escape sequence, you can print enlarged letters.通过使用此转义序列,您可以打印放大的字母。
It is described on page 30-28 of the UnifiedPOS specification. UnifiedPOS 规范的第 30-28 页对其进行了描述。

  • Scale horizontally ESC|#hC水平缩放 ESC|#hC
    Prints with the width scaled '#' times the normal size, where '#' is replaced by an ASCII decimal string.打印宽度为 '#' 乘以正常大小,其中 '#' 替换为 ASCII 十进制字符串。 If the scaled printout would exceed the printable area then the printing results may be unpredictable.如果缩放打印输出将超出可打印区域,则打印结果可能无法预测。

  • Scale vertically ESC|#vC垂直缩放 ESC|#vC
    Prints with the height scaled '#' times the normal size, where '#' is replaced by an ASCII decimal string.打印高度为 '#' 乘以正常大小,其中 '#' 替换为 ASCII 十进制字符串。 If the scaled printout would exceed the printable area then the printing results may be unpredictable.如果缩放打印输出将超出可打印区域,则打印结果可能无法预测。

Up to the magnification supported by the printer is the limit, probably it is possible to specify about 8 times.以打印机支持的放大倍数为上限,大概可以指定8倍左右。
Please refer to the description document of OPOS ADK for.NET.请参考 OPOS ADK for .NET 的描述文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM