By using <div> and <span> tags it is possible to use inline html styles for formatting output.
[LAYOUT]
-- General layout
<div style="font-weight:bold;font-size:13px">
<BMP>c:\logo.bmp
<T>Ticket
<L00>Date:{TICKET DATE}
<L00>Time:{TIME}
{ENTITIES}
<L00>Ticket No:{TICKET NO}
<F>-
{ORDERS}
<F>=
<EB>
{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
<J10>Total:|{TICKET TOTAL}
{PAYMENTS}
<DB>
<F>=
<div style="font-size:15px;text-align:center;font-family:'Tahoma'">T H A N K Y O U </div>
</div>
[DISCOUNTS]
<J00>{CALCULATION NAME} %{CALCULATION AMOUNT}|{CALCULATION TOTAL}
[PAYMENTS]
<J00>{PAYMENT NAME}|{PAYMENT AMOUNT}
[ORDERS]
-- Default format for orders
<J00>- {QUANTITY} {NAME}|{TOTAL}
{ORDER TAGS}
[ORDERS:Gift]
-- Format for gifted orders
<J00>- {QUANTITY} {NAME}|**GIFT**
{ORDER TAGS}
[ORDERS:Void]
-- Nothing will print for void lines
[ORDER TAGS]
-- Format for order tags
<J00> * {ORDER TAG NAME} | {ORDER TAG PRICE}
[ENTITIES:Table]
-- Table entity format
<L00>Table: {ENTITY NAME}
[ENTITIES:Customer]
-- Customer entity format
<J00>Customer: {ENTITY NAME} | {ENTITY DATA:Phone}
I’ve used two nested div tags to style whole ticket and Thank You line of the ticket.
Surrounding entire layout with a <div> tag will enable changing font size, weight and font type of whole ticket. You can use different styles for sections by configuring additional divs. <span> tag does the same but supports less styling options. The difference is it won’t line break content.
HTML printing doesn’t seem to respect the line character count. My printer is 42 characters wide but the <F>- tag is being printed on more than one line.
@slabos it will be hard to align lines when you use both Latin and Arabic fonts on same ticket output. Can you try changing windows regional settings to Arabic?
It looks like a printer setting. Its wrapping it and the justification is not printing correctly. Check your character width you may have a font either too large or character width set too large.