all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#24175: artist mode rectangle shows ugly in Emacs
@ 2016-08-07  5:22 Dean Chen
  2016-08-07 10:06 ` Dean Chen
  2016-08-07 14:00 ` Eli Zaretskii
  0 siblings, 2 replies; 6+ messages in thread
From: Dean Chen @ 2016-08-07  5:22 UTC (permalink / raw)
  To: 24175


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

Hi,
  I am trying draw rectangle today in Emacs with artist mode. It looks
weird, see following screenshot.
[image: 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.

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

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#24175: artist mode rectangle shows ugly in Emacs
  2016-08-07  5:22 bug#24175: artist mode rectangle shows ugly in Emacs Dean Chen
@ 2016-08-07 10:06 ` Dean Chen
  2016-08-07 14:00 ` Eli Zaretskii
  1 sibling, 0 replies; 6+ messages in thread
From: Dean Chen @ 2016-08-07 10:06 UTC (permalink / raw)
  To: 24175


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

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-
[image: Inline image 1]


-- 
Best Regards!
Dean Chen

+86 18652581062
GraphSQL Inc.

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

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#24175: artist mode rectangle shows ugly in Emacs
  2016-08-07  5:22 bug#24175: artist mode rectangle shows ugly in Emacs Dean Chen
  2016-08-07 10:06 ` Dean Chen
@ 2016-08-07 14:00 ` Eli Zaretskii
  2018-04-15 23:15   ` Lars Ingebrigtsen
  1 sibling, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2016-08-07 14:00 UTC (permalink / raw)
  To: Dean Chen; +Cc: 24175

> From: Dean Chen <dean.chen@graphsql.com>
> 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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#24175: artist mode rectangle shows ugly in Emacs
  2016-08-07 14:00 ` Eli Zaretskii
@ 2018-04-15 23:15   ` Lars Ingebrigtsen
  2018-04-16 18:18     ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2018-04-15 23:15 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Dean Chen, 24175

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Dean Chen <dean.chen@graphsql.com>
>> 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





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#24175: artist mode rectangle shows ugly in Emacs
  2018-04-15 23:15   ` Lars Ingebrigtsen
@ 2018-04-16 18:18     ` Eli Zaretskii
  2018-04-16 19:20       ` Lars Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2018-04-16 18:18 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: dean.chen, 24175

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: Dean Chen <dean.chen@graphsql.com>,  24175@debbugs.gnu.org
> Date: Mon, 16 Apr 2018 01:15:15 +0200
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> From: Dean Chen <dean.chen@graphsql.com>
> >> 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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#24175: artist mode rectangle shows ugly in Emacs
  2018-04-16 18:18     ` Eli Zaretskii
@ 2018-04-16 19:20       ` Lars Ingebrigtsen
  0 siblings, 0 replies; 6+ messages in thread
From: Lars Ingebrigtsen @ 2018-04-16 19:20 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: dean.chen, 24175

Eli Zaretskii <eliz@gnu.org> 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





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-04-16 19:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-07  5:22 bug#24175: artist mode rectangle shows ugly in Emacs Dean Chen
2016-08-07 10:06 ` Dean Chen
2016-08-07 14:00 ` Eli Zaretskii
2018-04-15 23:15   ` Lars Ingebrigtsen
2018-04-16 18:18     ` Eli Zaretskii
2018-04-16 19:20       ` Lars Ingebrigtsen

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.