The layout package currently only renders properly on HTML but not on ESC/POS.
I think the layout package is an essential part of any receipt, without it it's not possible to print lines with both right and left texts which is needed in any receipt type.