简体   繁体   English

WPF C#应用程序中POS打印机的最佳字体

[英]Best font for POS printer in WPF C# App

I have developed an application in WPF and C# as client requirement. 我已根据客户要求在WPF和C#中开发了一个应用程序。 Now I am facing problem in bill printing. 现在,我在票据打印方面面临问题。 Printer is WEP DR-400 series and I am using "FlowDocument" to preview bill and printing. 打印机是WEP DR-400系列,我正在使用“ FlowDocument”预览帐单和打印。 Now my client wants these issue to solve; 现在我的客户希望解决这些问题;

  1. Printing is slow than previous Foxpro based app 打印速度比以前基于Foxpro的应用程序慢
  2. Numbers printed on bill creates confusion like 8,9 and 6 appears quite same. 钞票上打印的数字会造成混乱,例如8,9和6看起来非常相似。

I don't know how to solve these problems, for 2. i have "MS Gothic" with 12 then "Segoe" with 13 font size in FlowDocument after client request. 我不知道如何解决这些问题,对于2。在客户请求后,我在FlowDocument中使用了12号“ MS Gothic”,然后使用13号字体的“ Segoe”。 My font selection is constrained by page width (i need to print 5 cols with Item Name which should be displayed in one line). 我的字体选择受页面宽度限制(我需要打印5列带有“项目名称”的列,该名称应显示在一行中)。

Any help would be appreciated!!! 任何帮助,将不胜感激!!!

POS printers are almost exclusively used in their native dot-matrix mode. POS打印机几乎只在其本机点矩阵模式下使用。 You send the strings to print directly to the printer, bypassing the printer driver. 您发送字符串以直接打印到打印机,而绕过打印机驱动程序。 The font you'll get is the one that's baked into the printer's firmware. 您将获得的字体是打印机固件中附带的字体。 Typically mono-spaced and optimized to work well with the rather restricted output capabilities of a typical POS printer. 通常采用等距间距并进行优化,以与典型POS打印机的有限输出功能配合使用。 The code you need is in this KB article . 您需要的代码在此知识库文章中

When you use the printer driver, the printer is switched into graphics mode by the driver. 使用打印机驱动程序时,驱动程序会将打印机切换到图形模式。 That makes them very slow. 这使它们非常慢。

With regard fonts, Georgia is good in distinguishing digits at small point sizes. 关于字体,格鲁吉亚擅长区分小磅数字。 (Although at 13 points, you shouldn't get a problem with any font.) (虽然只有13点,但您应该不会遇到任何字体问题。)

As a fully interpreted language, FoxPro is not terribly quick although runtime has a low memory footprint. 作为一种完全解释的语言,尽管运行时内存占用很少,但是FoxPro并不是很快。 Could your client benefit from more memory? 您的客户可以从更多的内存中受益吗?

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

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