Github messages for voidlinux
 help / color / mirror / Atom feed
From: jbenden <jbenden@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] wezterm: default to system monospace font
Date: Thu, 24 Nov 2022 22:12:02 +0100	[thread overview]
Message-ID: <20221124211202.63QUTTC_W1gk62isgS3b7fAT-_p34WRolYKwU1JfqD0@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40741@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 693 bytes --]

There is an updated pull request by jbenden against master on the void-packages repository

https://github.com/jbenden/void-packages wezterm-monospace
https://github.com/void-linux/void-packages/pull/40741

wezterm: default to system monospace font
#### Details
This patches Wezterm to always select the `monospace` font; as opposed to requiring the `JetBrains Mono` font.

#### Testing
- I tested the changes in this PR: **YES**

I tested the modifications on Void x86_64-musl, ensured no user fonts were installed - which by proxy include no `JetBrains Mono`.

#### References
See: #40736


A patch file from https://github.com/void-linux/void-packages/pull/40741.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-wezterm-monospace-40741.patch --]
[-- Type: text/x-diff, Size: 1907 bytes --]

From 63f6b34b7d9037e3d44cca841152e798fcd19764 Mon Sep 17 00:00:00 2001
From: Joseph Benden <joe@benden.us>
Date: Thu, 24 Nov 2022 13:50:16 -0700
Subject: [PATCH] wezterm: default to system monospace font

Fixes: #40736
Signed-off-by: Joseph Benden <joe@benden.us>
---
 srcpkgs/wezterm/patches/monospace.patch | 11 +++++++++++
 srcpkgs/wezterm/template                |  6 ++++--
 2 files changed, 15 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/wezterm/patches/monospace.patch

diff --git a/srcpkgs/wezterm/patches/monospace.patch b/srcpkgs/wezterm/patches/monospace.patch
new file mode 100644
index 000000000000..ceebf0f83d8a
--- /dev/null
+++ b/srcpkgs/wezterm/patches/monospace.patch
@@ -0,0 +1,11 @@
+--- a/config/src/font.rs	2022-09-05 10:28:02.000000000 -0700
++++ b/config/src/font.rs	2022-11-24 11:27:15.115251410 -0700
+@@ -407,7 +407,7 @@
+ impl Default for FontAttributes {
+     fn default() -> Self {
+         Self {
+-            family: "JetBrains Mono".into(),
++            family: "monospace".into(),
+             weight: FontWeight::default(),
+             stretch: FontStretch::default(),
+             style: FontStyle::Normal,
diff --git a/srcpkgs/wezterm/template b/srcpkgs/wezterm/template
index 936f2051d4ee..8c075920877c 100644
--- a/srcpkgs/wezterm/template
+++ b/srcpkgs/wezterm/template
@@ -1,7 +1,7 @@
 # Template file for 'wezterm'
 pkgname=wezterm
 version=20221119
-revision=1
+revision=2
 _srcver=${version}-145034-49b9839f
 archs="x86_64* i686* aarch64* arm*" # ring
 build_style=cargo
@@ -27,7 +27,9 @@ do_check() {
 	cargo test --target ${RUST_TARGET} --workspace --locked -- \
 		--skip e2e::sftp \
 		--skip escape::action_size \
-		--skip surface::line::storage::test::memory_usage
+		--skip surface::line::storage::test::memory_usage \
+		--skip shapecache::test::ligatures_fira \
+		--skip shapecache::test::ligatures_jetbrains
 }
 
 do_install() {

  parent reply	other threads:[~2022-11-24 21:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-24 21:01 [PR PATCH] " jbenden
2022-11-24 21:10 ` classabbyamp
2022-11-24 21:12 ` jbenden [this message]
2022-11-24 21:12 ` jbenden
2022-11-25  5:18 ` [PR PATCH] [Merged]: " classabbyamp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221124211202.63QUTTC_W1gk62isgS3b7fAT-_p34WRolYKwU1JfqD0@z \
    --to=jbenden@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).