# HTML printing - Font and Size for different tags

**URL:** <https://forum.sambapos.com/t/html-printing-font-and-size-for-different-tags/7563>\
**Category:** Version 4\
**Created:** [October 9, 2015, 10:57pm UTC](https://forum.sambapos.com/t/html-printing-font-and-size-for-different-tags/7563 "2015-10-09T22:57:40Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamies](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/j/e99b99/32.png) [@jamies](https://forum.sambapos.com/u/jamies)\
**Post date:** [October 9, 2015, 10:57pm UTC](https://forum.sambapos.com/t/html-printing-font-and-size-for-different-tags/7563/1 "2015-10-09T22:57:40Z")

</div>

@emre @Jesse Im trying to print using html and it has worked well, however, im cant seem to figure out how i can set different font/size/bold for the product name and item tags.

When i use this code the whole text has the same font size and type. How would i change to have for example the Quantity name in say standard font size 17, but the Item tags as size 20 but bold.

```
<div style="font-size:17px;font-family:MingLiu;text-align:left">
<EB><DB>

<L00>{QUANTITY} {NAME}
<J00>{ITEM TAG:tag1}|£{TOTAL PRICE}

```

Any help or point me in the right direction would be appreciative.

---

<div class="post-metadata">

**Author:** ![sukasem](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/s/b38774/32.png) [@sukasem](https://forum.sambapos.com/u/sukasem)\
**Post date:** [October 10, 2015, 1:34am UTC](https://forum.sambapos.com/t/html-printing-font-and-size-for-different-tags/7563/2 "2015-10-10T01:34:21Z")

</div>

use `div` or `span` tag like you do on 1st line.  
EB = Enable bold for ESC/POS printer

```
<div style="font-size:17px;font-family:MingLiu;text-align:left"><L00>{QUANTITY} {NAME}</div>
<div style="font-size:20px;font-weight:900;font-family:MingLiu;text-align:left"><J00>{ITEM TAG:tag1}|£{TOTAL PRICE}</div>
```

---

<div class="post-metadata">

**Author:** ![jamies](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/j/e99b99/32.png) [@jamies](https://forum.sambapos.com/u/jamies)\
**Post date:** [October 10, 2015, 1:35am UTC](https://forum.sambapos.com/t/html-printing-font-and-size-for-different-tags/7563/3 "2015-10-10T01:35:55Z")

</div>

Hi, Could you provide an example based on my print config above?

Thanks

---

<div class="post-metadata">

**Author:** ![nkahat1](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/n/5e9695/32.png) [@nkahat1](https://forum.sambapos.com/u/nkahat1)\
**Post date:** [October 10, 2015, 2:17am UTC](https://forum.sambapos.com/t/html-printing-font-and-size-for-different-tags/7563/4 "2015-10-10T02:17:17Z")

</div>

Please try something like this:

```
<div style="font-size:17px;font-family:MingLiu;text-align:left"> 
<EB>
<L00>{QUANTITY} {NAME}
</div>
<div style="font-size:12px;font-family:MingLiu;text-align:left"> 
 <J00>{ITEM TAG:tag1}|£{TOTAL PRICE}
</div>
<DB>
```

---

<div class="post-metadata">

**Author:** ![jamies](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/j/e99b99/32.png) [@jamies](https://forum.sambapos.com/u/jamies)\
**Post date:** [October 10, 2015, 11:37am UTC](https://forum.sambapos.com/t/html-printing-font-and-size-for-different-tags/7563/5 "2015-10-10T11:37:57Z")

</div>

I have tried it works but i get spaces between each line.

![](https://forum.sambapos.com/uploads/default/original/2X/1/149b37e2d15fb8f24f7616ab674301331de8265d.png)

Any ideas, thanks in advance.

---

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [October 10, 2015, 12:23pm UTC](https://forum.sambapos.com/t/html-printing-font-and-size-for-different-tags/7563/6 "2015-10-10T12:23:22Z")

</div>

Try using `<span>` tag instead of `<div>`

---

<div class="post-metadata">

**Author:** ![jamies](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/j/e99b99/32.png) [@jamies](https://forum.sambapos.com/u/jamies)\
**Post date:** [October 10, 2015, 1:09pm UTC](https://forum.sambapos.com/t/html-printing-font-and-size-for-different-tags/7563/7 "2015-10-10T13:09:25Z")

</div>

Thanks emre. Is there a way to make the price smaller next to the chinese writing? plus the formatting of the price doesnt stay right even though ive used justify and .

```
<EB>
<span style="font-size:30px;font-family:MingLiu;text-align:left">
<J00>{ITEM TAG:tag1}|£{TOTAL PRICE}
<DB>

```

![](https://forum.sambapos.com/uploads/default/original/2X/4/4cd04521fd51a47191b1c2e801731278e2901fd5.png)

---

<div class="post-metadata">

**Author:** ![jamies](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/j/e99b99/32.png) [@jamies](https://forum.sambapos.com/u/jamies)\
**Post date:** [October 10, 2015, 1:11pm UTC](https://forum.sambapos.com/t/html-printing-font-and-size-for-different-tags/7563/8 "2015-10-10T13:11:11Z")

</div>

i mean like this i have it…

```
 <EB>
    <span style="font-size:30px;font-family:MingLiu;text-align:justify">
    <J00>{ITEM TAG:tag1}|£{TOTAL PRICE}
    <DB>
```

---

<div class="post-metadata">

**Author:** ![nkahat1](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/n/5e9695/32.png) [@nkahat1](https://forum.sambapos.com/u/nkahat1)\
**Post date:** [October 10, 2015, 1:14pm UTC](https://forum.sambapos.com/t/html-printing-font-and-size-for-different-tags/7563/9 "2015-10-10T13:14:20Z")

</div>

> [@jamies](#):
>
> \<EB\>  
> \<span style=“font-size:30px;font-family:MingLiu;text-align:justify”\>  
> \<J00\>{ITEM TAG:tag1}|£{TOTAL PRICE}  
> \<DB\>

Try to remove the text -align part

---

<div class="post-metadata">

**Author:** ![jamies](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/j/e99b99/32.png) [@jamies](https://forum.sambapos.com/u/jamies)\
**Post date:** [October 10, 2015, 1:16pm UTC](https://forum.sambapos.com/t/html-printing-font-and-size-for-different-tags/7563/10 "2015-10-10T13:16:24Z")

</div>

I have tried that but didnt work. ☹

---

<div class="post-metadata">

**Author:** ![jamies](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/j/e99b99/32.png) [@jamies](https://forum.sambapos.com/u/jamies)\
**Post date:** [October 10, 2015, 1:42pm UTC](https://forum.sambapos.com/t/html-printing-font-and-size-for-different-tags/7563/11 "2015-10-10T13:42:40Z")

</div>

I have decided to put the price at the top next to the english rather than the chinese, however still cant align even though ive used justify.

```
<span style="font-size:17px;font-family:MingLiu;text-align:justify">
<J00>{QUANTITY} {NAME}|£{TOTAL PRICE}
<EB>
<span style="font-size:25px;font-family:MingLiu;text-align:justify">
<L00>{ITEM TAG:tag1}
<DB>

```

![](https://forum.sambapos.com/uploads/default/original/2X/6/6d34c140bfb2e282480dbcd34128070082408cba.png)

Any ideas? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [October 10, 2015, 4:45pm UTC](https://forum.sambapos.com/t/html-printing-font-and-size-for-different-tags/7563/12 "2015-10-10T16:45:44Z")

</div>

> [@jamies](#):
>
> \<J00\>{QUANTITY} {NAME}|£{TOTAL PRICE}

`<J>` tag aligns price by using configured character count for printer. Like the part where Total and Cash amount listed you should use a proper font size to make it work.

---

<div class="post-metadata">

**Author:** ![jamies](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/j/e99b99/32.png) [@jamies](https://forum.sambapos.com/u/jamies)\
**Post date:** [October 10, 2015, 10:22pm UTC](https://forum.sambapos.com/t/html-printing-font-and-size-for-different-tags/7563/14 "2015-10-10T22:22:00Z")

</div>

I’ve spent a whole day, still cant figure it out. Emre, ive tried different fonts and doesnt make any difference, what font do you suggest? If the product doesnt go onto two lines it aligns perfectly.

whats teh difference between having “text-align:justify” and “`<J00>`”?

---

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [October 10, 2015, 11:23pm UTC](https://forum.sambapos.com/t/html-printing-font-and-size-for-different-tags/7563/15 "2015-10-10T23:23:11Z")

</div>

div’s justified alignment adds spaces between all words until both sides of line reaches to the printable area boundaries. This is not what you want as you want to add spaces only before price until it reaches to the end. `<J>` tag does it by adding spaces to the point you define by adding a pipe (|) char. However that only works for single line. So if you need that long product names you can use smaller font to prevent wrapping.

If you need long names, big fonts and proper alignment you’ll need V5’s table layout support. By using HTML Table tags you can format lines properly.

 ![](https://forum.sambapos.com/uploads/default/original/2X/3/3e6fd77d394a20c5aefa3b2d4e25c1bd3da5f8f6.png)

---

<div class="post-metadata">

**Author:** ![jamies](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/j/e99b99/32.png) [@jamies](https://forum.sambapos.com/u/jamies)\
**Post date:** [October 11, 2015, 12:46am UTC](https://forum.sambapos.com/t/html-printing-font-and-size-for-different-tags/7563/16 "2015-10-11T00:46:11Z")

</div>

Thanks emre, So no way to do it on V4.

Do you have telephone support for V5 customers?

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [October 11, 2015, 12:58am UTC](https://forum.sambapos.com/t/html-printing-font-and-size-for-different-tags/7563/17 "2015-10-11T00:58:02Z")

</div>

Telephone support is a nightmare. I would much rather get support here vs telephone. Can you imagine how telephone support would go…

Caller: I have an error it happens when I close ticket  
TechGuy: Ok can you explain to me your rules and actions that are under Rule A  
Caller: What do you mean I think I see A  
TechGuy: Sigh ok what does A look like  
Caller: A is round and has some hair  
TechGuy: ok thats not it so explain B  
Caller: Why do you keep asking me to explain this stuff  
TechGuy: because I can not read your mind and know what you really mean by what you say.

Sorry just my experience that Telephone support rarely is useful. Support from this forum is very fast and we can provide screenshots, etc to understand issues faster.

---

<div class="post-metadata">

**Author:** ![sukasem](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/s/b38774/32.png) [@sukasem](https://forum.sambapos.com/u/sukasem)\
**Post date:** [October 11, 2015, 2:32am UTC](https://forum.sambapos.com/t/html-printing-font-and-size-for-different-tags/7563/18 "2015-10-11T02:32:22Z")

</div>

> [@Jesse](#):
>
> Caller: A is round and has some hair

What was that A. Can anyone tell me that LOL?

---

<div class="post-metadata">

**Author:** ![jamies](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/j/e99b99/32.png) [@jamies](https://forum.sambapos.com/u/jamies)\
**Post date:** [October 11, 2015, 8:44pm UTC](https://forum.sambapos.com/t/html-printing-font-and-size-for-different-tags/7563/19 "2015-10-11T20:44:52Z")

</div>

I was thinking VNC into PC while on the phone like most POS companies offer these days. Yes I agree 100% phone support will not be very efficient in solving issues.

---

<div class="post-metadata">

**Author:** ![sukasem](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/s/b38774/32.png) [@sukasem](https://forum.sambapos.com/u/sukasem)\
**Post date:** [October 11, 2015, 10:05pm UTC](https://forum.sambapos.com/t/html-printing-font-and-size-for-different-tags/7563/20 "2015-10-11T22:05:42Z")

</div>

I don’t think Emre has plan for that. I think he try to create partnership with local distributor/support.

BTW @jamies are you be able to print html from another terminal. I am having problem printing html printer type to printer that connect to server from another terminal.

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [October 11, 2015, 10:14pm UTC](https://forum.sambapos.com/t/html-printing-font-and-size-for-different-tags/7563/21 "2015-10-11T22:14:21Z")

</div>

The thing even with local support is its very hard to know every aspect of samba and to offer on demand support for every posible issue would be very tricky.  
Given the flexibility and number of ways to do everything etc  
I would happily offer samba support as a partner but then if emre is to endorse someone local for support he would need to know they can cover all bases and even the leaders have their area of expertise.  
Does that make sense?

[Next page](https://forum.sambapos.com/t/html-printing-font-and-size-for-different-tags/7563.md?page=2)
