Re: Request for better script size and line height handling

On 10/10/2022 23:30, Lorenzo Bertini wrote:
> Hello,
>
> please forgive me if this is the wrong place to ask.
>
> I've been authoring with MathML for a while, and one thing that always 
> bothered me is that <math> components break line height on all my 
> paragraphs that have them.
>
> For example, a symbol with many subscripts, as in
>
> <math>
> <mrow>
>  <msub>
>   <mi>ψ</mi>
>   <msub>
>    <mi>f</mi>
>    <mi>f</mi>
>   </msub>
>  </msub>
> </mrow>
> </math>
>
> will cause lines following the one containing it to be distanced in 
> the Firefox renderer.
>
> This happens all the time and makes the document look a bit rough and 
> unpolished. I would like it to mimic Latex's behavior, that is, simply 
> overflow in the next line. No way I tried (reducing line-height, 
> height, etc) has overcome this effect.
>
> Now, I don't know if this is MathML's or Firefox's fault, or if this 
> was intended all along; hence my worry for asking in the wrong place. 
> Let me know in case.
>
> A solution that works is to wrap the <math> element inside a <div> 
> element with for example "height: 1px" CSS property. Is there a way 
> this could be implemented "natively"?
>
> One a side note, why was "scriptminsize" deprecated? Is there a 
> substitute?
>
> Thank you lots for your time,
>
> Lorenzo
>
>
Hello,

Is this a duplicate of https://bugzilla.mozilla.org/show_bug.cgi?id=947650 ?

Have you followed instructions at 
https://developer.mozilla.org/en-US/docs/Web/MathML/Fonts ?

-- 
Frédéric Wang

Received on Tuesday, 11 October 2022 06:51:47 UTC