On 5/25/22 6:36 AM, Paul Dupuis via use-livecode wrote:
Anyway, here is the routine, While it works, if I was rewriting it, I would probably just do a
loop with a match to the html font size attribute. This code does ensure that the size can't go
below a minimum where LC's legacy font size
On 5/20/2022 4:30 PM, J. Landman Gay via use-livecode wrote:
Thanks for verifying it Paul, that's what I was thinking too. I'm
looking at replacing the sizes via the style runs, I have a handler
Mark Waddingham gave me/us on the list last year that I think I can
modify.
But I'd be grateful
Thanks for verifying it Paul, that's what I was thinking too. I'm looking at replacing the
sizes via the style runs, I have a handler Mark Waddingham gave me/us on the list last year
that I think I can modify.
But I'd be grateful to see yours too. No big hurry, I just need to get an idea of
On 5/20/22 11:45 AM, Devin Asay via use-livecode wrote:
It sounds like the HTML tags are setting the size for runs of text in the
field, so you can’t just set the textSize of the field?
I did try setting the text size of the field, and all untagged chunks reflect the new size as
expected
You have to do replacement of the size value in the field's htmlText (or
perhaps styledText)
I have code that does this. I can provide it to you if you like. I don't
claim it is the bets or most effiecent. Unfortunately, I am gone for the
rest of today, s tomorrow is the earliest I could send
The text has to be in a field for lots of reasons. Browsers and widgets are
too limited.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On May 20, 2022 11:40:12 AM Bob Sneidar via use-livecode
wrote:
I know that typically cmd +/- (or
Hi Jaque,
A lot will depend:
1) Whether the changes in font size within the nested HTML tags have been set
locally or ‘more properly' as relative to the root font size of the page in
‘rem’, where 1 rem = 100% of the root font-size).
2) you want a global font-size adjustment or more granular.
If
Jacque,
It sounds like the HTML tags are setting the size for runs of text in the
field, so you can’t just set the textSize of the field?
Are there varying sizes of text runs in the field? Could you set the textSize
of the char 1 to -1 of the field to empty, then set it for the whole field? In
I know that typically cmd +/- (or ctrl for Win) will increase or decrease the
zoom of a web page. You can try that, or else use a browser widget. (I wonder
if that trick would work in a widget?? It should...)
Bob S
> On May 20, 2022, at 09:32 , J. Landman Gay via use-livecode
> wrote:
>
>
I have a field whose HTMLtext is set to a heavily tagged HTML file that
changes the font size repeatedly. We want to allow the user to adjust the
size of the text. The easiest way would be to use percentages for the font
sizes so that changing the field's textsize would change the markup
10 matches
Mail list logo