Page 1 of 1

True Text Justification

Posted: Wed Apr 03, 2019 11:34 pm
by ValiantCuriosity
True text justification has been a requested feature since at least 2014. (I saw one dead link that related to 2007)
https://forums.livecode.com/viewtopic.p ... on#p102517

I've tried using HTML5 and an inline style for text justification. That doesn't seem to work in LC. Maybe I'm missing something as usual, but I am having a hard time understanding what would keep a justification feature out of the text "A" tab of LC.

I've seen the stack example from 2014 as a solution of a way to justify text. It makes my brain hurt. :shock:

Please, LC developers, consider adding this feature to LC. I know that you are busy, but is this feature really that hard to implement? Even if you could just implement it in html5/css.

Thank you again for your consideration,
-Rachel

Re: True Text Justification

Posted: Thu Apr 04, 2019 2:29 am
by capellan
Hi Rachel,

The Skia Graphics Engine used by LiveCode
does not support natively text justification:
https://docs.microsoft.com/en-us/dotnet ... arp-1.68.0
https://skia.org/user/tips#kerning

but, Google has plans to include this feature and
many others in future releases:
https://groups.google.com/forum/#!topic ... RARbUW2qhw

By the way, Dave Kilroy's stack works fine on Mac,
if we make the fields a bit wider.

Al

Re: True Text Justification

Posted: Thu Apr 04, 2019 2:46 am
by ValiantCuriosity
Thanks for the reply Al. @capellan

That is interesting about the LC engine. I'm actually looking at text justification to go with iOS and Android. I like the look of it in my App's description area. Just seems cleaner for my purposes. I guess, for now, I'll just go with the ragged edges. I'm really just learning and trying things out anyway.

Would this LC engine issue also preclude using the Html/css styling feature of text align? I'm just curious and post questions that probably don't have a lot to do with what most people want or need. Fun to learn things though.

-Rachel

Re: True Text Justification

Posted: Thu Apr 04, 2019 12:50 pm
by bogs
Heya Rachel,

I asked you this before, and since I'm pretty sure your using the newer versions of Lc, I'll ask again.

For what your describing, why not use the browser widget? I am pretty sure it works on mobile (doesn't it? Maybe someone else knows for sure).

You could put anything you want that is html in it, and it will display just like what you are asking about.
Selection_001.png
Old sckool html 4 baby!