From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexis Newsgroups: gmane.emacs.devel Subject: Re: Pixel-based display functions Date: Sun, 01 Feb 2015 00:37:28 +1100 Message-ID: <87siercbqf.fsf@gmail.com> References: <877fw9dndz.fsf@building.gnus.org> <83a914ozsh.fsf@gnu.org> <874mrb1t62.fsf_-_@building.gnus.org> <87vbjrl49k.fsf@violet.siamics.net> <8361bqogah.fsf@gnu.org> <87k306pfi9.fsf@building.gnus.org> <87egqekrd7.fsf@building.gnus.org> <877fw53eat.fsf@building.gnus.org> <877fw4zsdv.fsf@building.gnus.org> <831tmcn4k4.fsf@gnu.org> <87386szq1w.fsf@building.gnus.org> <83wq44ljm9.fsf@gnu.org> <87vbjowlqv.fsf@building.gnus.org> <83oapglbx6.fsf@gnu.org> <83lhkkl23i.fsf@gnu.org> <83sierjmjt.fsf@gnu.org> <83pp9vjjhl.fsf@gnu.org> <87twz7cg0p.fsf@gmail.com> <83k303jf6q.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1422711464 23437 80.91.229.3 (31 Jan 2015 13:37:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Jan 2015 13:37:44 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 31 14:37:44 2015 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 1YHYF5-0007VW-Pt for ged-emacs-devel@m.gmane.org; Sat, 31 Jan 2015 14:37:43 +0100 Original-Received: from localhost ([::1]:41647 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHYF4-0006dG-RT for ged-emacs-devel@m.gmane.org; Sat, 31 Jan 2015 08:37:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHYF0-0006dB-7s for emacs-devel@gnu.org; Sat, 31 Jan 2015 08:37:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHYEx-0000UH-2w for emacs-devel@gnu.org; Sat, 31 Jan 2015 08:37:38 -0500 Original-Received: from mail-pa0-x22c.google.com ([2607:f8b0:400e:c03::22c]:52240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHYEw-0000U1-Rj for emacs-devel@gnu.org; Sat, 31 Jan 2015 08:37:35 -0500 Original-Received: by mail-pa0-f44.google.com with SMTP id rd3so63411710pab.3 for ; Sat, 31 Jan 2015 05:37:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:subject:in-reply-to:date:message-id:mime-version :content-type; bh=JsM6iehmsLYudUEwjy7P+VEakdYLhUqRCmXUBOONUco=; b=i9vP39pupZzEQEYyeo2vJYDXb4uW0wO/HzTdUqG2sIhmGK81Vu4bi4ZjoZOPRTDVoq S1gHcvU/VFshO1/k/BttEsQEb/SPOa52GZ+bYQmIIPnP9lUwKp24W1G6J5AijXZh9YQP 0rLC3QGgFT5Z4aXtvdZtXu6x3dprdFKgKAeYQphq3tO1xd3DsB/EiA947GVxq5XLVXeS CUYzXdnqXsaIySTHmC+lriVpJN2phGUpZ+q/fwFs3STC3r43veqt/hAa0SZxed5qglwM tN7HwXnlnT+E0xRbOWW7zeNDppAwylxQfalwI8A8pfl5Vba8V+8xX5Si9DjpV6LzDHH5 3CKA== X-Received: by 10.70.45.108 with SMTP id l12mr16223067pdm.112.1422711454008; Sat, 31 Jan 2015 05:37:34 -0800 (PST) Original-Received: from localhost (ppp118-209-63-224.lns20.mel4.internode.on.net. [118.209.63.224]) by mx.google.com with ESMTPSA id s7sm13747586pdj.22.2015.01.31.05.37.31 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 31 Jan 2015 05:37:32 -0800 (PST) In-reply-to: <83k303jf6q.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::22c 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:182130 Archived-At: Eli Zaretskii writes: >> From: Alexis >> Date: Sat, 31 Jan 2015 23:04:54 +1100 >> >> >> Eli Zaretskii writes: >> >> >> set-fontset-font can arrange an arbitrary range come from a different >> >> font. >> > >> > Do people actually do such things? If so, in what circumstances? >> >> i make use of this: >> >> https://github.com/rolandwalker/unicode-fonts > > Thanks. However, that's a 5000-line file, so could you be more > specific -- where do you use there more than one font for the same > Unicode block, and why? i use Emacs both under X and in a terminal, depending on circumstances. Under X, i use the Xft backend, which, if i understand correctly, gives me access to fonts not available in a terminal. So if i'm in a terminal, i'll want to use one font for a particular Unicode block, but if i'm in X, i'll want to use another font which has 'better' (i.e. more aesthetically pleasing, to me) glyphs. The `unicode-fonts` package allows me to specify a list of fonts, ordered by priority (highest-first), to be used for a particular Unicode block, depending on contextual availability. (Also, `unicode-fonts` allowed me to work around an issue i've had where, under X, Emacs would select a rather ugly outline font - Linux Biolinum Outline - for displaying Hebrew, rather than using Ezra SIL. Thus, my init contains: (setcdr (assoc "Hebrew" unicode-fonts-block-font-mapping) '(("Ezra SIL" "Ezra SIL SR" "Arial Hebrew" "Raanana" "New Peninim MT" "Aharoni" "David" "FrankRuehl" "Gisha" "Levenim MT" "Narkisim" "Rod" "Cardo" "Courier New" "Adobe Hebrew" "Code2000" "Aramaic Imperial Yeb" "Microsoft Sans Serif" "Tahoma" "Lucida Sans Unicode" "Arial Unicode MS" "Arial" "Quivira" "Everson Mono:weight=boeld" "ALPHABETUM Unicode"))) i imagine there is some straightforward, native-to-Emacs, way of doing this, but since `unicode-fonts` already does most of the legwork to automatically make sure glyphs are available to display most codepoints, i just decided to slightly modify the value of `unicode-fonts-block-font-mapping`.) Alexis.