bug#24175: artist mode rectangle shows ugly in Emacs

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

bug#24175: artist mode rectangle shows ugly in Emacs

Dean Chen
Hi, 
  I am trying draw rectangle today in Emacs with artist mode. It looks weird, see following screenshot.
Inline image 1

  But if I open this text file with chromium browser instead of emacs, it looks normally. I guess the way that Emacs render this rectangle has a bug.

                                       +---------------------------------------------+
                                       |                                             |
                                       |                                             |
                                       |                                             |
                                       |                                             |
                                       |                                             |
                                       |                                             |
                                       |                                             |
                                       +---------------------------------------------+

My OS is archlinux, Emacs version is 24.5.1. My laptop is Dell XPS 13 and display resolution is 1920 * 1080.


--
Best Regards!
Dean Chen

+86 18652581062
GraphSQL Inc.
Reply | Threaded
Open this post in threaded view
|

bug#24175: artist mode rectangle shows ugly in Emacs

Dean Chen
for 1 question, 

I use M-x describe-font, press Enter after mini buffer shows: Font name(default current choice for ASCII chars).
Get the following info:

name (opened by): -DAMA-Ubuntu-normal-normal-normal-*-17-*-*-*-*-0-iso10646-1
       full name: Ubuntu:pixelsize=17:foundry=DAMA:weight=normal:slant=normal:width=normal:scalable=true
            size: 17
          height: 19
 baseline-offset:  0
relative-compose:  0

Also try to evaluate the expression in eshell, get the same result.

~ $ (face-attribute 'default :font)
#<font-object "-DAMA-Ubuntu-normal-normal-normal-*-17-*-*-*-*-0-iso10646-1">


for 2 question, please see the following screenshot, after C-u C-x RET, mini buffer shows C-u C-x RET-
Inline image 1


--
Best Regards!
Dean Chen

+86 18652581062
GraphSQL Inc.
Reply | Threaded
Open this post in threaded view
|

bug#24175: artist mode rectangle shows ugly in Emacs

Eli Zaretskii
In reply to this post by Dean Chen
> From: Dean Chen <[hidden email]>
> Date: Sun, 7 Aug 2016 13:22:12 +0800
>
> I am trying draw rectangle today in Emacs with artist mode. It looks weird, see following screenshot.
> Inline image 1
>
> But if I open this text file with chromium browser instead of emacs, it looks normally. I guess the way that
> Emacs render this rectangle has a bug.

I think the problem is that your default font is a proportional one.
You should use a fixed-pitch font when you work with artist mode.



Reply | Threaded
Open this post in threaded view
|

bug#24175: artist mode rectangle shows ugly in Emacs

Lars Ingebrigtsen
Eli Zaretskii <[hidden email]> writes:

>> From: Dean Chen <[hidden email]>
>> Date: Sun, 7 Aug 2016 13:22:12 +0800
>>
>> I am trying draw rectangle today in Emacs with artist mode. It looks weird, see following screenshot.
>> Inline image 1
>>
>> But if I open this text file with chromium browser instead of emacs, it looks normally. I guess the way that
>> Emacs render this rectangle has a bug.
>
> I think the problem is that your default font is a proportional one.
> You should use a fixed-pitch font when you work with artist mode.

Should artist-mode perhaps error out if the default font is a
proportional font?

--
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



Reply | Threaded
Open this post in threaded view
|

bug#24175: artist mode rectangle shows ugly in Emacs

Eli Zaretskii
> From: Lars Ingebrigtsen <[hidden email]>
> Cc: Dean Chen <[hidden email]>,  [hidden email]
> Date: Mon, 16 Apr 2018 01:15:15 +0200
>
> Eli Zaretskii <[hidden email]> writes:
>
> >> From: Dean Chen <[hidden email]>
> >> Date: Sun, 7 Aug 2016 13:22:12 +0800
> >>
> >> I am trying draw rectangle today in Emacs with artist mode. It looks weird, see following screenshot.
> >> Inline image 1
> >>
> >> But if I open this text file with chromium browser instead of emacs, it looks normally. I guess the way that
> >> Emacs render this rectangle has a bug.
> >
> > I think the problem is that your default font is a proportional one.
> > You should use a fixed-pitch font when you work with artist mode.
>
> Should artist-mode perhaps error out if the default font is a
> proportional font?

Not sure about erroring out, but a warning might be a good idea.



Reply | Threaded
Open this post in threaded view
|

bug#24175: artist mode rectangle shows ugly in Emacs

Lars Ingebrigtsen
Eli Zaretskii <[hidden email]> writes:

> Not sure about erroring out, but a warning might be a good idea.

I've now done so.

--
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no