From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj2-f3.google.com (mail-pj2-f3.google.com [74.125.227.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 864EE41F7EF for ; Mon, 6 Jul 2026 13:21:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.227.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783344090; cv=none; b=WVP+y88zJFFciWUfcaazpZU+133/vTqKtYOlD640c2xOo9codRHHidVTC7gN3r9Y06MAm6LgkWyyZm13fddDBI7Y8+blmmGotBi/9tcRcRfp9VKvbhOJ4e48JYp99UicuUDGvu55iSNEJq4fgpglEE+KQS3jJIXnYY1cH31+VH0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783344090; c=relaxed/simple; bh=XSZO9oyw9t86vddd9e2cnXRvjlbz/kOUaStHlHK7yg8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OQhayzaDbNedcwwGjs+gqvLVAMw6aAVEqtYPIVRD9Nkb9uuq2Ym4VzLbPKBM5/v+Rgw7pMleAhDMRrfNuvIlgyjTS43Sk4BLqbAJRvzo/xuruXFqvnLF0T7T+Sd5Horxv31HiqihoW4VntnAy2otr8y6iEtKRU8Va/VQJ4dob+U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=g9V79SYP; arc=none smtp.client-ip=74.125.227.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="g9V79SYP" Received: by mail-pj2-f3.google.com with SMTP id d9443c01a7336-2cc8ed77bbcso1479145ad.0 for ; Mon, 06 Jul 2026 06:21:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783344089; x=1783948889; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=m1W8mmlgvH3ozoq6WKj5bNebnoD5x8K/KLoQZu53NSo=; b=g9V79SYPiFgC2jKTQAVW1l5iGbJn+6Dh9NjzghW06+I8lRAKy7lo9BL26Ht3neusP/ 0me30L0TmS4H+qzVNtyItP9QIEDoBhwYUR5ceI8D0JEvtjE/a/cOrh3cObewZUtQK6no 1oo4wXhx1Pc/U9QcgQ65dqXWQCxAxFTPHrL+R1JQxrKsXdq44XoDMzk3pk0mYPJsqCju yBiyHwRz+0YrU7MhrpEDPgSasT8XEc/VBErb8c2Kfd9W3YDRmLd8IgX0ci4Mz6xcuFx+ Q8IQKPakmHOlekxFzZ0BkSL7qRm2ARF5XaL/gxMAhlkAkmrDlK1FGLifC7jWz8+6XNGr 2PBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783344089; x=1783948889; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=m1W8mmlgvH3ozoq6WKj5bNebnoD5x8K/KLoQZu53NSo=; b=X1DLn0I3+jOxnPxav67LWhOXMzIVbkiaOE6aHVsxdgRcWVbfbE2cJKZ2KGI+mQdt9n WOuJk6r9VBRE3svn6PhGoN9vzZoL8zhuozsMlgkFy9A536sEfzgg1ntEVQOHWNqxXglV d0jTuxl+5hjYr0U9SFPVlrmch68A58BpSvYtH9XFkdlcmlNqhvXEE9WvENoaW+FXzSFW D/DEgyFulqX0NKX7UXEbrrkDt2JRrcPuoTCtRZTkxnzpfK634YV97YpmI3dgV3OET8dt xOG3OHr1v4U6p9ZJLlnt8N6DAmnOx8MPJJAmbI1CY5EuJON2WHMd+22G9k6yPaVpO5Ub h5hA== X-Forwarded-Encrypted: i=1; AHgh+Rqkc6kZA71YxgjTlxRYR2uJK1xvhnwSWTWM8/cyJTlwv0zvoD+m0LzUvTuOfAhSedXM4YciWXScsVnFCfY=@vger.kernel.org X-Gm-Message-State: AOJu0Yx+EboSDLqS3Q7r2EsUChbgSERJmtWpI6Ad+8Q1AJ+PdGT6VnAC x5AWOpl/wvvgz+JDFRdxJwA/gMbJGioSdpKo9q4K9rNZY5Rlh5SYPq2FnVbYCxkmg8bMKg== X-Gm-Gg: AfdE7ckLhfW1RadOKkFavf39Mtf38Pxs+IWaA9owKC4rJzQgaoJWEk7/mD/ox7EmIW7 k6A70n0d6dXe4SrDQviCxjyLrx8dJpkZh4wdf3ZM2HKS20dTL16TWxtCIAR7rp78vnEPHHBtlKn 7LPAmJpVK0shFSFZ7Lvd8Teesx/4ku8uOVMPRg17/JSAUkDHKvyqv/2uvxVDKOleY6CIz4ZWlWj yfdYlYDKpL3aLvLDcQV2uzWim4/rCdr/AWGp+KTEZVCFyU7Lg5mTSH/ewqE0tY1x52xpQB8Zb2D 27LlkIjVoKq3qxvMDW5mLRlPSeecgTM4FmeKsSKjbnrEJQ+oPYZCwjSIYKaoSALxtWNwR9gYNcq 1O96+HJZ4/qyjcrarJe3u1H7n73vh3wtAMGW/kBIPRbpnE/0GTqEkKw3qaX6ErVighsvhK9416P HrM5DhaQsIjx5zUyoiwC3X X-Received: by 2002:a17:903:28c:b0:2ca:329:3d96 with SMTP id d9443c01a7336-2ccbe607251mr5743165ad.3.1783344088779; Mon, 06 Jul 2026 06:21:28 -0700 (PDT) Received: from localhost ([2409:8a4c:cc0:9ab1:cd4b:250d:9228:2c4d]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2caf06ca4f4sm43067555ad.4.2026.07.06.06.21.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2026 06:21:28 -0700 (PDT) Date: Mon, 6 Jul 2026 21:21:25 +0800 From: Jiandong Qiu To: Weijie Yuan Cc: Alexs Shi , Yanteng Si , Dongliang Mu , Jonathan Corbet , Shuah Khan , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/2] docs/zh_CN: update translations for process/changes.rst and sphinx.rst Message-ID: References: <20260621131215.1303439-1-qiujiandong1998@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Hi Weijie, I've been looking into the font rendering issue and have found the root cause and a solution. In the lore archive, the CSS defines `font-family: monospace`. This instructs the browser to use the system's default monospace font. On many Linux distributions, this default is Noto Sans Mono. The problem is that Noto Sans Mono is a Latin-only font, so it lacks glyphs for Chinese characters. When the browser encounters Chinese text, it falls back to other fonts, causing inconsistent and often misaligned display. The fix is to configure the system to prefer a monospace font that supports both Latin and Chinese characters well, with a 2:1 width ratio for optimal alignment. This can be done by adding a fontconfig rule to set the preferred font for the monospace family. Here's a commit that demonstrates exactly this configuration: https://github.com/qiujiandong/dotfiles/commit/be193b3ec36a826b611d97920ff6afa76994aa7c It creates an XML configuration file (e.g., ~/.config/fontconfig/fonts.conf) with the following content: ```xml monospace Maple Mono NF CN ``` After adding this configuration, run `fc-cache -vf` to refresh the font cache. Make sure the preferred font (in this example, Maple Mono NF CN) is installed. After applying this change, the lore archive pages in the browser will use the configured monospace font, displaying both English and Chinese text correctly. This approach is generic and can be adapted to use any other suitable monospace font that fits your preference. Hope this helps! Best regards, Jiandong