unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Third <alan@idiocy.org>
To: Po Lu <luangruo@yahoo.com>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: NS port cleanups
Date: Tue, 19 Oct 2021 21:22:37 +0100	[thread overview]
Message-ID: <YW8pDVyfnki5l7f0@idiocy.org> (raw)
In-Reply-To: <8735ox9wtu.fsf_-_@yahoo.com>

On Tue, Oct 19, 2021 at 05:40:29PM +0800, Po Lu wrote:
> > If you want to improve the GNUstep experience I think the best place
> > to start would be improving nsfont. I've tried, but frankly I don't
> > understand fonts and my motivation ran out pretty quickly, especially
> > since some of the GNUstep side is completely undocumented.
> 
> I did a best effort job at cleaning up nsfont and getting it into a
> presentable state.  I've also implemented some changes to the NS port in
> general that implement some missing features (such as overhangs), and
> fix some issues preventing nsfont from behaving correctly (namely the
> horrid cursor drawing logic that I changed to behave closer to the
> X-Windows code), and some changes to the menu logic.

This looks really good on GNUstep! I am no longer faced with a wide
selection of random fonts when I open xdisp.c!

A few wee things:

Except for the first line the commit message should be made up of full
sentences with full stops at the end.

I feel it might be good to split this into two separate patches, one
with the GNUstep stuff and the other with the changes to cursor
drawing, but that's up to you.

The cursor mostly doesn't draw under macOS, and when it does draw the
glyph is its normal colour instead of the inverted colours I see on
GNUstep and GTK. I had a quick look and can't see anything obviously
causing this. If you have no ideas I'll investigate further.

You missed a comment in ns_draw_window_cursor that refers to drawing
the text on top of the cursor.

> There are still two problems with this code: the first being that if a
> glyph with a left overhang is preceeded by a glyph with both a left and
> a right overhang, the glyph with just the left overhang will be drawn
> twice.  I haven't been able to solve this problem, could someone please
> take a look?  Thanks.

I don't really understand this, but I'll have a look if I can.

> The second problem is that, on startup, the toolbar is too tall unless
> the frame is resized.  I can't profess to understand the toolbar code
> well enough to fix this problem.

This is not a new issue. I can't work out why it happens, but I think
it has to do with the frame resizing on startup.

-- 
Alan Third



  reply	other threads:[~2021-10-19 20:22 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87czo3bxog.fsf.ref@yahoo.com>
     [not found] ` <87czo3bxog.fsf@yahoo.com>
2021-10-17 19:00   ` bug#51251: 29.0.50; Moving cursor on top of raised box leaves artifacts around in NS port Alan Third
2021-10-19  9:40     ` NS port cleanups Po Lu
2021-10-19 20:22       ` Alan Third [this message]
2021-10-20  0:40         ` Po Lu
2021-10-20  5:01           ` Po Lu
2021-10-20 12:44             ` Po Lu
2021-10-20 20:12               ` Alan Third
2021-10-21  0:17                 ` Po Lu
2021-10-23  8:58                   ` Alan Third
2021-10-23 11:19                     ` Po Lu
2021-10-23  9:09                   ` Alan Third
2021-10-23 11:20                     ` Po Lu
2021-10-23 12:00                       ` Po Lu
2021-10-23 19:31         ` Carlos Pita
2021-10-25 11:33           ` Po Lu

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=YW8pDVyfnki5l7f0@idiocy.org \
    --to=alan@idiocy.org \
    --cc=emacs-devel@gnu.org \
    --cc=luangruo@yahoo.com \
    /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).