Text alignment in generated PDFs (print card from ... to... into...)
Ben Rubinstein
benr_mc at cogapp.com
Fri May 15 07:50:06 EDT 2026
That fixed it - thanks Mark.
On 13/05/2026 15:25, Mark Waddingham via use-livecode wrote:
> 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.
>
More information about the use-livecode
mailing list