From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: Increase default `line-spacing' to 0.05, 0.10 or 0.15 [proposal] Date: Fri, 7 May 2021 13:03:01 +0700 Message-ID: References: <871ramlbpy.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35450"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Kangas , Emacs developers To: Jim Porter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 07 08:03:50 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1letaY-00094o-CQ for ged-emacs-devel@m.gmane-mx.org; Fri, 07 May 2021 08:03:50 +0200 Original-Received: from localhost ([::1]:33884 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1letaX-0006TR-05 for ged-emacs-devel@m.gmane-mx.org; Fri, 07 May 2021 02:03:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leta0-00064A-Hx for emacs-devel@gnu.org; Fri, 07 May 2021 02:03:16 -0400 Original-Received: from mail-ua1-x935.google.com ([2607:f8b0:4864:20::935]:42933) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1letZy-0003qs-An for emacs-devel@gnu.org; Fri, 07 May 2021 02:03:16 -0400 Original-Received: by mail-ua1-x935.google.com with SMTP id u15so2488220ual.9 for ; Thu, 06 May 2021 23:03:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=CSWNWTLqEf/xcxx06ocYr3wMz+Ay9y42o5f+vVHmttI=; b=VjnV5vUf8a3TOf79E/x1/oJPkUPtA6x2jSY/INRDziQif1ScJlgRJfY+cParmq8UJj HcJsCLPj28a1BVoekxmXxp3EbVPsz0NAP43n3kYzBZZ286GM/SiBFUlefYtKtzXEgb35 n+Oo8BYCOJl7XP4x5SG4BM2hGn/Ykxz3CVUSVn4cdZ2P9c5Ks0oBxkd+pLCtuhH4tTSq +bZhj6CIESEXJxIdG3sQWosmMkdTivrkzfJS8JPJXnUNR/jLQOZt5lDFY2yffkPRVdBt yOUy0Zp7lrVT3x7X0dJgjeYUb1DtcIdqPhy3abdWbkZQeL8wXfSOI1Ls+hZPdROFn+yI 0o+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=CSWNWTLqEf/xcxx06ocYr3wMz+Ay9y42o5f+vVHmttI=; b=fvoZSoIV7SbxipNLNsixS3QpKJvdx91liMrjxCksQOyEIvVVyC0fPcZ1GszYP8UFjj IlemqH8vdo9Syqc0ogxFWj76IHyFc3eZUfZd7iRs/T2aICQTKbAmDvnwreTPHXSxgRp9 AojQuOgBBCKK+OsKuYxdqbhaKCfeivLwQ7wNHQd6Z2uwfCDZR+rDIhQX2Vhsvxwzrm8E hRxnPaHaIwOtoj8WFdKZI6Jmo4IDkcmU2JhqqD/jm1FlpZ0chJ0TOuxn5gs6x2jZGXAB 7HUDjLp+SMVLlp+X2ixQMWoQLzl8menvXSmh6oC1m/0CA9okRXOR8LSSZu03TtdkFzJ8 bC6w== X-Gm-Message-State: AOAM533tQzvChW2PupPov9MOh6LcFmARRaVgNSoxrZtvLquwsissC9MK 2TOWZEaHhENSnxJk2W2303kfjcfhNF2m6oWtdiI= X-Google-Smtp-Source: ABdhPJyUlNH6DS1oBlJ+GY0ESsKInHmjSsnbXkxaRSgK+kt63nYNnzjyumXSvSewIfFaBaxbQEasssnk1k1WtLXyA7s= X-Received: by 2002:ab0:5909:: with SMTP id n9mr7284034uad.79.1620367392812; Thu, 06 May 2021 23:03:12 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::935; envelope-from=yurivkhan@gmail.com; helo=mail-ua1-x935.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:268995 Archived-At: On Fri, 7 May 2021 at 06:18, Jim Porter wrote: > Yeah, Emacs' reliance on using characters to draw lines would probably > lead me to set `line-spacing' back to 0 if this were changed. It would > be interesting if Emacs were able to handle these issues, e.g. by > adding some special handling when it sees box-drawing characters, but > that would probably be a lot of work. The Kitty terminal emulator has a configuration option for increasing the line spacing. To mitigate the box drawing characters issue, it implements rendering them in code. (This also helps when a font does not have glyphs for box drawing characters.) https://github.com/kovidgoyal/kitty/blob/master/kitty/fonts/box_drawing.py The high-level architecture is: * Kitty keeps a texture that caches glyphs of fonts being used. * For most characters, that texture is populated by rendering them with the appropriate font (chosen by the user in configuration or by font fallback). * For box drawing characters, there is a mapping from character code to a list of rendering functions, and they are called to render into the texture. Of course, Kitty has it easier because it only has to deal with a single font size, and I=E2=80=99m not sure if it does complex script shapin= g correctly.