From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
To: emacs-devel@gnu.org
Subject: Re: Status of multicolor fonts?
Date: Wed, 06 Jan 2016 12:51:29 +0900 [thread overview]
Message-ID: <wl60z7jrge.wl%mituharu@math.s.chiba-u.ac.jp> (raw)
In-Reply-To: <5671E3C4.3030403@gmail.com>
>>>>> On Wed, 16 Dec 2015 17:20:52 -0500, Cl9ment Pit--Claudel <clement.pit@gmail.com> said:
>> The characters will be displayed on any platform, in their text
>> representation, but AFAIK Emacs doesn't take color information from
>> the font; the color is determined by the color attributes of the
>> face. We also don't support emoji modifiers and emoji variation
>> selectors.
> Looking at the code in more detail suggests that it in fact does on
> Mac, in macfont.m. The relevant bits of code were merged from
> Macport by Jab Djärv in May of 2014:
> macfont_info-> color_bitmap_p = 0;
> if (sym_traits & kCTFontTraitColorGlyphs)
> macfont_info-> color_bitmap_p = 1;
> and further below
> #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
> if (macfont_info->color_bitmap_p
> #if MAC_OS_X_VERSION_MIN_REQUIRED < 1070
> && CTFontDrawGlyphs != NULL
> #endif
> )
> {
> if (len > 0)
> {
> CTFontDrawGlyphs (macfont_info->macfont, glyphs, positions, len,
> context);
> }
> }
> else
> #endif /* MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 */
> {
> CGContextSetFont (context, macfont_info->cgfont);
> CGContextSetFontSize (context, font_size);
> CGContextShowGlyphsAtPositions (context, glyphs, positions, len);
> }
> }
> This seems to be using Apple-specific APIs, however, so it probably
> does not help much for other platforms. Still, it would be nice to
> have similar features on GNU/Linux. The patches that allowed this to
> function on MacOS were small; I wonder if it would be the same on
> other platforms.
According to the discussion about the inclusion of the Mac port, it
seems that this code should be removed from the mainline if we require
multicolor font implementations on free platforms first. WDYT?
YAMAMOTO Mitsuharu
mituharu@math.s.chiba-u.ac.jp
next prev parent reply other threads:[~2016-01-06 3:51 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-16 13:40 Status of multicolor fonts? Clément Pit--Claudel
2015-12-16 14:10 ` Eli Zaretskii
2015-12-16 15:54 ` Clément Pit--Claudel
2015-12-16 22:20 ` Clément Pit--Claudel
2015-12-17 2:47 ` Yuri Khan
2015-12-17 3:14 ` Clément Pit--Claudel
2015-12-17 16:11 ` Eli Zaretskii
2015-12-19 9:43 ` Rüdiger Sonderfeld
2016-01-06 3:51 ` YAMAMOTO Mitsuharu [this message]
2016-01-06 6:23 ` John Wiegley
2016-04-11 22:34 ` YAMAMOTO Mitsuharu
2016-04-11 23:19 ` John Wiegley
2016-04-11 23:34 ` YAMAMOTO Mitsuharu
2019-04-24 3:45 ` YAMAMOTO Mitsuharu
2019-04-24 6:34 ` Eli Zaretskii
2019-04-27 8:13 ` mituharu
2019-04-27 8:45 ` Eli Zaretskii
2019-05-03 9:59 ` landing harfbuzz branch (Re: Status of multicolor fonts?) mituharu
2019-05-03 20:56 ` Alan Third
2019-05-03 21:46 ` mituharu
2019-05-04 8:54 ` Eli Zaretskii
2019-05-04 23:42 ` mituharu
2019-05-05 16:02 ` Eli Zaretskii
2019-04-24 15:03 ` Status of multicolor fonts? Stefan Monnier
2015-12-16 14:37 ` Yuri Khan
2015-12-16 15:32 ` Elias Mårtenson
2015-12-16 15:48 ` Eli Zaretskii
2015-12-16 16:03 ` Clément Pit--Claudel
2015-12-16 17:10 ` Eli Zaretskii
2015-12-16 18:22 ` Clément Pit--Claudel
2015-12-16 16:10 ` Elias Mårtenson
2015-12-16 16:41 ` Random832
2015-12-16 16:56 ` David Kastrup
2015-12-17 4:58 ` Richard Stallman
2015-12-17 17:25 ` John Wiegley
2015-12-16 17:17 ` Eli Zaretskii
2015-12-16 18:31 ` Clément Pit--Claudel
2015-12-16 18:54 ` Eli Zaretskii
2015-12-16 18:31 ` Random832
2015-12-16 16:00 ` Clément Pit--Claudel
2015-12-16 17:08 ` Eli Zaretskii
2015-12-22 0:59 ` David De La Harpe Golden
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=wl60z7jrge.wl%mituharu@math.s.chiba-u.ac.jp \
--to=mituharu@math.s.chiba-u.ac.jp \
--cc=emacs-devel@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).