Use php_printer.dll to connect to the printer. here is a method for creating a font {code ...} what is the unit between the second parameter height and the third parameter width, and what is the relationship with the width and height of the printer printing paper? To center the text and print it on the printed paper, use print... to connect to the printer using php_printer.dll. here is a method to create a font.
Printer_create_font (string face, int height, int width, int font_weight, bool italic, bool underline, bool strikeout, int orientaton)
What is the unit between the second parameter height and the third parameter width, and what is the relationship with the width and height of the printer printing paper?
To print the text on the print paper in the center, the x and y coordinate values must be calculated when the printer_draw_text method is used. Therefore, you need to know the width of the printed paper relative to the font size. Please advise!
Reply content:
Use php_printer.dll to connect to the printer. here is a method for creating fonts.
Printer_create_font (string face, int height, int width, int font_weight, bool italic, bool underline, bool strikeout, int orientaton)
What is the unit between the second parameter height and the third parameter width, and what is the relationship with the width and height of the printer printing paper?
To print the text on the print paper in the center, the x and y coordinate values must be calculated when the printer_draw_text method is used. Therefore, you need to know the width of the printed paper relative to the font size. Please advise!