Connect a printer using Php_printer.dll, which has a way to create fonts
printer_create_font ( string face, int height, int width, int font_weight, bool italic, bool underline, bool strikeout, int orientaton)
What is the height of the second parameter and the width of the third parameter, and what is the relation to the printer print width?
Because you want the text to be centered on the print paper, you need to calculate the x, Y coordinate value when printing using Printer_draw_text, so you need to know the width of the printer's width relative to the font size. Please advise!
Reply content:
Connect a printer using Php_printer.dll, which has a way to create fonts
printer_create_font ( string face, int height, int width, int font_weight, bool italic, bool underline, bool strikeout, int orientaton)
What is the height of the second parameter and the width of the third parameter, and what is the relation to the printer print width?
Because you want the text to be centered on the print paper, you need to calculate the x, Y coordinate value when printing using Printer_draw_text, so you need to know the width of the printer's width relative to the font size. Please advise!