unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Fabrice Popineau <fabrice.popineau@gmail.com>
To: rms@gnu.org, Emacs developers <emacs-devel@gnu.org>
Subject: Re: Emacs on Ubuntu advice
Date: Sun, 15 Oct 2017 21:09:02 +0200	[thread overview]
Message-ID: <CAFgFV9PaS7cqPiaZ+xZj=0-n-oNKnBu9izrNLgHEh4wd4TaxQQ@mail.gmail.com> (raw)
In-Reply-To: <E1e3BMA-0006ik-OC@fencepost.gnu.org>


[-- Attachment #1.1: Type: text/plain, Size: 3268 bytes --]

2017-10-14 3:35 GMT+02:00 Richard Stallman <rms@gnu.org>:

> [[[ To any NSA and FBI agents reading my email: please consider    ]]]
> [[[ whether defending the US Constitution against all enemies,     ]]]
> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
>
>   > I have compiled Emacs under Windows Subsystem for Linux, which is
> Ubuntu
>   > 16.04
>
> 1. It sounds like this is really the Windows Subsystem for GNU/Linux.
>
>
Well, I understand your point but people keep calling it WSL and not WSGL
up to now
https://msdn.microsoft.com/en-us/commandline/wsl/about
https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux

2. We try to make GNU Emacs run on various platforms,
> but running Emacs on Windows in any fashion
> cannot eliminate the injustice of Windows itself.
> I hope you find the strength to escape from Windows.
>

Sincerely : _I don't want to_. Some of us are perfectly happy to pay for
what
we get (I praise Windows for its stability).

Back to my original question, I have spent quite a time looking for
settings to
get the same crisp rendering of the Consolas font with Emacs-w64 and the
one running from WSL
and failed to up to now.

Reminder: WSL is Ubuntu 16.04.
I have fiddled with X resources set up on the command line while running
Emacs and I couldn't
get anything better than :

/usr/local/emacs-26/bin/emacs -Q -fn "Consolas-11" -xrm "Xft.dpi:109" -xrm
"Xft.lcdfilter:lcdlight" \
 -xrm "Xft.rgba:rgb" -xrm "Xft.hintstyle:hintfull" -xrm "Xft.antialias:1"
-xrm "Xft.globaladvance:0" \
 -xrm "Xft.embeddedbitmap:1"  \
/mnt/c/Users/Fabrice/Downloads/0001-Do-not-under-align-pseudovectors.patch

embeddedbitmap does not seem to play any role here btw.
I had to set the dpi to 109 which is the closest value for my 27" 4k
display
(xdpyinfo reports 96dpi, but that is too low). If I use 108dpi, then the
font
rendering is very bad.
I tried all choices of rgba, hintstyle, lcdfilter but can't get something
close to
the native w32 rendering.

Emacs has been compiled with
system-configuration-features is a variable defined in ‘C source code’.
Its value is
"XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL
LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 MODULES LCMS2"
and
system-configuration-options is a variable defined in ‘C source code’.
Its value is
"--with-modules --with-x-toolkit=gtk3 --prefix=/usr/local/emacs-26"

The first of the pictures below is from Emacs-w64 and the second one
is from Emacs-WSL.

So if anybody can suggest some relevant documentation
(I mostly read https://wiki.archlinux.org/index.php/HiDPI
and the fontconfig doc) or better the ideal set of parameters,
or even a reason why what I want to chieve is impossible,
I would be very grateful.

For the record, I can run emacs natively or from WSL using my very
same .emacs.d directory. My init.el is quite large:
fabrice@LOBSANG:~$ wc -l ~/.emacs.d/init.el
5467 /home/fabrice/.emacs.d/init.el
and I have about 170 packages in ~/.emacs.d/elpa which are loaded
by this init.el file.

Best regards,

Fabrice



[image: Images intégrées 1]

[image: Images intégrées 2]

[-- Attachment #1.2: Type: text/html, Size: 5027 bytes --]

[-- Attachment #2: image.png --]
[-- Type: image/png, Size: 74576 bytes --]

[-- Attachment #3: image.png --]
[-- Type: image/png, Size: 15584 bytes --]

  reply	other threads:[~2017-10-15 19:09 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-13 11:55 Emacs on Ubuntu advice Fabrice Popineau
2017-10-14  1:35 ` Richard Stallman
2017-10-15 19:09   ` Fabrice Popineau [this message]
2017-10-15 21:03     ` Ingo Lohmar
2017-10-16  1:55     ` Richard Stallman
2017-10-16 10:25       ` Fabrice Popineau
2017-10-16 11:14         ` Rostislav Svoboda
2017-10-16 19:23         ` Richard Stallman
2017-10-16  1:55     ` Richard Stallman
2017-10-26  5:21       ` Matthew Carter
2017-10-16 14:04     ` Jay Kamat
2017-10-16 14:15       ` Fabrice Popineau
2017-10-16  5:49   ` Yuri Khan
2017-10-16  6:28     ` Paul Eggert
2017-10-16  9:18       ` Rostislav Svoboda
2017-10-16 10:23         ` Fabrice Popineau
2017-10-16 17:36       ` Mike Gerwitz
2017-10-16 19:22       ` Richard Stallman
2017-10-16 14:59     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFgFV9PaS7cqPiaZ+xZj=0-n-oNKnBu9izrNLgHEh4wd4TaxQQ@mail.gmail.com' \
    --to=fabrice.popineau@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).