[LyX/master] Use correct width for \fint

Scott Kostyshak skostysh at lyx.org
Tue Sep 8 17:41:57 UTC 2020


On Sat, Aug 29, 2020 at 08:15:49PM +0200, Enrico Forestieri wrote:
> commit 80f94a9398ef1843d2592e87bd71d1cd2b40703c
> Author: Enrico Forestieri <forenr at lyx.org>
> Date:   Sat Aug 29 20:10:26 2020 +0200
> 
>     Use correct width for \fint
>     
>     Both QTextLine::naturalTextWidth() and QTextLine::horizontalAdvance()
>     return the same value for \fint. However, examining esint10.ttf with
>     fontforge does not reveal any issue with the metrics. The fact that
>     \fint seems to be the only affected symbol might be due to its code
>     point, which corresponds to a space, so that maybe Qt makes some
>     assumptions on the metrics.
>     
>     As QTextLine::naturalTextWidth() returns the width of the line that is
>     occupied by text, in the case of a single symbol we can obtain the
>     same value by using the width of the rectangle bounding the symbol.
> ---

This commit changes some spacing of an integral limit. See the attached
.lyx file and screenshots for before/after. In particular, the spacing
around '\in', ':', and '\le' is reduced.

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: colon-mwe.23.lyx
Type: application/x-lyx
Size: 1876 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200908/437098c7/attachment-0001.lyx>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: before.png
Type: image/png
Size: 118124 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200908/437098c7/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: after.png
Type: image/png
Size: 116523 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200908/437098c7/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200908/437098c7/attachment-0001.asc>


More information about the lyx-devel mailing list