clayl
New Member
Posts: 1
|
Post by clayl on Apr 11, 2023 2:37:29 GMT
It seems that QB64 has very limited (maybe no) capability to control fonts with a USB printer. I’d love to be wrong on this. However, my question is does QB64 have any capability to print to lpt1 and a parallel printer?
Clay Larson
|
|
|
Post by bplus on Apr 11, 2023 4:23:47 GMT
Create your image with _NewImage and then use _PrintImage to have printer print it out. So fonts, graphic images the works can get printed up. I do calendars drawing month grids and using 2-3 fonts every year. This flips a Portrait View into a Landscape View: 'printer prep landscape& = _NewImage(YMAX, XMAX, 32) _MapTriangle (XMAX, 0)-(0, 0)-(0, YMAX), 0 To(0, 0)-(0, XMAX)-(YMAX, XMAX), landscape& _MapTriangle (XMAX, 0)-(XMAX, YMAX)-(0, YMAX), 0 To(0, 0)-(YMAX, 0)-(YMAX, XMAX), landscape& '_PRINTIMAGE landscape& '<<<<<<<<<<<<<<<<<<<<<<<<< debug first before wasting paper and ink XMAX is _width and YMAX is _Height Ah dbox another use of _MapTriangle!
|
|
|
Post by bplus on Apr 11, 2023 13:22:12 GMT
So do you need help setting up or laying out a page of text? Font sizes are going to change layout, "Monospace" fonts are only ones that give you constant print width for characters and spaces. Personally if I wanted to printout a page of text, I'd use 1 of the 80 million text editors out there.
|
|