条码字体与条码打印机字体有什么区别 [英] What's the difference between barcode fonts vs barcode printer fonts

查看:249
本文介绍了条码字体与条码打印机字体有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人对条形码字体(在报告中用作字体)和直接从条形码打印机打印的字体之间的区别有任何了解吗?

Does anybody have any idea about the differences between barcode fonts (used as a font in reports) and fonts that are printed directly from a barcode printer?

我们为什么要在条形码字体前后加一个星号?据我了解,使用条形码打印机时我们不需要……为什么不呢?

Why should we put a star before and after the barcode font? It's my understanding that we don't need that when we use a barcode printer... why not?

推荐答案

星号是代码39 .它用作条形码本身的定界符.如果没有星星,条形码阅读器将无法识别该代码.

The star character is part of the specification for Code 39. It is used as a delimiter for the barcode itself. Barcode readers will not recognize the code if the stars are not present.

使用条形码打印机时,打印机会自动添加星号.您告诉打印机要编码的内容(以及要使用的代码),其余的工作就由它来完成.如果您使用其他编码(不是Code 39),则将使用该代码的适当开始和结束定界符.使用条形码字体时,必须手动放置这些定界符.

When using a barcode printer, the printer adds the stars automatically. You tell the printer what you want encoded (and which code to use), and it takes care of the rest. If you were using a different encoding (other than Code 39), the appropriate start and end delimiters for that code would be used instead. When using a barcode font, you have to place those delimiters by hand.

字体和条形码打印机的输出之间应该没有物理上的区别,但要提防其他陷阱:某些代码在打印代码的两边都需要一定数量的空格,并且有些包含计算出的校验和字符,该字符必须在代码字符之后但在最后一个定界符之前,例如:

There should be no physical differences between the font and the output from the barcode printer, but beware of other gotchas: some codes require a certain amount of whitespace on either side of the printed code, and some include a calculated checksum character, which must come after the code characters but before the last delimiter, e.g.:

[whitespace][delim][char 1][char 2]...[char N][checksum][delim][whitespace]

所有这些元素都是特定代码要求的一部分.条形码打印机将自动处理这些事情.如果您对使用字体打印的代码有疑问,请尝试将条形码打印机的输出与常规打印机的输出进行比较.

All of these elements are part of the requirements for a particular code. The barcode printer will handle these things automatically. If you have trouble with the codes printed using fonts, try carefully comparing the output of the barcode printer with the output from the regular printer.

这篇关于条码字体与条码打印机字体有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆