Text alignment in generated PDFs (print card from ... to... into...)
Mark Waddingham
mark at livecode.com
Wed May 13 10:25:24 EDT 2026
On 2026-05-12 18:35, Ben Rubinstein via use-livecode wrote:
> Anyway, this email got longer as I continued to investigate. All I
> really want is to figure out a way to get my nice right-aligned text
> right. Is it perhaps possibly that if I started with a different font
> or font size, it would render the same way in the PDF as it does on
> screen?
Assuming you are doing this on macOS (which I'm guessing you are, given
preview could generate PDFs!).
Does the stack you are printing have fonts explicitly set on the fields
or at the stack level? If not that could be the issue...
At least for the pdf printer, the default macOS font is some sort of
strange font which doesn't have a proper name (.blahblahblah) and
appears not to like being poked in the way needed to print. If you set
the textFont of the field/stack to a font name (i.e. non-empty, and one
which exists) your formatting problems might go away.
Failing that - if you submit a bug report with the offending stack, we
can take a look.
Warmest Regards,
Mark.
--
Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/
LiveCode: Build Amazing Things
More information about the use-livecode
mailing list