unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "zentrope@fastmail.fm" <keith@zentrope.com>
To: Alan Third <alan@idiocy.org>
Cc: 31904@debbugs.gnu.org
Subject: bug#31904: scatch/ns-drawing
Date: Sun, 19 Aug 2018 16:51:36 -0700	[thread overview]
Message-ID: <1208BE02-F818-4699-B30B-2D9506126960@zentrope.com> (raw)
In-Reply-To: <20180819095907.GA98058@breton.holly.idiocy.org>



> On Aug 19, 2018, at 2:59 AM, Alan Third <alan@idiocy.org> wrote:
> 
> On Sat, Aug 18, 2018 at 12:23:02PM -0700, zentrope@fastmail.fm wrote:
>> Another wrinkle (emacs-26 with patch applied):
>> 
>> When I change my font, all the text disappears except for the current line.
>> 
>> The text comes back if:
>> 
>> - I move the cursor over the affected areas.
>> - I wait a bit (from the cursor line down renders).
>> - Switch away to a non-Emacs window.
>> 
>> Seems like as soon as there’s a reason to paint the screen, it comes back.
> 
> I take it the frame changes size when you change font?
> 
> If you evaluate this does the frame redraw right?
> 
>  (set-frame-width nil 103)

The frame’s size does not change (if you mean the window gets narrower for a narrower font, say).

The set-frame-width expression doesn’t make any difference when I change from Monoco to Menlo and back.

Another interesting thing:

* The problem does NOT occur when changing the size of the font.

* If I change the font (to Monaco), the screen blanks, but immediately running a command to change the font size “fixes” it.

Seems that the font-change isn’t triggering a “repaint the whole thing”, rather, just repaint the line containing the pointer.


Functions involved in font-size change (really just set-face-attribute):

(defun kfi/set-font-size (size)
  "Set the font SIZE."
  (interactive "nNew size: ")
  (set-face-attribute 'default nil :height size))

(defun kfi/font-size-up ()
  "Shift font size up by 10 units."
  (interactive)
  (kfi/set-font-size (+ (face-attribute 'default :height) 10)))

(defun kfi/font-size-down ()
  "Shift font size down by 10 units."
  (interactive)
  (kfi/set-font-size (- (face-attribute 'default :height) 10)))








  reply	other threads:[~2018-08-19 23:51 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-19 23:09 bug#31904: 27.0.50; Emacs doesn't render text/modeline Mac OSX 10.14 Mojave zentrope@fastmail.fm
2018-06-20 19:00 ` Alan Third
     [not found] ` <handler.31904.B.152945065229583.ack@debbugs.gnu.org>
2018-06-20 21:32   ` bug#31904: Acknowledgement (27.0.50; Emacs doesn't render text/modeline Mac OSX 10.14 Mojave) zentrope@fastmail.fm
2018-08-15 23:54 ` bug#31904: scatch/ns-drawing zentrope@fastmail.fm
2018-08-18 14:02   ` Alan Third
2018-08-18 18:56     ` zentrope@fastmail.fm
2018-08-18 19:16       ` zentrope@fastmail.fm
2018-08-18 19:23         ` zentrope@fastmail.fm
2018-08-19  9:59           ` Alan Third
2018-08-19 23:51             ` zentrope@fastmail.fm [this message]
2018-08-26 13:02               ` Alan Third
2018-08-19 12:41         ` Alan Third
2018-08-19 23:44           ` zentrope@fastmail.fm
2018-09-19 16:36 ` bug#31904: bug##31904 Zack Piper
2019-09-28 17:54 ` bug#31904: scatch/ns-drawing Stefan Kangas
2019-09-28 21:14   ` Alan Third

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=1208BE02-F818-4699-B30B-2D9506126960@zentrope.com \
    --to=keith@zentrope.com \
    --cc=31904@debbugs.gnu.org \
    --cc=alan@idiocy.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).