条码字体与条码打印机字体有什么区别

发布于 2024-09-20 00:16:46 字数 107 浏览 1 评论 0原文

有人知道条形码字体(用作报告中的字体)和直接从条形码打印机打印的字体之间的区别吗?

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

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

时间海 2024-09-27 00:16:46

星号字符是 Code 39 规范的一部分。它用作条形码本身的分隔符。如果没有星星,条形码阅读器将无法识别该代码。

使用条形码打印机时,打印机会自动添加星星。您告诉打印机您想要编码什么(以及使用哪个代码),它会处理其余的事情。如果您使用不同的编码(代码 39 除外),则将使用该代码的适当开始和结束分隔符。使用条形码字体时,您必须手动放置这些分隔符。

字体和条形码打印机的输出之间应该没有物理差异,但要注意其他问题:某些代码要求在打印代码的两侧有一定量的空白,有些代码包含计算出的校验和字符,该字符必须位于代码字符之后但最后一个分隔符之前,例如:

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

所有这些元素都是特定代码要求的一部分。条码打印机会自动处理这些事情。如果您在使用字体打印的代码时遇到问题,请尝试仔细比较条形码打印机的输出与普通打印机的输出。

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.

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.

泪眸﹌ 2024-09-27 00:16:46

我同意 e.James 所说的,我要在条形码字体和打印机上安装的字体之间添加的唯一其他区别是缩放。我见过很多使用条形码字体的实例,并且由于实现或缩放最终输出的方式而改变了条形码的可读性。一个常见问题是当应用程序将简单的条形码输出到 PDF 文件中并且 Acrobat Reader 设置为“适合页面”时。在大多数情况下,由于激光打印机的高分辨率,这没问题。然而,这种缩放可能会扰乱字体,使其不再可读。

查看条形码专用打印机或激光打印机上的嵌入字体,您会发现您无法绝对控制尺寸。您将有多种选择,但它们将适合条形码的特征和设备输出分辨率 (dpi)。

顺便说一句,许多条形码扫描仪和读取条形码的应用程序都能够打开或关闭对开始/停止字符(如 *)的要求。

I agree with what e.James has to say, the only other difference I would add between barcode fonts and ones installed on printers is scaling. I have seen many instances where you use a barcode font and because of how you implement or scale the final output you alter the barcodes readability. A common issue is when an application outputs a simple barcode into a PDF file and Acrobat Reader is set to 'fit to page'. In most cases this is fine due to the high resolution of laser printers; however, this scaling might mess with the font to a degree that it is no longer readable.

Looingk at a barcode specific printer or an embedded font on a laser printer, you will find that you do not have absolute control over size. You will have options but they will fit with the characteristics of the barcode and the devices output resolution (dpi).

As an aside, many barcode scanners and apps that read barcodes have the ability to turn on or off requirement for start/stop characters like the *.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文