Frequently encounter font issues when using the Binarykits Nuget package #172
Replies: 5 comments 11 replies
-
The font is not hardcoded, and can be adjusted by supplying a custom font loader to the drawer options (example). If no font loader is supplied, Helvetica Semi-Condensed Bold will be used for Font 0, and DejaVu San Mono for all others, if installed. I've corrected your ZPL by specifying a line count for the Field Block, and trailing it with a newline (this newline is necessary, or Labelary will not center it properly):
On my local system with default fonts: Labelary overlay in red. The default line count for a field block should be 1, but it is overwritten to zero if provided an empty value. This is a bug that should be corrected (resolved with #174). |
Beta Was this translation helpful? Give feedback.
-
The best approximation to Zebra Font 0 is Triumvirate Condensed Bold. |
Beta Was this translation helpful? Give feedback.
-
Find below another ZPL string that contains miss alignment and font-related issues. Can you kindly help me in identifying the issue Zpl string: ^XA^FO130,375^GB909,0,9^FS^FO130,1575^GB909,0,9^FS^FO130,175^GB909,0,9^FS^FO130,175^GB0,1400,9^FS^FO1030,175^GB0,1400,9^FS^FO150,215^A0N,160^FDOVERNIGHT^FS^FO330,375^GB0,1200,3^FS^FO912,375^GB0,1200,3^FS^FO330,875^GB582,0,9^FS^FO330,1075^GB582,0,9^FS^FO330,975^GB97,0,9^FS^FT210,1555^A0B,70^FDOVERNIGHT^FS^FT264,1555^A0B,44^FDCON NUM : 066^FS^FT318,1555^A0B,44^FDDATE : 2023-05-24^FS^FO149,414^BY3,1^BCB,120,Y,N,N,N^FD0660001^FS^FT384,1555^A0B,44^FDMr DX Freight^FS^FT438,1555^A0B,44^FDaddr7^FS^FT492,1555^A0B,44^FDaddr7^FS^FT546,1555^A0B,44^FDaddr7^FS^FT600,1555^A0B,44^FDNewcastle^FS^FT654,1555^A0B,44^FD^FS^FT740,1555^A0B,44^FDITEM : 1 OF 1^FS^FT794,1555^A0B,44^FDWEIGHT : 80.0000 Kg^FS^FT848,1555^A0B,44^FDREF : 2305191432485^FS^FT902,1555^A0B,44^FDCARTON^FS^FT1002,1555^A0B,80^FDWickes Building Supplies ^FS^FT1002,725^A0B,44^FD AXS003658771 ^FS^FO427,875^GB291,0,200^FS^FT864,1051^A0B,170^FD^FS^FT420,725^A0B,80^FDEx : 54^FS^FO387,745^BY2,1^BCI,120,N,N,N,N^FD0660001^FS^FT730,725^A0B,300^FD38^FS^FT902,725^A0B,76^FDMK42 8NG^FS^XZ |
Beta Was this translation helpful? Give feedback.
-
Hello all, not sure if my question is related to this topic but I receive different versions of ZPL preview (I guess due to fonts) in https://binarykits-zpl-viewer.azurewebsites.net/ and local version running in Docker (https://hub.docker.com/r/yipingruan/binarykits-zpl using latest version (which is equal to dev-72 at the moment of posting). The azure one looks better Do I need to supply some additional configuration to achieve the same result ? is docker image missing some fonts? |
Beta Was this translation helpful? Give feedback.
-
anyone here know the exact font names used in zpl printers? the rendering below is using labelary viewer's initial script: |
Beta Was this translation helpful? Give feedback.
-
We frequently encounter font issues when using the Binarykits Nuget package to convert ZPL to base64 content. When printing the labels, they do not appear in the correct alignment and font. A comparison with Labelary reveals the following differences in results.
can you kindly suggest solution for this, also can you tell me if Binarykits and labelary have font hardcoded.
Beta Was this translation helpful? Give feedback.
All reactions