I have been working on this for a while. I found out that the base line is different on various platforms. This makes the calculation change on various platforms. See bugs http://quality.runrev.com/show_bug.cgi?id=13551 and http://quality.runrev.com/show_bug.cgi?id=12176 .
Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Terence Heaford Sent: Friday, December 19, 2014 3:17 PM To: How to use LiveCode Subject: Re: Vertically aligning text in a field I think we are on a different wavelength here. The code I was originally using from the forum was: -- put the effective textSize of fld id tID into tTextSize -- put round (((tTextSize - 24) * 1/3)) into tOffset -- put the formattedheight of char 1 to - 1 of fld id tID into tFormattedHeight -- put round((the height of fld id tID - tFormattedHeight) / 2) into tVerticalMargins -- put tVerticalMargins - tOffset into tTopMargin -- put tVerticalMargins + tOffset into tBottomMargin -- set the margins of fld id tID to 8,tTopMargin,8,tBottomMargin This is the line I had to adjust -- put round (((tTextSize - 24) * 1/3)) into tOffset I think it was originally 22 not 24. Was this code yours or Bernd's. Not sure how I seemed to have upset you but that was not my intention. All the best Terry > On 19 Dec 2014, at 19:57, Geoff Canyon <gcan...@gmail.com> wrote: > > What requirement am I missing that this isn't sufficient -- and > capable of handling multiple fonts and font sizes throughout the text? _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode