unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: ynyaaa@gmail.com
To: Eli Zaretskii <eliz@gnu.org>
Cc: 25863@debbugs.gnu.org
Subject: bug#25863: 25.1; garbage display by small image
Date: Sat, 25 Feb 2017 19:11:41 +0900	[thread overview]
Message-ID: <8737f2bmw2.fsf@gmail.com> (raw)
In-Reply-To: <8360jyskp9.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 25 Feb 2017 11:06:58 +0200")

[-- Attachment #1: Type: text/plain, Size: 1051 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:
> I'm not sure I understand how to change the test case to account for
> the above.  Evaluating "(face-font 'default)" in "emacs -Q" produces
> this:
>
>   "-outline-Courier New-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1"
>
> How to change the test case to reproduce the problem with this font,
> please?

Starting emacs -Q and (set-frame-font
"-outline-Courier New-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1"),
the form below displayed garbage.
The value for 'h' may be modified between 9 and 16.

(let ((h 16))
  (switch-to-buffer (generate-new-buffer "temp"))
  (insert-image (create-image (concat (format "P4\n8 %d\n" h)
                                      (make-string h 127))
                              'pbm t))
  (insert ?g)
  (redisplay)
  (delete-char -1))

The attached image is the screen shot of the garbage display.
The left rectangle is the pbm image and the right rectangle
is text cursor, which looks shorter than the line height
where the line height equals to the image height.


[-- Attachment #2: test-emacs-garbage.png --]
[-- Type: image/png, Size: 2860 bytes --]

  reply	other threads:[~2017-02-25 10:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-24 15:39 bug#25863: 25.1; garbage display by small image ynyaaa
2017-02-24 18:20 ` Eli Zaretskii
2017-02-25  8:48   ` ynyaaa
2017-02-25  9:06     ` Eli Zaretskii
2017-02-25 10:11       ` ynyaaa [this message]
2017-02-25 12:19         ` Eli Zaretskii
2017-02-25 14:05           ` Eli Zaretskii
2017-02-25 23:59             ` ynyaaa
2017-02-26 15:38               ` Eli Zaretskii
2020-08-04  9:15         ` Lars Ingebrigtsen

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=8737f2bmw2.fsf@gmail.com \
    --to=ynyaaa@gmail.com \
    --cc=25863@debbugs.gnu.org \
    --cc=eliz@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).