* Different rendering in latex doc between Windows, macOS and GNU/Linux
@ 2022-11-26 12:48 Angelo Graziosi
2022-11-26 14:14 ` Eli Zaretskii
2022-11-26 19:20 ` Jim Porter
0 siblings, 2 replies; 11+ messages in thread
From: Angelo Graziosi @ 2022-11-26 12:48 UTC (permalink / raw)
To: emacs-devel@gnu.org
Just for completeness..
Using both on Windows, macOS and GNU/Linux builds "emacs -q", I notice that with
\emph{foo}
'foo' is rendered in 'italic' on Windows and macOS while it is rendered in 'underlined bold' on GNU/Linux. I tried with different fonts on both systems. The color is the same.
Why the behavior is different on GNU/Linux?
Ciao,
Angelo.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Different rendering in latex doc between Windows, macOS and GNU/Linux
2022-11-26 12:48 Different rendering in latex doc between Windows, macOS and GNU/Linux Angelo Graziosi
@ 2022-11-26 14:14 ` Eli Zaretskii
2022-11-26 16:08 ` Angelo Graziosi
2022-11-26 19:20 ` Jim Porter
1 sibling, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2022-11-26 14:14 UTC (permalink / raw)
To: Angelo Graziosi; +Cc: emacs-devel
> Date: Sat, 26 Nov 2022 13:48:33 +0100 (CET)
> From: Angelo Graziosi <angelo.g0@libero.it>
>
> Using both on Windows, macOS and GNU/Linux builds "emacs -q", I notice that with
>
> \emph{foo}
>
> 'foo' is rendered in 'italic' on Windows and macOS while it is rendered in 'underlined bold' on GNU/Linux. I tried with different fonts on both systems. The color is the same.
>
> Why the behavior is different on GNU/Linux?
I suspect on GNU/Linux, Emacs is configured to load some optional package.
The -q option doesn't disable site-init files.
If the above doesn't solve the problem, please tell what face do you see on
"foo" (using, for example, describe-text-properties).
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Different rendering in latex doc between Windows, macOS and GNU/Linux
2022-11-26 14:14 ` Eli Zaretskii
@ 2022-11-26 16:08 ` Angelo Graziosi
2022-11-26 16:45 ` Eli Zaretskii
0 siblings, 1 reply; 11+ messages in thread
From: Angelo Graziosi @ 2022-11-26 16:08 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 1207 bytes --]
> Il 26/11/2022 15:14 Eli Zaretskii ha scritto:
>
>
> > Date: Sat, 26 Nov 2022 13:48:33 +0100 (CET)
> > From: Angelo Graziosi
> >
> > Using both on Windows, macOS and GNU/Linux builds "emacs -q", I notice that with
> >
> > \emph{foo}
> >
> > 'foo' is rendered in 'italic' on Windows and macOS while it is rendered in 'underlined bold' on GNU/Linux. I tried with different fonts on both systems. The color is the same.
> >
> > Why the behavior is different on GNU/Linux?
>
> I suspect on GNU/Linux, Emacs is configured to load some optional package.
> The -q option doesn't disable site-init files.
Sorry, but I do not understand this. How can I disable that? I use two package from MELPA and one from ELPA and they are not loaded with 'emacs -q'... In any case, see below...
>
> If the above doesn't solve the problem, please tell what face do you see on
> "foo" (using, for example, describe-text-properties).
The result of the above command is the same, both on Windows and GNU/Linux but on GNU/Linux 'foo' is rendered in underline bold while on Windows it is in italic. I create a foo.tex file with '\emph{foo}' on the first line and with the cursor on 'f' of 'foo'. See the attachments..
[-- Attachment #2: gnulinux-footex-test.png --]
[-- Type: image/png, Size: 31503 bytes --]
[-- Attachment #3: win10pro-footex-test.png --]
[-- Type: image/png, Size: 24443 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Different rendering in latex doc between Windows, macOS and GNU/Linux
2022-11-26 16:08 ` Angelo Graziosi
@ 2022-11-26 16:45 ` Eli Zaretskii
2022-11-26 19:03 ` Angelo Graziosi
0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2022-11-26 16:45 UTC (permalink / raw)
To: Angelo Graziosi; +Cc: emacs-devel
> Date: Sat, 26 Nov 2022 17:08:41 +0100 (CET)
> From: Angelo Graziosi <angelo.g0@libero.it>
> Cc: emacs-devel@gnu.org
>
> > I suspect on GNU/Linux, Emacs is configured to load some optional package.
> > The -q option doesn't disable site-init files.
>
> Sorry, but I do not understand this. How can I disable that?
By using "emacs -Q" (capital Q). But it is not important in this case, see
below.
> The result of the above command is the same, both on Windows and GNU/Linux but on GNU/Linux 'foo' is rendered in underline bold while on Windows it is in italic. I create a foo.tex file with '\emph{foo}' on the first line and with the cursor on 'f' of 'foo'. See the attachments..
The images show that the font you use on GNU/Linux doesn't have the italics
variant, so Emacs uses underline instead, per the defface:
(defface italic
'((((supports :slant italic))
:slant italic)
(((supports :underline t))
:underline t)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Different rendering in latex doc between Windows, macOS and GNU/Linux
2022-11-26 16:45 ` Eli Zaretskii
@ 2022-11-26 19:03 ` Angelo Graziosi
2022-11-26 19:16 ` Eli Zaretskii
0 siblings, 1 reply; 11+ messages in thread
From: Angelo Graziosi @ 2022-11-26 19:03 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 1748 bytes --]
> Il 26/11/2022 17:45 Eli Zaretskii ha scritto:
>
>
> > Date: Sat, 26 Nov 2022 17:08:41 +0100 (CET)
> > From: Angelo Graziosi
> > Cc:
> >
> > > I suspect on GNU/Linux, Emacs is configured to load some optional package.
> > > The -q option doesn't disable site-init files.
> >
> > Sorry, but I do not understand this. How can I disable that?
>
> By using "emacs -Q" (capital Q). But it is not important in this case, see
Ah, I thought the contrary..
> below.
>
> > The result of the above command is the same, both on Windows and GNU/Linux but on GNU/Linux 'foo' is rendered in underline bold while on Windows it is in italic. I create a foo.tex file with '\emph{foo}' on the first line and with the cursor on 'f' of 'foo'. See the attachments..
>
> The images show that the font you use on GNU/Linux doesn't have the italics
> variant, so Emacs uses underline instead, per the defface:
>
> (defface italic
> '((((supports :slant italic))
> :slant italic)
> (((supports :underline t))
> :underline t)
Hmm.. this is strange. "emacs -q/Q" uses Monospace and in Emacs, 'Menu-Set Default Font...' seems to show that Monospace has italic (see the attachment taken with 'emacs -Q')! But really I tried with many fonts (Andale Mono, Bitstream Vera Sans Mono, Courier, DejaVu sans Mono book, FreeMono, Noto...) all listed with the the regular, italic, bold.. versions and with the same negative results.
This does not occur on Windows or macOS.
If you see the image in my previous post, win10pro-footex-test.png, it uses Courier, the same Courier New listed in Emacs Set Default Font menu item but there it is italic not underlined.
Anyway, may you suggest a font to be used with Emacs in GNU/Linux to test this?
[-- Attachment #2: monospace-italic.png --]
[-- Type: image/png, Size: 78221 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Different rendering in latex doc between Windows, macOS and GNU/Linux
2022-11-26 19:03 ` Angelo Graziosi
@ 2022-11-26 19:16 ` Eli Zaretskii
2022-11-26 20:21 ` Stefan Monnier
0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2022-11-26 19:16 UTC (permalink / raw)
To: Angelo Graziosi; +Cc: emacs-devel
> Date: Sat, 26 Nov 2022 20:03:59 +0100 (CET)
> From: Angelo Graziosi <angelo.g0@libero.it>
> Cc: emacs-devel@gnu.org
>
> > > The result of the above command is the same, both on Windows and GNU/Linux but on GNU/Linux 'foo' is rendered in underline bold while on Windows it is in italic. I create a foo.tex file with '\emph{foo}' on the first line and with the cursor on 'f' of 'foo'. See the attachments..
> >
> > The images show that the font you use on GNU/Linux doesn't have the italics
> > variant, so Emacs uses underline instead, per the defface:
> >
> > (defface italic
> > '((((supports :slant italic))
> > :slant italic)
> > (((supports :underline t))
> > :underline t)
>
> Hmm.. this is strange. "emacs -q/Q" uses Monospace and in Emacs, 'Menu-Set Default Font...' seems to show that Monospace has italic (see the attachment taken with 'emacs -Q')! But really I tried with many fonts (Andale Mono, Bitstream Vera Sans Mono, Courier, DejaVu sans Mono book, FreeMono, Noto...) all listed with the the regular, italic, bold.. versions and with the same negative results.
>
> This does not occur on Windows or macOS.
Maybe it' isn't the font, but something else, I don't know. The fact is
that Emacs says the face is 'italic', but displays it as underline. And the
above says this happens when italics cannot be produced for some reason.
> Anyway, may you suggest a font to be used with Emacs in GNU/Linux to test this?
Sorry, no. I don't know what to suggest. Maybe someone else does.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Different rendering in latex doc between Windows, macOS and GNU/Linux
2022-11-26 12:48 Different rendering in latex doc between Windows, macOS and GNU/Linux Angelo Graziosi
2022-11-26 14:14 ` Eli Zaretskii
@ 2022-11-26 19:20 ` Jim Porter
2022-11-26 20:16 ` Angelo Graziosi
1 sibling, 1 reply; 11+ messages in thread
From: Jim Porter @ 2022-11-26 19:20 UTC (permalink / raw)
To: Angelo Graziosi, emacs-devel@gnu.org
On 11/26/2022 4:48 AM, Angelo Graziosi wrote:
> Just for completeness..
>
> Using both on Windows, macOS and GNU/Linux builds "emacs -q", I notice that with
>
> \emph{foo}
>
> 'foo' is rendered in 'italic' on Windows and macOS while it is rendered in 'underlined bold' on GNU/Linux. I tried with different fonts on both systems. The color is the same.
>
> Why the behavior is different on GNU/Linux?
My crystal ball tells me that you need to install the package
`fonts-dejavu-extra`. You likely don't have the italic forms of DejaVu
Sans Mono installed, and so Emacs falls back to rendering it with an
underline.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Different rendering in latex doc between Windows, macOS and GNU/Linux
2022-11-26 19:20 ` Jim Porter
@ 2022-11-26 20:16 ` Angelo Graziosi
2022-11-26 20:26 ` Jim Porter
0 siblings, 1 reply; 11+ messages in thread
From: Angelo Graziosi @ 2022-11-26 20:16 UTC (permalink / raw)
To: Jim Porter, emacs-devel@gnu.org
> Il 26/11/2022 20:20 Jim Porter ha scritto:
>
>
> On 11/26/2022 4:48 AM, Angelo Graziosi wrote:
> > Just for completeness..
> >
> > Using both on Windows, macOS and GNU/Linux builds "emacs -q", I notice that with
> >
> > \emph{foo}
> >
> > 'foo' is rendered in 'italic' on Windows and macOS while it is rendered in 'underlined bold' on GNU/Linux. I tried with different fonts on both systems. The color is the same.
> >
> > Why the behavior is different on GNU/Linux?
>
> My crystal ball tells me that you need to install the package
> `fonts-dejavu-extra`. You likely don't have the italic forms of DejaVu
Bingo! This fixed the issue! Thanks a lot!
I wonder why this package is not installed by the distribution (Mint/Ubuntu) if it chose Monospace font as system font ...
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Different rendering in latex doc between Windows, macOS and GNU/Linux
2022-11-26 19:16 ` Eli Zaretskii
@ 2022-11-26 20:21 ` Stefan Monnier
2022-11-26 20:33 ` Gregory Heytings
0 siblings, 1 reply; 11+ messages in thread
From: Stefan Monnier @ 2022-11-26 20:21 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Angelo Graziosi, emacs-devel
Any chance this problem is related to bug#59347?
Stefan
Eli Zaretskii [2022-11-26 21:16:49] wrote:
>> Date: Sat, 26 Nov 2022 20:03:59 +0100 (CET)
>> From: Angelo Graziosi <angelo.g0@libero.it>
>> Cc: emacs-devel@gnu.org
>>
>> > > The result of the above command is the same, both on Windows and GNU/Linux but on GNU/Linux 'foo' is rendered in underline bold while on Windows it is in italic. I create a foo.tex file with '\emph{foo}' on the first line and with the cursor on 'f' of 'foo'. See the attachments..
>> >
>> > The images show that the font you use on GNU/Linux doesn't have the italics
>> > variant, so Emacs uses underline instead, per the defface:
>> >
>> > (defface italic
>> > '((((supports :slant italic))
>> > :slant italic)
>> > (((supports :underline t))
>> > :underline t)
>>
>> Hmm.. this is strange. "emacs -q/Q" uses Monospace and in Emacs, 'Menu-Set
>> Default Font...' seems to show that Monospace has italic (see the
>> attachment taken with 'emacs -Q')! But really I tried with many fonts
>> (Andale Mono, Bitstream Vera Sans Mono, Courier, DejaVu sans Mono book,
>> FreeMono, Noto...) all listed with the the regular, italic,
>> bold.. versions and with the same negative results.
>>
>> This does not occur on Windows or macOS.
>
> Maybe it' isn't the font, but something else, I don't know. The fact is
> that Emacs says the face is 'italic', but displays it as underline. And the
> above says this happens when italics cannot be produced for some reason.
>
>> Anyway, may you suggest a font to be used with Emacs in GNU/Linux to test this?
>
> Sorry, no. I don't know what to suggest. Maybe someone else does.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Different rendering in latex doc between Windows, macOS and GNU/Linux
2022-11-26 20:16 ` Angelo Graziosi
@ 2022-11-26 20:26 ` Jim Porter
0 siblings, 0 replies; 11+ messages in thread
From: Jim Porter @ 2022-11-26 20:26 UTC (permalink / raw)
To: Angelo Graziosi, emacs-devel@gnu.org
On 11/26/2022 12:16 PM, Angelo Graziosi wrote:
> I wonder why this package is not installed by the distribution (Mint/Ubuntu) if it chose Monospace font as system font ...
I think Ubuntu is assuming that most applications will be happy enough
with the faux italic form that you can get by applying a skew
transformation to the regular glyphs. Emacs wants an actual italic
variant though, and (as far as I understand) won't try to use faux italics.
Maybe there's a feature request in there? Should Emacs support faux
italics? I'm not sure...
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Different rendering in latex doc between Windows, macOS and GNU/Linux
2022-11-26 20:21 ` Stefan Monnier
@ 2022-11-26 20:33 ` Gregory Heytings
0 siblings, 0 replies; 11+ messages in thread
From: Gregory Heytings @ 2022-11-26 20:33 UTC (permalink / raw)
To: Stefan Monnier; +Cc: Eli Zaretskii, Angelo Graziosi, emacs-devel
>
> Any chance this problem is related to bug#59347?
>
No, it isn't. In this case Emacs behaves as expected: the font chosen for
the default face doesn't have an italic variant, so Emacs falls back to
underlining.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2022-11-26 20:33 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-26 12:48 Different rendering in latex doc between Windows, macOS and GNU/Linux Angelo Graziosi
2022-11-26 14:14 ` Eli Zaretskii
2022-11-26 16:08 ` Angelo Graziosi
2022-11-26 16:45 ` Eli Zaretskii
2022-11-26 19:03 ` Angelo Graziosi
2022-11-26 19:16 ` Eli Zaretskii
2022-11-26 20:21 ` Stefan Monnier
2022-11-26 20:33 ` Gregory Heytings
2022-11-26 19:20 ` Jim Porter
2022-11-26 20:16 ` Angelo Graziosi
2022-11-26 20:26 ` Jim Porter
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.