From: Po Lu <luangruo@yahoo.com>
To: emacs-devel@gnu.org
Cc: "Mattias Engdegård" <mattiase@acm.org>
Subject: Re: master 1850121629 2/2: Avoid deprecation warning in NS-specific code
Date: Mon, 07 Feb 2022 09:27:13 +0800 [thread overview]
Message-ID: <87iltrlb4e.fsf@yahoo.com> (raw)
In-Reply-To: <20220206171219.E4A0AC002FB@vcs2.savannah.gnu.org> ("Mattias Engdegård"'s message of "Sun, 6 Feb 2022 12:12:19 -0500 (EST)")
Mattias Engdegård <mattiase@acm.org> writes:
> diff --git a/src/macfont.m b/src/macfont.m
> index f623c3ca2f..34e48afb98 100644
> --- a/src/macfont.m
> +++ b/src/macfont.m
> @@ -3570,7 +3570,10 @@ mac_font_create_preferred_family_for_attributes (CFDictionaryRef attributes)
>
> if (languages && CFArrayGetCount (languages) > 0)
> {
> - if (CTGetCoreTextVersion () >= kCTVersionNumber10_9)
> + if ([[NSProcessInfo processInfo]
> + isOperatingSystemAtLeastVersion:
> + ((NSOperatingSystemVersion){
> + .majorVersion = 10, .minorVersion = 9})])
> values[num_values++] = CFArrayGetValueAtIndex (languages, 0);
> else
> {
Speaking of this, has anyone tried to adapt macfont to Opal (the free
implementation of Core Graphics and Core Text)?
I don't know how complete it is, but presumably we could reuse a great
deal of the layout machinery from GNUstep's NSLayoutManager, so that
part is taken care of at least.
parent reply other threads:[~2022-02-07 1:27 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20220206171219.E4A0AC002FB@vcs2.savannah.gnu.org>]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87iltrlb4e.fsf@yahoo.com \
--to=luangruo@yahoo.com \
--cc=emacs-devel@gnu.org \
--cc=mattiase@acm.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 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.