Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertical text issue #237

Closed
KlausBenislavskis opened this issue May 14, 2024 · 2 comments · Fixed by #240
Closed

Vertical text issue #237

KlausBenislavskis opened this issue May 14, 2024 · 2 comments · Fixed by #240

Comments

@KlausBenislavskis
Copy link

Issue: Library Cannot Write Vertical Text

Description

I'm encountering an issue where it seems like the library can't write vertical text. Below is a comparison of the actual output and the expected output.

Actual Output

Actual Output

Expected Output

Expected Output

Details

  • Configuration: Windows Server Core Docker Image
  • ZPL Code Used:
^XA
^LL1520
^FX utf-8^FS   ^CI28
^XA
^CWW,E:ARI000.TTF
^CWW, E:ARIAL.TTF
^CWW, E:T0003M_
^POI
^FX DK_LOCAL_LETTER_LABEL^FS
^FX ===== LABEL: FROM ZONE^FS
^FO540,710
^GFA,3325,3325,25,,:::::::M0gVF8,M0gVF80C,M0gVF80E,L01gVF80F8,L01gVF80FC,L01gVF80FE,L03gVF80FF8,L03gVF80FFC,L03gVF80FFE,L07gVF807FF,L07gVF803FF,L07FEK07C03gKF800FF,L0FFEK07C03gKF8007F,L0FFEK07F13gKF8003F,L0FFEK07FB3gKF8I0F,K01FFEK07F83gKF8I07,K01FFEK07F87gKF8I03,K01FFEK07FCgLF8,K03FFE1F0F87gNF8,K03FFE1F0787gNF8,K03FFE1F0787F0gLF8,K07FFE1F0787E07gKF8,K07FFE1F0787C03gKF8,K07FFE1F0787C73gKF8,K0IFE1F0787CF3gKF8,K0IFE1F8D87C03gKF8,K0IFE1FF987E07gKF8,J01IFE0FE187F0gLF8,J01IFE07C187gNF8,J01IFE0101gPF8,J03IFEI01gPF8,J03IFEI01FFE47gKF8,J03IFEI01FFC03gKF8,J07JFE00IFC83QF01RF8,J07JF8003FFC93OFEJ03PF8,J07IFEI01FFC03OF00FF007OF8,J0JFEI01FFE37NF81JFC0OF8,J0JFEI01RFE0FI01F83NF8,J0JFE0381RF87CI01CF0NF8,I01JFE0FE1QFE1FJ0703C3MF8,I01JFE3FF1JF3LFC73IF8C30F0MF8,I01JFE7FFDIFE3LF0EFC01FC1C3C7LF808,I03IFK01FFC03KFE3FCI01F870E3LF80C,I03IFK01FFC03KFC7D83FF10E1C79LF80F,I03IFK01JF3KF9F19IF303863C7KF80F8,I07IFK01JF3JFE3C13IF260E11E3KF80FC,I07IFK01OFE7013IF27C388F3KF80FF,I07IFK01OFCCI3FFE67F0C0F9KF80FF8,I0KFE07C1OF98F27FFE4FFC31FCKF80FFC,I0KFE0FE1OF31F27FFE4IF1E3C7JF80IF,I0KFE1FE1NFE33F27FFE4IF8E1E3JF807FF,001KFE1FE0NFE67F27C0047FFCF0F3JF803FF,001KFE0FE0NFCE7F6J0400FC98D9JF800FF,001KFE0780NF8CFE607IFC00C8C59JF8007F,003KFEJ0NF9CF86FF00IF00866CJF8003F,003KFEI01NF38C0F8I0C03F183247IF8I0F,003LFI01NF3907C00FCC003F81B67IF8I07,007LFI03MFE783C47FFECFC03C0923IF8I01,007LF8007MFE58E04IFECFFC1F0DB3IF8,007LFE00NFE5B824IFECIF91C793IF8,007KFEI01MFCDE1E4IFE4IF907399IF8,007KFEI01MFC9C7E4IFE4IF901B99IF8,003KFEI01MFCB0FE4IFE4IF9B87F9IF8,003KFEI01MF9F3FE4IFE4IFD9C3FCIF8,003KFEI01MF9D3FE6IFE4IF8801ECIF8,001KFEI01MF993FF67FFE4FF0081FFCIF8,001KFEI01MF913FF67FFE4E003JF4IF8,I0NFC1MFB13FF27FFE600FFC01FEIF8,I0NFC1MF313FF27FF063FC0C01FE7FF8,I0NFE0MF213FF27F007FI0CE37E7FF8,I07KFEI0MF213FF2600FF003E4C6FE7FF8,I07KFCI0MF213FF200FC20FFE48CFE7FF8,I07KF8001MF21BFF31F8027FFE618FA7FF8,I03KFI03ELF219F83F80I3IF230BE7FF8,I03JFEI01CLF21980F807F93IF261AE7FF8,I03JFEI018LF20807907FF93IF3C12E7FF8,I01JFEI018LF2483C13IF99FFE3932E7FF8,I01JFE1C600LF209E01BIF99FF87936E7FF8,I01JFE1C701LF20F03D9IFC9FF1C826E7FF8,J0JFE1C703LF37C1FC9IFC8FC30CI67FF8,J0JFE1C60MF3C4FFC9IFCCF0C26I4IF8,J0JFE0C01MF904FFCCIFE4C38E2C44IF808,J07IFE0C01MF924FFE4IFE60E1F184CIF80C,J07IFE0C01MF9267FE4IFE2387F984CIF80F,J07JF0C03MF9327FE67IF3E1FF36DCIF80F8,J03JF8C07MFD927FE27FFC383FE23F9IF80FC,J03JFCC0NFC933FF27FE0F0FFE6089IF80FF,J01JFCC3NFC993FF33F8399FFCC899IF80FF8,J01JFDF8NFCC93FF93C0E08FF88993IF80FFC,J01JF9F03MFE499FF900784CFF11933IF80IF,K0JF1E03MFE609FF983C1E67EI323IF807FF,K0IFE1C01NF208FC09F07E23E67267IF803FF,K0IFE0C01NF3CCI0F81FF33CC6247IF800FF,K07FFE0C01NF9FE03FE0IFI98E6CJF8007F,K07FFE1800NF98IF067IF8831C49JF8003F,K07FFE3830NFCC2I023IFCC63CD9JF8I0F,K03FFE3830NFC4300F33IFE6C79B3JF8I07,K03FFE1030NFE213FF99IFE38F163JF8I03,K03FFE0061OF319FF89IFC7873C7JF8,K01FFE0061OF988FFCCIF0CE078KF8,K01FFE0061OFCECFFE67FE3830F1KF8,L0IF00E3OFE3E7FE23F8611FE3KF8,L0IF80E7PF1E3FF33F9C78387KF8,L0IFC1RF873FF93F10FE00LF8,L07VFE03FF83F83PF8,L07WF87FFE7FCQF8,L07gVF8,L03gVF8,::L01gVF8,::M0gVF8,:,:::::::::
^FO710,580
^GFA,4500,4500,15,,:::::::::::::::::::::::::::::::::::::O03LFE01E,:::::R0F803E01E,::::R07803E01E,R07C07E01E,R07E07E01E,R07IFC01E,:R03IF801E,R01IF801E,R01IF001E,S07FE001E,T0FI01E,X01E,O03LFE01E,:::::O01LFE01E,R0F803E01E,:::R07803E01E,:R07C07E01E,R07IFC01E,:R03IFC01E,R03IF801E,R01IF001E,S07FE001E,S01F,,::::::X01E,O03FF80FFE01E,:P02180FFE01E,P02180C0601E,P03180C0601E,P03180E0E01E,P01F00F1E01E,Q0C007FC01E,T03F801E,O01F8I0F001E,O039CL01E,O030C0072001E,O020400FB001E,:O039C00CB001E,O01F8005F001E,P06I0FF001E,T0FF001E,O03380078001E,O023CL01E,O026400FF001E,:O03CC00FF001E,P08J03001E,U03001E,Q0400FF001E,O03FF00FF001E,:O0204L01E,X01E,T0FF001E,O01FF00FF001E,O03FF80FF001E,Q07I03001E,Q0EI03001E,P03800FF001E,P0EI0FF001E,O01CI0FE001E,O03FF8003001E,O03FFI03001E,T0FF001E,:O01F8007E001E,O039CL01E,O03040072001E,O020400FB001E,O020C00FB001E,O039C00CB001E,O01F8007F001E,T0FF001E,:O03FC0078001E,O03FCL01E,Q0C00FF001E,Q0400FF001E,:U07001E,O01F8I03001E,O039CI03001E,O020CL01E,O020400FFE01E,:O03FF00FFE01E,O03FF801C001E,T03E001E,T0FF001E,T0E3001E,T0C1001E,X01E,S036I01E,S01EI01E,:X01E,:::T07FC01E,T0FFE01E,:T01EE01E,U0C601E,U0CE01E,U0FE01E,U07C01E,U03801E,X01E,T03E001E,T07F001E,T0FF001E,T0C3001E,:T0FF001E,T07F001E,T03E001E,X01E,:T0FF001E,::U03001E,:X01E,U01001E,T07FC01E,T0FFC01E,:T0C3001E,U01001E,X01E,:::T0FFE01E,::U0C601E,U0CE01E,U0FE01E,U0FC01E,U07C01E,X01E,T07I01E,T0FB001E,:T0DB001E,T0DF001E,T0FF001E,:T0FC001E,X01E,U07001E,T01F001E,S07FF001E,S03F8001E,:T07F001E,U0F001E,U03001E,T018001E,T07E001E,T0FF001E,:T0CBE01E,:T0CF201E,T0EE001E,U08001E,X01E,:::::::::::::::::::::::::,:::::::::::::::::::::::::::::::::::::
^FWR
^CF0,22,22
^FO700,60
^FDFrom^FS
^CF0,25,25
^FO670,60
^FDxxxxxx^FS
^CF0,25,25
^FO640,60
^FDstreeet^FS
^CF0,22,22
^FO610,60
^FDDK-8270 HØJBJERG^FS
^FO560,60
^GD160,480,3,B,R^FS
^FO560,60
^GD160,480,3,B,L^FS
^FX ===== LABEL: SERVICE ZONE^FS
^CF0,35,35
^FO740,60
^FDPostNord Tracked Maxibrev^FS
^FO741,60
^FDPostNord Tracked Maxibrev^FS
^FO740,61
^FDPostNord Tracked Maxibrev^FS
^CF0,28,28
^FO700,250
^FDBetalt: Faktura^FS
^FX ===== LABEL: TO ZONE^FS
^CF0,30,30
^FO500,230
^FDTo^FS
^CF0,30,30
^FO473,230
^FDJohn Doe^FS
^CF0,30,30
^FO438,230
^FD123 Fake Street^FS
^CF0,30,30
^FO403,230
^FDSE-12345 FAKECITY^FS
^FO368,230
^FDSweden^FS
^FO158,180
^GFA,4796,4796,22,,::::::::::::::::O03E,O03FE,O03IF,P0JF8,Q07FF8,R03FC,R01FC,R0FF8,Q07FC,P01FF,P0FF8,O03FE,O03F8,O03FF,O03IF8,P0JF8,Q07FF8,R03F8,S01C,,P07F,O01FFC,O01FFE,O03E3E,O0380F,O03807,O03003,O03803,:O01E07,O01IF,P0FFE,P07FC,P01F8,,:W04,W06,W03,W038,W03C,W01E,W01F,X0F8,P07M0FC,P0FM0FC,O01F83CJ07E,O01E07FJ07E,O03C0FF8I03FR01C,O0380FF8I03F8Q05F,O0381E3CI01F8Q0BF,O0381C1CJ0FCP01FF8,O0383C1CJ0FEP03FF8,O038381CJ07F1CN07F78,O03C781CJ0FF9F8M0IF,O01FF03CI01EF9FFL01FFE,O01FF078I01C3DBFEK03FFC,P0FE0F8I0381F87FCJ07FF8,P07C0FJ0301F80FF8I0IF,S0EJ0300F801FC001FFE,X0700FC001E003FFC,O02M01F00FEI0F007FF8,O03EL03F00FFI0781IF,O03FFK07F00FF8003E1FFE,O03IFJ07300FFEI0F7FFC,P07FF18006300IFC007IF8,Q03F1800E300FE7E003IF,R011C00E381FF1F003FFE,S018006381FF87807FF8,N038M07381FF8380IF8,N078FFK07F80FFC3C1FFE,N079FFCJ03F00EFC1E3FFC,N073FFEJ07F0067E0F7FF8,N063C3FJ0670077F07IF,N0E3807J0670073F03IF,N0E3803J0E60031F87IF,N061803J06E0031F8BFFE,N071803J07E0038FDIF6,N07FC07J07E00387IFE6,N03FF0EJ03C00387IFCE,N01IFCJ01C00183IF0E,O07IFJ01C001C2IF0E,P07FFJ018001DBFFC0E,Q03FJ038001JFC0E,W038001JF00C,W038I01FFE00C,O03CL038I03IF00C,O03FEK07J0JF01C,O03IFJ07I01JF81C,P0IFJ07I03FF7FC1C,Q07FJ07I07FFCFC1C,Q01FJ07I0IF87E18,R06J0E001IF07F38,R02J06003FFE03F78,R03J07007FFC03FF,O03C03J0700IF001FE,O03FC7J0701FFEI0FC,O03IFJ0383FFCI0FE,O01IFJ0387FF8001FE,P01FFJ03CIFI07FF,R0CJ01DFFEI0FBF8,W01IFC001E1F8,P0EL01IF8007C1FC,O01F8K01IFI0F00FC,O03FCK03FFE001E007E,O03FC6J07FFC007C007F,O039C7J0IF800FI03F,O030C7I01IFI0EI01F8,O038C3I03FF4001CI01FC,O01863I07FFC0038J0FC,O01C63I0IFI07K0FE,O03FE3001IF8006K07E,O03IF003JFC0EK03F,O03IF007FF9IFCK03F8,O023FE007FF03FFCK01F8,Q01C007FEQ0FC,U07FCQ0FE,U07F8Q07E,P0802003FR07F,O03FC3001CR03F8,O03IFV01F8,O03IFEU01FC,O039FFEV0FC,O0301FFV07E,O03003FV07F,R03W03F,R01W01F,P04Y01E,O01FE,O03FFE,O03IF,O038FF,O0300F,O018,:O02C,O03F8,O03FF8,O03IF,P03FF,Q01F,R01,,O03,O03F8,O03FF8,O03IF,P03FF,Q03F,R0C,R06,R07,::R01,P07F8,O01FFC,O01FFE,O03CDF,O038C7,O030C3,O038C3,:O03CC7,O01CFF,P0CFE,P04FC,Q02,,::::::::::::::::::::::::::::::::
^FO158,10
^GFA,3586,3586,22,,:::::::::::::::::::::::::::::::Y03C,X03C3F,gH0E,gH018,gI06,Y03FE018,Y0400E04,gH0183,gI0618,gG080184,g0F3E042,gH01831,gI03088,gJ0848,g01FE0664,gH03C32,gI0319,X03EJ08C,X07381E064,X0C3E00E32,X0C6F00198,W01C2FC004C,W01C27F0024,W01C27F801,W01C27FE008,P02L01C27FF,O01EL01C23FFC,O03EL01C23IF,O07E0FCI01C21IFC,O0781FEI01C31IFE,O0701FFI01C30JF8,O0703EFI01C187IFC,O0707C7I01C183JF,O0707878001C0C1JFC,O0707078001E060JFE,O070F078I0F0303IFE,O079E07J0F0181IFB,O03FE0FJ0781C07IF06,O03FC3FJ03C0C03FFD9F8,O01FC3EJ01E0600FFDFF8,P0201CJ01E06003FDF18,R01L0F03I07EE18,Y0783J01C18,X01F83J01818,O01FCL03BC18I0181C,O03FFL061C18I0180C,O07FF8K041C18I0180E,O078FCK060E08I07806,O0601EK030E0CI07807,O0600EK01CE0CI07803,O0600EL0FF0CI07C03,O07006M070CI07C03,O07C0EM0704I06C038,O03C3EM0704I03C018,O0183CM0786I03C018,Q03CM0F86I03800C,Q03M03F86I03800C,Y07386I01800E,O01CN0E386I018006,O03FN0C0C2I018007,O07F1L0180C2I0180038,O07F9CK018062I01C001C,O0739CK018063I01C001E,O0619EK018063I01CI0E,O0618EL0C063I01CI07,O03186L0E0C3J0EI038,O03186L0FBC3J0EI01C,O07FCEK019FC3J0EI01C,O07FFEK018063J0EI01C,O07FFEK018033J0EJ0C,O04FFCL0C031I01CJ06,Q078L0C031I01CJ06,Y0603180018J07,Y0783180018J03,O078N0DC70C0038J03,O07FCM0CFF0C003K038,O07FFEL0C0706003K038,O01FFEL0C0386003K018,Q0FCQ0E018J01C,gJ0801CJ01C,gJ0700CJ018,gJ0780EJ018,gJ07806J018,gJ07C07J018,gJ07E02J038,gJ077L038,gJ077L03,gJ0738K03,gJ0318K03,gJ031CK07,gJ030CK07,gJ030EK07,:gL06K07,gL06K06,gL07K06,:gL03K06,gL03K0E,gL03J01C,gL03J07C,gL03KF8,gL01JFE,gM038,,:::::::::::::::::
^FX ===== LABEL: BARCODE ZONE^FS
^FO190,45
^GB0,800,3^FS
^FO260,665
^FDWeight kg:^FS
^FO230,665
^FD0.23^FS
^CF0,35,35
^FO95,770
^GB60,60,5,^FS
^FO105,780
^FD04^FS
^CF0,30,30
^FO260,365
^FDReference:^FS
^FO230,365
^FD987654321^FS
^FO70,215,0
^BY3,2,95
^BCR,95,N,N,N,A
^FDLY071469137DK^FS
^CF0,30,30
^FO25,340
^FDLY071469137DK^FS
^FWR
^CF0,180,270
^FO20,145
^FDTEST^FS
^FO21,145
^FDTEST^FS
^FO20,146
^FDTEST^FS
^XZ
@primo-ppcg
Copy link
Collaborator

The issue is that ^FW is not supported.

Minimal example:

^XA
^FWR
^A0,30
^FO10,10
^FDABC12345^FS
^XZ

Workaround: set the default rotation on the font face instead:

^XA
^A0R,30
^FO10,10
^FDABC12345^FS
^XZ

@KlausBenislavskis
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants