From patchwork Thu Feb 29 21:47:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 61257 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id AD18E27BBEA; Thu, 29 Feb 2024 21:49:16 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B8F0427BBE2 for ; Thu, 29 Feb 2024 21:49:15 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rfoGg-0003u1-5C; Thu, 29 Feb 2024 16:48:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rfoGa-0003st-OH for guix-patches@gnu.org; Thu, 29 Feb 2024 16:48:36 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rfoGZ-00085C-Lk for guix-patches@gnu.org; Thu, 29 Feb 2024 16:48:36 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rfoH1-0006jJ-0N for guix-patches@gnu.org; Thu, 29 Feb 2024 16:49:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69432] [PATCH guix-artwork v2 3/3] website: Use Linux Libertine for the body of the manual. Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 29 Feb 2024 21:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69432 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69432@debbugs.gnu.org Cc: Ludovic =?utf-8?q?Court=C3=A8s?= , pelzflorian@pelzflorian.de Received: via spool by 69432-submit@debbugs.gnu.org id=B69432.170924329025531 (code B ref 69432); Thu, 29 Feb 2024 21:49:02 +0000 Received: (at 69432) by debbugs.gnu.org; 29 Feb 2024 21:48:10 +0000 Received: from localhost ([127.0.0.1]:35549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfoG9-0006db-SC for submit@debbugs.gnu.org; Thu, 29 Feb 2024 16:48:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfoG4-0006c1-7C for 69432@debbugs.gnu.org; Thu, 29 Feb 2024 16:48:04 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rfoFX-0007ay-GY; Thu, 29 Feb 2024 16:47:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=lo48XsRuCeJ/0J92mnWzuhE3eTScg86zVSl9+8IgwZM=; b=MRHbpmlZKI3kyAon6bbG G/S85oqXYDtbo164wjRPQzJAWt4F6Zyfe1MD3hwi8GqMjPSw+Uyis3q1YU0bef5JyKqq/v9UpLiod 0d2yGwYJrVfQnvhiZtnOdyVjHsVn8f9q+XSevsvcyCwSQSfPFI9Vc3H3htSEFeUNg1yz9jfUQ3BtR xBora+R2J74UU6h3H3voznspFQWyuJ5d4h8YdI6syLwrdXjr1jXkJgNSxGFthPuxcLiSBymarvmna HWCvi2zVCWGC2djnaKkDNpxk+ymUCoeswAxLBg4qCi0P3U5W8HDoPGk1i5b1PcV82GiThuSZ9kzJE 9lzoHNzO4668NQ==; From: Ludovic =?utf-8?q?Court=C3=A8s?= Date: Thu, 29 Feb 2024 22:47:14 +0100 Message-ID: <20240229214714.9431-3-ludo@gnu.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240229214714.9431-1-ludo@gnu.org> References: <877cineyn0.fsf@gnu.org> <20240229214714.9431-1-ludo@gnu.org> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * website/static/base/css/manual.css: New @font-face entries for Linux Libertine. Use it for section bodies. Add rule for ‘samp’, etc. * website/static/base/css/code.css (.symbol-definition-prototype): Remove ‘font-size’. * website/.guix.scm (lingua-web-site)[build]: Install Linux Libertine fonts. --- website/.guix.scm | 13 ++++++++++- website/static/base/css/code.css | 1 - website/static/base/css/manual.css | 37 ++++++++++++++++++++++++++++-- 3 files changed, 47 insertions(+), 4 deletions(-) diff --git a/website/.guix.scm b/website/.guix.scm index 1d8c3e6..e74f01f 100644 --- a/website/.guix.scm +++ b/website/.guix.scm @@ -212,7 +212,18 @@ file) (string-append #$output "/static/base/fonts"))) - '("FiraSans-Bold.ttf" "FiraSans-Regular.ttf")))))) + '("FiraSans-Bold.ttf" "FiraSans-Regular.ttf")) + + (for-each (lambda (file) + (install-file (string-append #+font-linuxlibertine + "/share/fonts/truetype/" + file) + (string-append #$output + "/static/base/fonts"))) + '("LinLibertine_R.ttf" + "LinLibertine_RI.ttf" + "LinLibertine_RB.ttf" + "LinLibertine_RBI.ttf")))))) (computed-file (string-append "guix-web-site-" lingua) build diff --git a/website/static/base/css/code.css b/website/static/base/css/code.css index e7c53ac..efdb70a 100644 --- a/website/static/base/css/code.css +++ b/website/static/base/css/code.css @@ -72,7 +72,6 @@ a[href].syntax-symbol:hover { .symbol-definition-prototype { /* remaining arguments to @deffn etc. */ font-family: monospace; - font-size: 110%; } .symbol-definition + dd { diff --git a/website/static/base/css/manual.css b/website/static/base/css/manual.css index 8970457..333f545 100644 --- a/website/static/base/css/manual.css +++ b/website/static/base/css/manual.css @@ -1,7 +1,7 @@ /* Additional CSS for the on-line manual. It complements GNU's default CSS at . - Public domain 2017, 2022. All rights waived. */ + Public domain 2017, 2022, 2024. All rights waived. */ /* Navigation bar for the language menu, copied from navbar.css with minor changes. */ @@ -316,6 +316,31 @@ label[for=all-dropdowns-hidden] { font-style: normal; } +@font-face { + font-family: 'Linux Libertine O'; + src: url('../fonts/LinLibertine_R.ttf') format('truetype'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'Linux Libertine O'; + src: url('../fonts/LinLibertine_RI.ttf') format('truetype'); + font-weight: normal; + font-style: italic; +} +@font-face { + font-family: 'Linux Libertine O'; + src: url('../fonts/LinLibertine_RB.ttf') format('truetype'); + font-weight: bold; + font-style: normal; +} +@font-face { + font-family: 'Linux Libertine O'; + src: url('../fonts/LinLibertine_RBI.ttf') format('truetype'); + font-weight: bold; + font-style: italic; +} + /* In title and node titles, use Fira Sans as it is more pleasant and more compact than Helvetica. */ h1.settitle, h1.top, h2.chapter, h3.section, h4.subsection, h4.subsubsection { @@ -327,7 +352,15 @@ h1.settitle, h1.top, h2.chapter, h3.section, h4.subsection, h4.subsubsection { which currently applies to entire section classes, as opposed to section classes for headings only). */ div.settitle, div.top, div.chapter, div.section, div.subsection, div.subsubsection { - font-family: serif; + font-family: Linux Libertine O, serif; + font-size: 18px; +} + +/* Arrange so fixed-width samples don't look too big compared to Linux + Libertine text. */ +samp, code, .example { + font-family: monospace; + font-size: 85%; } /* Texinfo footnotes are in a "footnote"
but each of them is