03-08-2025, 10:43 AM
The short answer is, no. The long answer is there may be a bit of a complicated workaround.
QB has a command called _PRINTWIDTH. If you are on a Windows, or maybe Mac machine, then most likely the Type 1 Fonts that pdfGen uses are built in. You could perhaps, pre-render the text in some appropriate graphics mode, and obtain the _PRINTWIDTH for each line, and interpolate the spacing using pdfSetCharacterSpacing and/or pdfSetWordSpacing to get the desired alignment.
Normally, I think this is done on the application side. A word processor has that capability built in.
This library is just designed to do the low level lifting of building a PDF.
QB has a command called _PRINTWIDTH. If you are on a Windows, or maybe Mac machine, then most likely the Type 1 Fonts that pdfGen uses are built in. You could perhaps, pre-render the text in some appropriate graphics mode, and obtain the _PRINTWIDTH for each line, and interpolate the spacing using pdfSetCharacterSpacing and/or pdfSetWordSpacing to get the desired alignment.
Normally, I think this is done on the application side. A word processor has that capability built in.
This library is just designed to do the low level lifting of building a PDF.
Code: (Select All)
' Fonts:
'Courier Symbol
'Courier-Bold Times-Roman
'Courier-Oblique Times-Bold
'Courier-BoldOblique Times-Italic
'Helvetica Times-BoldItalic
'Helvetica-Bold ZapfDingbats
'Helvetica-Oblique
2D physics engine https://github.com/mechatronic3000/fzxNGN
Untitled Rouge-like https://github.com/mechatronic3000/Untitled-Rougelike
QB Pool https://github.com/mechatronic3000/QBPool
Untitled Rouge-like https://github.com/mechatronic3000/Untitled-Rougelike
QB Pool https://github.com/mechatronic3000/QBPool