From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +Ov6DIF70WIoHAAAbAwnHQ (envelope-from ) for ; Fri, 15 Jul 2022 16:36:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id mQLQDIF70WLkVgEAauVa8A (envelope-from ) for ; Fri, 15 Jul 2022 16:36:49 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3F3E110F69 for ; Fri, 15 Jul 2022 16:36:46 +0200 (CEST) Received: from localhost ([::1]:34350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oCMQv-000459-0C for larch@yhetil.org; Fri, 15 Jul 2022 10:36:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCMQC-00040w-7X for emacs-orgmode@gnu.org; Fri, 15 Jul 2022 10:36:01 -0400 Received: from ciao.gmane.io ([116.202.254.214]:50896) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCMQA-0003gA-Ka for emacs-orgmode@gnu.org; Fri, 15 Jul 2022 10:35:59 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1oCMQ8-0002Od-Lb for emacs-orgmode@gnu.org; Fri, 15 Jul 2022 16:35:56 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: Fallback fonts in LuaTeX via 'luaotfload.add_fallback' (was "Fontsets") Date: Fri, 15 Jul 2022 21:35:48 +0700 Message-ID: References: <87ilo7ztm3.fsf@posteo.net> <87ilo7tp78.fsf@tsdye.online> <87o7xy8t4g.fsf@posteo.net> <87a69i8ha1.fsf@posteo.net> <87tu7qnij4.fsf@posteo.net> <87r12ssonv.fsf_-_@posteo.net> <87pmicqtko.fsf@localhost> <87pmiblo2v.fsf@gmail.com> <87sfn7g0ei.fsf@posteo.net> <87o7xvleks.fsf@gmail.com> <8735f7qp26.fsf@posteo.net> <87lesysgsh.fsf@posteo.net> <87bktus666.fsf_-_@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Content-Language: en-US In-Reply-To: <87bktus666.fsf_-_@posteo.net> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 28 X-Spam_score: 2.8 X-Spam_bar: ++ X-Spam_report: (2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657895806; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=5JZ7qydq4f5+/cbCshoO/bw0GPwc+/ATf3JvoGhzKq4=; b=bvq/kFd7kK/3KzwYu0UJxxfAYWkStLbTBjhGjfF20lU3o50gyVBmth8b9qnp3DsNybf2Cg 50n5agmM2TPp1IqJPwkoJs1Zc9sa8uSUqy1RI+xnkXWK35DCkeFuWfnvkv7t1p1HljDk07 IW9KYcFtyefUk+OW1FVmVyxwyqMu9fMr7ASazCf1tnZ7GkGqewCLW+s7ZqbLsgd3cGICKM ZPTm/wXRo5tuaho1s6ZHQG+XoULsBG/sLyVfZWvMgSwZSGTSsjRuVvz6E2lqOgJIJNRhTu ds3veQl5bBEf+fPTqqfHjY6/bjkC1Gy1GGG96deyf6/hxdkCD33nmy0fI80T4A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657895806; a=rsa-sha256; cv=none; b=RzpGM29KiXEHRgXbs/WZzIpdr1OrGnXd8uD7Pe7YjgPLzcjk731xIsfGgqsf0yFnY/mLa+ fDVlxs64ouuV9cSqkLpi0y+PSu1mFaO8RmhsrwT/TWf5imAyj++iMhlMtzUodr41Ml+fYu Rna9DQeXuUt5BbxWLxT8/ylLrhQnKHERmXqg5Zu0DjUHVk67H7w8TvdgtnDwU6TrLuzcWl WTrmz83ntapraIIH+yTtj62SYgrVb1eE5QPLvX3HYiwjZubJNhbxkMnjbH5U+StnhN6njC 9oQ9etz+YFNJeEVwnDl8WenZQdPjy2NEwbzHMcGYx4KWcjuyypg1uoD2oeqMiA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.76 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 3F3E110F69 X-Spam-Score: 2.76 X-Migadu-Scanner: scn0.migadu.com X-TUID: DLzqFUFq0yBU On 12/07/2022 22:26, Juan Manuel MacĂ­as wrote: > Today I discovered that luaotfload included in v. 3.12 a new > experimental function, luaotfload.add_fallback, to be able to add a list > of fallback fonts to a LuaTeX document, at a low level. ... > \documentclass{article} > \usepackage{fontspec} > \directlua{ > luaotfload.add_fallback ("fallbacktest",{ > "oldstandard:mode=harf;script=grek;color=0000FF;", > "oldstandard:mode=harf;script=cyrl;color=0000FF;", > "freeserif:mode=harf;script=arab;color=0000FF;", > "freeserif:mode=harf;script=dev2;color=0000FF;", > })} > \setmainfont{latinmodernroman}[RawFeature={fallback=fallbacktest}] ... > The main drawback I've found to this (at least I don't know how to solve > it at the moment) is that the fallback feature cannot be added via > \defaultfontfeatures. That would avoid having to (re)define all the > main/sans/mono/math families. I agree that defining fallbacks for each font family is inconvenient. Defining font per script resembles specifying fonts per language in babel configuration, however fallback should work without explicit switching of language. I have seen that babel may determine language from character code points, but I have not tried if it works reliable and if it affects performance (as it does for fallback fonts). Maybe I did not read the manual with enough attention, maybe I tried it with too old version of LuaTeX, but I had a problem with Emoji. Depending on font such symbols either broke compilation or did not appear in PDF (accordingly to pdffonts font was embedded, text may be copied, but PDF viewers displayed blank space). https://list.orgmode.org/orgmode/scuirf$m7o$1@ciao.gmane.io/ Maxim Nikulin. Re: org-mode export to (latex) PDF. Sat, 17 Jul 2021 19:35:57 +0700