Actually been wanting to say something but didn’t want to confuse this topic as you are correct in that changing size within a line is not possible in ESC/POS mode in SambaPOS.
However, I would say it IS possible in the ESC/POS language, just the way it’s implemented in SambaPOS where each command is line based makes it not possible. I’m sure it’s down to the way it is parsed in the printer template while making it as easy as possible to edit.
The example printout posted above was done using ESC/POS language, you can tell as it’s using printer fonts.
So if everything was simple, I’d also like to be able to do this in ESC/POS templates, a few times I’d thought it would be nice to be able to, but far from an important feature and we have better formatting options now with Document Printer and HTML. I’m sure @emre implemented the way he has for a reason to make editing more simple for the majority of users over having it for some advanced users.
However as a future thought about possible way it could be accomplished in a future release, would it be possible to implement something like an “inline”
<XCT> tag, that would allow changing text size mid line? (unless it actually does work currently - I haven’t tried!)