From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <9front-bounces@9front.inri.net> X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from 9front.inri.net (9front.inri.net [107.161.22.3]) by inbox.vuxu.org (Postfix) with ESMTP id ACCB720D6C for ; Mon, 20 Jan 2025 03:19:07 +0100 (CET) Received: from mars.pulpie.xyz ([104.238.162.80]) by 9front; Sun Jan 19 21:17:27 -0500 2025 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcp80.org; s=20211202; t=1737339445; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gVinUdJ5kkDg9bMv/Fxekta7y2Oh0RvyJupqVpZpZvI=; b=kDmyIQ017muAyOon83h7T6b5HNxQQ5XJyfpjskrDttcXfNT5fTcKEBx+UPTYclatnZZ2V5 PULRyQVErwGvf6DAIHm01v3lLhNOnvPLhJMgpo85YJUCGZR9DK/ClBHTwRL8zJ/YteyuSG mDUjG6uj+mWrQcWybYrrL5wQDzq1lbQ= Received: from localhost (customer.chcoilx1.pop.starlinkisp.net [2605:59c8:154b:7614:7656:3cff:fe75:5056]) by mars.pulpie.xyz (OpenSMTPD) with ESMTPSA id 6e4fa60d (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <9front@9front.org>; Sun, 19 Jan 2025 20:17:22 -0600 (CST) Mime-Version: 1.0 Content-Type: multipart/signed; boundary=846b7121a3c46dc0bbe4d7e22ac127318bddc1106bceb3dc62f38d31930a; micalg=pgp-sha512; protocol="application/pgp-signature" Date: Sun, 19 Jan 2025 20:17:17 -0600 Message-Id: From: "B. Atticus Grobe" To: <9front@9front.org> X-Mailer: aerc 0.18.2-98-g7f28ba10d5e9 References: In-Reply-To: List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: GPU firewall XMPP over AJAX rich-client content-driven control Subject: Re: [9front] Truetypefs anti-aliasing Reply-To: 9front@9front.org Precedence: bulk --846b7121a3c46dc0bbe4d7e22ac127318bddc1106bceb3dc62f38d31930a Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 On Sun Jan 19, 2025 at 7:40 PM CST, Paul Lalonde wrote: > I posted this earlier on 9fans, but I should do it here: > I've made a modification to truetypefs to do what ttfrender does: render > the font at higher resolution and filter down to a good looking 8 bit fon= t. > > This is a significant improvement in the appearance of the fonts from > truetypefs, as seen in the image below. Left is the one-bit font, right = is > the filtered font. > [image: image.png] > I've attached the change, and I have questions. > I believe in being opinionated: the 8 bit version is so much better for > every font I've compared that I don't see any use for the 1 bit versions > anymore. > How do other users feel about ditching the 1 bit code path and having onl= y > the 8 bit code path? This is the cleanest/smallest change. > The alternatives would be to have a switch to truetypefs so that it alway= s > returns either 1 bit or 8 bit fonts; a switch in the fs setup to choose > based on font size; a way to tell the fs what font depth to return > (probably a hack like the font size now, very ugly). > The cost of the filtering is low in compute for smaller point sizes, but > starts to lag a bit at 30 point or so. It probably also blurs out very > small sizes. I don't know that anyone chooses TrueType fonts for text > under ~10pt however. > [image: image.png] > Thoughts? > Paul Paul, Sigrid would like you to take a look at the font renderer she's been working on at https://git.sr.ht/~ft/fnt . She's currently experiencing e-ma= il issues and asked me to relay this. All mistakes in this message are my own. --846b7121a3c46dc0bbe4d7e22ac127318bddc1106bceb3dc62f38d31930a Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEENclEu7ce2+jBRHDoDFZIVfD2SAFAmeNsi4ACgkQoDFZIVfD 2SDmvg//UZmJWVCouoJvywiuZbFqVVfsUXCwzy6XYV3YYzm26iWoTq0AIif5lrMa BkzU+sE6xr5JyOhCfJaBgXv0olmzH20fI0NfrJNZLzTI9TcCH0Dsi2emcQV64FlQ ebDC9nXuCkjukhbQgedkJ8cU1rFQQ5PCAPxZSOTvfKBW4xfEBkYbom38Stbut64T Zc+b9BtN3QMSK1cZM95v+YwcYzs6NySrZsNtD5Ijg+4paDEjQbC3m5iDYI5Qz6JQ n3PUjNy+BhFVmUy3dgRn7LZe4BumCrDI85R2HtDLM2ge/UwYgJTBs4yonzWYAnyS RZAiw8vxexqYBN9DHhYfELMVdM9fq7Py+j+syETVqQi18TrXCICbUJciL+BUYKtU f5iqb7gUFcTH+XFIzXRWoYjS2oBLbjKAjzugc/DVEWDGrDS7n707/iIh1F3n7Yay NWeBkod2ICklb+P8VCh7h8tGWD2yX1V/8i+z95GRaB/TeL2n+i92DUn25YfCzNi7 wTKF70eJljOX6gwN3xrJSsR2XvHmcbSnC8R/+7FNHIJ4huvj5OHCOURWI1CLSGlf diTwp+asqEwfdxM1hECxU8rgJUCkHkkb9FSP94Kne6doncURRX4jELCG7A4LmPGO kpPSncucdIodW1eHojqWjuFKtMpzcKHt/PLfI2bjumpqLRk0cjg= =9mBj -----END PGP SIGNATURE----- --846b7121a3c46dc0bbe4d7e22ac127318bddc1106bceb3dc62f38d31930a--