For screen representation of integrals, LyX uses two different fonts
leading to an inconsistent look. See the attached integrals.lyx.

There's already in place the infrastructure for using the integrals
in the esint font, and some time ago I built a ttf version of this
font (I am attching it here).

There's a problem with Qt4, though. As in the case of a soft-hyphen,
affecting the Omega symbol, Qt4 doesn't print the glyph of a character
when it thinks that it is white space. This impacts \dotsint (and
\dotsintop) such that this symbol would not show up by simply
dropping esint10.ttf in the LyX fonts directory, because its code
point is 0x09 corresponding to a horizontal tab. Unfortunately, in
this case we cannot use a workaround similar to that devised for Omega.

I can think of two solutions:
1) using the attached patch (esint.diff), or
2) moving the dotsint glyph in esint10.ttf to another code point.

Solution 1 is what we use now when the esint font is missing,
constructing the missing glyph by means of other glyphs.
Solution 2 would provide a real glyph for \dotsint, but the font
would not match the TeX font with the same name.

Given that now the math fonts are private to LyX, I would implement
solution 2, as I don't see any drawback.

Opinions?

-- 
Enrico
#LyX 1.5.2svn created this file. For more info see http://www.lyx.org/
\lyxformat 276
\begin_document
\begin_header
\textclass article
\language english
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize default
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author "" 
\author "" 
\end_header

\begin_body

\begin_layout Standard
\begin_inset Formula \[
\int\iint\iiint\iiiint\dotsint\oint\oiint\sqint\sqiint\ointclockwise\ointctrclockwise\]

\end_inset


\end_layout

\end_body
\end_document
Index: lib/symbols
===================================================================
--- lib/symbols (revisione 20749)
+++ lib/symbols (copia locale)
@@ -776,8 +776,8 @@
 iiintop            esint        005    0  mathop  x      esint
 iiiint             esint        007    0  mathop  x      esintoramsmath
 iiiintop           esint        007    0  mathop  x      esint
-dotsint            esint        009    0  mathop  x      esint
-dotsintop          esint        009    0  mathop  x      esint
+\def\dotsint{\int\kern-3mu\cdots\kern-3mu\int}                  esint
+\def\dotsintop{\int\kern-3mu\cdots\kern-3mu\int}                esint
 oint               esint        011    0  mathop  x      esint
 ointop             esint        011    0  mathop  x      esint
 oiint              esint        013    0  mathop  x      esint

Attachment: esint10.ttf
Description: Binary data

Reply via email to