* Re: master 1850121629 2/2: Avoid deprecation warning in NS-specific code
[not found] ` <20220206171219.E4A0AC002FB@vcs2.savannah.gnu.org>
@ 2022-02-07 1:27 ` Po Lu
0 siblings, 0 replies; only message in thread
From: Po Lu @ 2022-02-07 1:27 UTC (permalink / raw)
To: emacs-devel; +Cc: Mattias Engdegård
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-02-07 1:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <164416753945.32258.17480680680441389224@vcs2.savannah.gnu.org>
[not found] ` <20220206171219.E4A0AC002FB@vcs2.savannah.gnu.org>
2022-02-07 1:27 ` master 1850121629 2/2: Avoid deprecation warning in NS-specific code Po Lu
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.