Labels text in PDF

Bob Sneidar bobsneidar at iotecdigital.com
Wed Jul 22 17:59:06 EDT 2026


A little while back someone had a similar problem and it involved the Arial font. There’s something wrong with it that causes issues when printing from Livecode. Try changing the font on all your fields. 

Bob S


> On Jul 22, 2026, at 5:19 AM, David V Glasgow via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Hi folks,
> 
> Sadly, I have no Douglas Adams anecdotes, other than the joy of reading his books and listening in my bedsit to the first Hitchhikers broadcast  in 1978.
> 
> However, I do have a good old fashioned LiveCode question...
> 
> I have a card featuring closely packed label fields (arial) and other controls.  The only ‘product’ of the app was for some time capturing a PNG to the clipboard.  Then a user requested a save to PDF feature.  I thought this would be quick and easy, only to discover that the PDF rendered had many missing words in the label fields.  The text missing looks pretty random, not just cropped at left or right of the field.  It is also consistent, so same words missing on each execution, and weirdly also only whole words, as far as I can see.
> 
> The code I have previously had success with on a card with very similarly tightly packed  controls is
> 
> put the defaultfolder into toldfold
> 
> set the cursor to busy
> 
> set the defaultfolder to it
> 
> set the printPaperOrientation to "landscape"
> 
> put the printPaperRectangle into trect
> 
> set the cursor to busy
> 
> put the "TSI Scores " & the long date & ".pdf" into tfilename
> 
> open printing to pdf tfilename
> 
> if the result is "Cancel" then exit mouseup
> 
> print card 1 into 8,8,830,540
> 
> print break
> 
> print card 2 into 8,8,830,540
> 
> close printing -- send group of cards to printer
> 
> set the defaultfolder to toldfold
> 
> 
> 
> The only difference I can see is that the problem only arises with respect to the card containing label fields.  The above works fine with very tightly packed buttons with labels.  
> 
> In the end, to get it done in time for a meeting,  I kludged a temporary page containing a snapshot of the card and printed to PDF from that.  Not really what I wanted.  I will probably have some time to wrestle with this next month - so is there another solution to the problem, or am I just expecting too much of the print to PDF rendering process?
> 
> Cheers
> 
> David G
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



More information about the use-livecode mailing list