lineHeight different Mac vs. Windows
bobsneidar at iotecdigital.com
Tue Jan 2 14:15:26 EST 2018
I always use web optimized fonts for anything I do that will be cross platform. I don't think that will address your specifit issue, but I think it's a good practice, since these fonts might take more care to be universal in their appearance.
> On Jan 1, 2018, at 15:04 , Peter Bogdanoff via use-livecode <use-livecode at lists.runrev.com> wrote:
> I think that the size difference is related to the specific font used. Georgia is displaying slightly wider in Windows than Mac. Helvetica seems pretty consistent. A Chinese font I use is much smaller in Windows.
> Changing Georgia from 16 to 15 is too drastic a change for me, so I need to keep the font size the same.
> I can’t set the textHeight since I have to set fixedLineHeight to false so I can display thumbnail images within the text.
> I suspect that the space between lines when fixedLineHeight is false is determined by the specific font metrics, something LiveCode can’t or doesn’t want to override. I haven’t done a test of various fonts comparing the Windows vs. Mac “free” line spacing. Maybe there is a constant among them all…
>> On Jan 1, 2018, at 2:23 PM, J. Landman Gay via use-livecode <use-livecode at lists.runrev.com> wrote:
>> On 1/1/18 2:39 AM, Peter Bogdanoff via use-livecode wrote:
>>> My page layout is fixed — no user settings of font face or size. Also the card height doesn’t have room for text fields to get taller. And there was the design decision not to show scroll bars.
>>> Text also often has “widows” at the bottom of the field when the text was formatted for Mac but is displayed in Windows. Thus my desire to adjust the Windows text to get it to flow similarly to the Mac (where it was authored).
>> The old-school method was to find a font size and textheight that matches what you see on Mac, and on preOpenStack, set the text properties based on platform.
>> It used to be that Windows fonts displayed larger and/or wider than the same-named Mac fonts. That may have changed recently; my client says Windows fonts are smaller now. At any rate, do some experimentation on Windows to see if you can adjust the flow using textsize and textheight, or by experimenting with different fonts.
>> Jacqueline Landman Gay | jacque at hyperactivesw.com
>> HyperActive Software | http://www.hyperactivesw.com
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode