ESCPOS-ThermalPrinter-Android icon indicating copy to clipboard operation
ESCPOS-ThermalPrinter-Android copied to clipboard

Is there a way to implement column span?

Open IGR2014 opened this issue 1 year ago • 2 comments

I have 3 columns with text, the all have like 33.3% of space each. But I want first column to occupy 50% of space and rest 2 columns be 25% each. Is this possible?

IGR2014 avatar Dec 10 '24 11:12 IGR2014

You can do a workaround like this : [L]Your text here[L][L]col 2[R]Col 3\n

DantSu avatar Dec 10 '24 14:12 DantSu

You can do a workaround like this : [L]Your text here[L][L]col 2[R]Col 3\n

This is not exactly what I want. The result I want to achieve is: [L]Text here is[L]50% of width.[C]Here 25%.[C]Here 25%.\n But how to exactly know the width of column in symbols then to split string into first 2 columns? Should I do it manually?

IGR2014 avatar Dec 11 '24 11:12 IGR2014