receiptline / receiptline

Markdown for receipts. Printable digital receipts. Generate receipt printer commands and images.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Customize the output font

arjun1194 opened this issue · comments

I want to change the output font to something other than the font that is currently being used

default:
                    p.font = `'Courier Prime', 'Courier New', 'Courier', monospace`;
                    p.size -= 2;
                    p.style = '@import url("https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap");';
                    break;

Thank you for using receiptline!

You can change the source code and specify your favorite font.

We are also considering putting the font specification out of the source code.

However, it is difficult to set fonts that adapt to various environments.