From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: Status of multicolor fonts? Date: Wed, 06 Jan 2016 12:51:29 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <567169C8.9010006@gmail.com> <83d1u61o31.fsf@gnu.org> <5671E3C4.3030403@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1452052314 7466 80.91.229.3 (6 Jan 2016 03:51:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Jan 2016 03:51:54 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 06 04:51:49 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aGf8X-0001Tw-6v for ged-emacs-devel@m.gmane.org; Wed, 06 Jan 2016 04:51:49 +0100 Original-Received: from localhost ([::1]:52394 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGf8W-00052W-BR for ged-emacs-devel@m.gmane.org; Tue, 05 Jan 2016 22:51:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGf8K-00052R-O3 for emacs-devel@gnu.org; Tue, 05 Jan 2016 22:51:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGf8H-0005Ma-IS for emacs-devel@gnu.org; Tue, 05 Jan 2016 22:51:36 -0500 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:63941) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGf8H-0005MJ-1K for emacs-devel@gnu.org; Tue, 05 Jan 2016 22:51:33 -0500 Original-Received: from fermat1.math.s.chiba-u.ac.jp (fermat [192.168.32.10]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id E5274C0560 for ; Wed, 6 Jan 2016 12:51:29 +0900 (JST) In-Reply-To: <5671E3C4.3030403@gmail.com> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 133.82.132.2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:197681 Archived-At: >>>>> On Wed, 16 Dec 2015 17:20:52 -0500, Cl9ment Pit--Claudel 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=E4rv in May of 2014: > macfont_info-> color_bitmap_p =3D 0; > if (sym_traits & kCTFontTraitColorGlyphs) > macfont_info-> color_bitmap_p =3D 1; > and further below > #if MAC_OS_X_VERSION_MAX_ALLOWED >=3D 1070 > if (macfont_info->color_bitmap_p > #if MAC_OS_X_VERSION_MIN_REQUIRED < 1070 > && CTFontDrawGlyphs !=3D NULL > #endif > ) > { > if (len > 0) > { > CTFontDrawGlyphs (macfont_info->macfont, glyphs, positi= ons, len, > context); > } > } > else > #endif /* MAC_OS_X_VERSION_MAX_ALLOWED >=3D 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