Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp503934rdb; Thu, 2 Nov 2023 09:36:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHIDsuUfUrVIGTggCe1GV7hneeWd+XErKYc5cAQHwdhrDK2a5Yrz7OT9F1ti1FbJEpWXh+Z X-Received: by 2002:a17:903:41c4:b0:1cc:4a84:27cd with SMTP id u4-20020a17090341c400b001cc4a8427cdmr13496307ple.31.1698942979816; Thu, 02 Nov 2023 09:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698942979; cv=none; d=google.com; s=arc-20160816; b=TGZ37WyBv0v885BIMW6Il/eC9IjM9joOMCcHp88V6NWojgW0sg4hC1AanSVqo2bN8Y 1bKvYH5SBpOmrfdOUs4tS4c7MMs03IuIMKEFP6KLMFdB6jmkfzLYV4bhjl6WH9iKut+V R4RNHVPCSpBjUVivw58oQ+JiW82ZY+tjFXRf2/KzyIINOA7c2SCEvmP4EFNu+sUqlSdj 2vXQaoItet34G63tLf8Lfhkbm50CeLb+9wZ+OvUB8xSg5iZKrL3BHf7ycnXuYZP3B8nX KSENk2sdnGGL3wAjVhtTVTeI15s/JMTDGoojrRQTuE30VffYRcAhO7OmwOnRL8D4A48v pxng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature:dkim-filter; bh=7waQtWBq6v9SleipOhTZie0WA8WJXzE+cSqQL2QSnDE=; fh=eAkzsLTMNYjuZfPaeb4mAUYmi1Li3+YRg9AY6uVRZ08=; b=k8/EauqCvJqNbozVfZBdwzr6UqC2o4WqYXWhmttrdBiejvScm2fDOpl3bWfA1wN9EN lVwIsqFBdusCw/Jd6mNJdnQ9AZTUA/VS7jeQnuig6Oa9/Qkeh8tEQ2sDrgVG3026UXgM rlJm0pRaDkOkavZfc2VpePXIKvpEjNRUpiKsCiS4Y92hZaoERjSHPzS+PYFXuHXLHtj0 rA9Z6HHwixu9vcxscIFKvGy2zbebWN7A7u6MxbD527VRG/ZMplBAMne3uDsrLRR+KfSb u/G5d0bXqDIrH+9UL/czIidmRdifWBTKfISErFz1u0Lq4yCOdl0YnRrJNoxUY0sZZi/d I5BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=MgJT4k+z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id kp12-20020a170903280c00b001c9ca0a03ecsi122220plb.2.2023.11.02.09.36.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 09:36:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=MgJT4k+z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 852BB8048F04; Thu, 2 Nov 2023 09:36:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376932AbjKBQf4 (ORCPT + 99 others); Thu, 2 Nov 2023 12:35:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347656AbjKBQfy (ORCPT ); Thu, 2 Nov 2023 12:35:54 -0400 Received: from ms.lwn.net (ms.lwn.net [45.79.88.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 715DD134; Thu, 2 Nov 2023 09:35:48 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:281:8300:73::646]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id E71E54B7; Thu, 2 Nov 2023 16:35:47 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net E71E54B7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1698942948; bh=7waQtWBq6v9SleipOhTZie0WA8WJXzE+cSqQL2QSnDE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=MgJT4k+z6aIjsE3/eyAALjy8FigCW5E8U8EzL0R5xNFfeOblm2ZUZVm9FD126S+NL /nSoiY0k+X0fN7FBtq9u6T8YEFrhJ9EoDXtilcZ+5mHDVfR0LHKvfOK6gg/qzYb/eJ 9qx/pLo4aZOLSBs0WcW3ewZBOwxx7W4MrB6UTiDR/7Fd8OOfeQ93d1u/kQX5KoYM9F xpe6cEQQyUpc4XCK3bCMVoCmVEI2RhUqKCfZ6DTk++s+bzm7T684NCA+aMj692Audn xIbW2xSQ36IQs2/wGV0RF2bdCH6gcViuDYHXXq7wiOXIdTvvVKYTUke01qqzYwdmNG jfc8hULbGSzUg== From: Jonathan Corbet To: Bagas Sanjaya , Linux Kernel Mailing List , Linux Documentation Cc: Thomas Gleixner , Greg Kroah-Hartman , Akira Yokosawa , Stanislav Fomichev , David Vernet , Miguel Ojeda , James Seo , Daniel Vetter , Federico Vaga , Carlos Bilbao , Bagas Sanjaya Subject: Re: [PATCH RFC RESEND 0/4] Documentation: Web fonts for kernel documentation In-Reply-To: <20231102123225.32768-1-bagasdotme@gmail.com> References: <20231102123225.32768-1-bagasdotme@gmail.com> Date: Thu, 02 Nov 2023 10:35:47 -0600 Message-ID: <874ji48658.fsf@meer.lwn.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 02 Nov 2023 09:36:14 -0700 (PDT) Bagas Sanjaya writes: > The problem > =========== > > Currently, the kernel docs uses system-default serif fonts, as in > Documentation/conf.py: > > ``` > ... > if html_theme == 'alabaster': > html_theme_options = { > 'description': get_cline_version(), > 'page_width': '65em', > 'sidebar_width': '15em', > 'fixed_sidebar': 'true', > 'font_size': 'inherit', > 'font_family': 'serif', > } > ... > ``` > > The problem is depending on the serif font selected by system, the docs > text (especially long passages) can be hard and uncomfortable to read. > For developers reading the docs on multiple devices, the apparence may > look inconsistent. > > The solution > ============ > > Uniform the font choices by leveraging web fonts. Most of people reading > the kernel docs should already have modern browser that supports this > feature (e.g. Chrome/Chromium and Firefox). The fonts are downloaded > automatically when loading the page, but only if the reader don't > already have ones installed locally. Subsequent docs page loading will > use the browser cache to retrieve the fonts. If for some reasons the > fonts fail to load, the browser will fall back to fallback fonts > commonly seen on other sites. So my immediate response to this is pretty uniformly negative. - If you don't like serif, tweaking conf.py is easy enough without pushing it on everybody else. - I'm not thrilled about adding a bunch of binary font data to the kernel, and suspect a lot of people would not feel that the bloat is worth it. - The licensing of the fonts is not fully free. There's so much we can do to improve our documentation and access to it; messing around with web fonts seems - to me, at least - pretty low on the list. I suppose I can ask people at the kernel summit session in a couple weeks to see if others feel differently. Thanks, jon