Use php_printer.dll to connect to the printer, which has a method to create fonts
<code>printer_create_font ( string face, int height, int width, int font_weight, bool italic, bool underline, bool strikeout, int orientaton)</code>
What are the units of the second parameter height and the third parameter width, and what is their relationship with the width and height of the printer paper?
Because you want to center the text on the printing paper, you need to calculate the x and y coordinate values when printing using the printer_draw_text method, so you need to know the width value of the printing paper relative to the width of this font size. Please advise!
Use php_printer.dll to connect to the printer, which has a method to create fonts
<code>printer_create_font ( string face, int height, int width, int font_weight, bool italic, bool underline, bool strikeout, int orientaton)</code>
What are the units of the second parameter height and the third parameter width, and what is their relationship with the width and height of the printer paper?
Because you want to center the text on the printing paper, you need to calculate the x and y coordinate values when printing using the printer_draw_text method, so you need to know the width value of the printing paper relative to the width of this font size. Please advise!