Author Topic: Printing ticket to big font  (Read 17046 times)

jalvarez

  • Newbie
  • *
  • Posts: 11
Printing ticket to big font
« on: June 25, 2012, 12:32:21 pm »
afte many tries i just can change the size of the font of my template im using a cannon mp210 printer for the tickets i added a pic of the prined ticked is there any way to make the letters smaller? alrdy tried with <J00> but the leeters are still too big to enter  inside of my paper tried both HTML and TEXT print but in both the letters are too big.
Ill apreciate any idea
Thanx in advance
« Last Edit: June 25, 2012, 12:39:12 pm by jalvarez »

emre

  • SambaPOS Developer
  • Samba Team
  • Hero Member
  • *****
  • Posts: 1564
Re: Printing ticket to big font
« Reply #1 on: June 25, 2012, 03:10:24 pm »
Can you try entering smaller numbers to "Line Character Count" setting of the printer until it fit lines to the paper?

jalvarez

  • Newbie
  • *
  • Posts: 11
Re: Printing ticket to big font
« Reply #2 on: June 25, 2012, 03:41:38 pm »
If i put less characters on the line it will cut the name thats all it wont rezise it i need smaller letters so everything can fit

Character count is at 1 dosnt matter how small number i use there
« Last Edit: June 25, 2012, 04:02:10 pm by jalvarez »

emre

  • SambaPOS Developer
  • Samba Team
  • Hero Member
  • *****
  • Posts: 1564
Re: Printing ticket to big font
« Reply #3 on: June 25, 2012, 05:47:35 pm »
Most formatting commands will be effective for ESC-POS emulated ticket printers. For inkjet printing you can use HTML printing. I didn't exposed any setting for HTML printing and it generates a fixed output but with a small hack you can use different fonts. 

Open Start Menu > SambaPOS 2 > SambaData shortcut. It should display a folder that contains a file named "SambaSettings.txt". First of all create a copy of this file for backing it up. Open it. You'll see a line something like font-family: 'Courier New', monospace;
just under that line insert this line.
font-size:12px;

Be careful while inserting that line. Try not to change any other value.
Now restart SambaPOS and it should print with smaller sized fonts on HTML mode. You can change 12px value as you need. SambaPOS reads these values on start up so you need to restart SambaPOS whenever you change it.

If something goes wrong and you get errors while starting SambaPOS overwrite backup file and try again.

I'll be happy if you can share the result.
Thanks.
« Last Edit: June 25, 2012, 05:50:10 pm by emre »

jalvarez

  • Newbie
  • *
  • Posts: 11
Re: Printing ticket to big font
« Reply #4 on: June 25, 2012, 08:51:53 pm »
IT worked woderfully so many thanks for your time and one more think oncei print the ticket the amounts are left justified but i need the numbers right justified.

PS. When i use the command  pipe (|) it only prints the symbol
is there another kind of commands for HTML printing if so ill apreciate to have some manuals if possible
Thanks so much for your time.
 
« Last Edit: June 25, 2012, 08:57:48 pm by jalvarez »

jalvarez

  • Newbie
  • *
  • Posts: 11
Re: Printing ticket to big font
« Reply #5 on: June 26, 2012, 09:20:50 am »
Me bothering again but now another problem came i did all on the version 2.93 but now i installed the version 2.98 says it cant find the database any solution?
Thnax again

emre

  • SambaPOS Developer
  • Samba Team
  • Hero Member
  • *****
  • Posts: 1564
Re: Printing ticket to big font
« Reply #6 on: June 27, 2012, 06:32:25 am »
Pipe command should work when you start the line with <Jxx> tag.

Try overwriting SambaSettings.txt file with your backup or let it regenerate by deleting it. After starting sambapos configure database from Local Settings and remodify sambasettings.txt file for font thing.