* [bug#54323] [PATCH] Add font-google-roboto-mono
@ 2022-03-09 21:02 remimimimi
2022-03-11 14:57 ` Denis 'GNUtoo' Carikli
2022-03-18 14:03 ` [bug#54323] remimimimi
0 siblings, 2 replies; 3+ messages in thread
From: remimimimi @ 2022-03-09 21:02 UTC (permalink / raw)
To: 54323
[-- Attachment #1.1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #1.2: Type: text/html, Size: 26 bytes --]
[-- Attachment #2: 0001-gnu-Add-font-google-roboto-mono.patch --]
[-- Type: text/x-patch, Size: 3726 bytes --]
From dcc51bcbb8d0e831603cf1416570f8b418795c67 Mon Sep 17 00:00:00 2001
From: remimimimimi <valent.xarin@gmail.com>
Date: Wed, 9 Mar 2022 23:38:58 +0300
Subject: [PATCH] gnu: Add font-google-roboto-mono
---
gnu/packages/fonts.scm | 40 +++++++++++++++++++++++++++++++++++++---
1 file changed, 37 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index db19e6d156..1436c70c83 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -837,6 +837,40 @@ (define-public font-google-roboto
visual language \"Material Design\".")
(license license:asl2.0)))
+(define-public font-google-roboto-mono
+ (package
+ (name "font-google-roboto-mono")
+ (version "2.136")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/googlefonts/RobotoMono")
+ (commit "8f651634e746da6df6c2c0be73255721d24f2372")))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "00ddmr7yvb9isakfvgv6g74m80fmg81dmh1hrrdyswapaa7858a5"))))
+ (build-system font-build-system)
+ (home-page "https://github.com/googlefonts/RobotoMono")
+ (synopsis "Monospaced Roboto font")
+ (description
+ "Roboto Mono is a monospaced addition to the Roboto type family.
+Like the other members of the Roboto family, the fonts are optimized for readability
+on screens across a wide variety of devices and reading environments. While the
+monospaced version is related to its variable width cousin, it doesn’t hesitate to
+change forms to better fit the constraints of a monospaced environment. For example,
+narrow glyphs like ‘I’, ‘l’ and ‘i’ have added serifs for more even texture while
+wider glyphs are adjusted for weight. Curved caps like ‘C’ and ‘O’ take on the
+straighter sides from Roboto Condensed. Special consideration is given to glyphs
+important for reading and writing software source code. Letters with similar shapes
+are easy to tell apart. Digit ‘1’, lowercase ‘l’ and capital ‘I’ are easily
+differentiated as are zero and the letter ‘O’. Punctuation important for code has
+also been considered. For example, the curly braces ‘{ }’ have exaggerated points
+to clearly differentiate them from parenthesis ‘( )’ and braces ‘[ ]’. Periods and
+commas are also exaggerated to identify them more quickly. The scale and weight of
+symbols commonly used as operators have also been optimized.")
+ (license license:asl2.0)))
+
(define-public font-borg-sans-mono
(package
(name "font-borg-sans-mono")
@@ -985,8 +1019,8 @@ (define-public font-adobe-source-code-pro
;; The upstream tag uses "/" between the roman and italic
;; versions, so substitute our "-" separator here.
#f "((R-ro)|(R-it))(-)" version
- 'pre 1 "/" 'post
- ))))
+ 'pre 1 "/" 'post))))
+
(file-name (git-file-name name version))
(sha256
(base32 "1lqchm8z0ah5y675ycmciqvr8y1v1gcj22ysfs443gm291vy0z4v"))))
@@ -1985,7 +2019,7 @@ (define-public font-dseg
#\.)))
(for-each (lambda (f) (install-file f truetype-dir))
(find-files "." "\\.ttf$"))
- #t)))))))
+ #t)))))))
(home-page "https://www.keshikan.net/fonts-e.html")
(synopsis "DSEG: 7-segment and 14-segment fonts")
(description
base-commit: 256703fa6cb0b27bd947315a206d42d500dc20c6
--
2.34.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#54323] [PATCH] Add font-google-roboto-mono
2022-03-09 21:02 [bug#54323] [PATCH] Add font-google-roboto-mono remimimimi
@ 2022-03-11 14:57 ` Denis 'GNUtoo' Carikli
2022-03-18 14:03 ` [bug#54323] remimimimi
1 sibling, 0 replies; 3+ messages in thread
From: Denis 'GNUtoo' Carikli @ 2022-03-11 14:57 UTC (permalink / raw)
To: 54323
[-- Attachment #1: Type: text/plain, Size: 918 bytes --]
Hi,
Thanks for working on this patch.
Note that I'm not a Guix maintainer (I only managed to send some patches
and get them accepted), but I've seen several things to fix in this
patch and I've also some questions:
- You used 'license:asl2.0' as the license, while looking rapidly at
the source I didn't find any license. Do you know where the license
is stated in the font source code?
- If you really want to fix font-adobe-source-code-pro and font-dseg
code style, it should be done in one or two separate patches. Two
patches are probably easier for maintainers to review.
- I've also noticed that this patch lacks any commit message details.
Something like that should work:
gnu: Add font-google-roboto-mono
* gnu/packages/fonts.scm (font-google-roboto-mono): New variable.
Also there may or may not be additional issues as I've only looked at
it rapidly.
Denis.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [bug#54323]
2022-03-09 21:02 [bug#54323] [PATCH] Add font-google-roboto-mono remimimimi
2022-03-11 14:57 ` Denis 'GNUtoo' Carikli
@ 2022-03-18 14:03 ` remimimimi
1 sibling, 0 replies; 3+ messages in thread
From: remimimimi @ 2022-03-18 14:03 UTC (permalink / raw)
To: 54323, GNUtoo
[-- Attachment #1: Type: text/plain, Size: 474 bytes --]
Hello, sorry for the late response.
About the license, I saw it at
https://fonts.google.com/specimen/Roboto#license and
https://en.wikipedia.org/wiki/Roboto that license is Apache 2.0. I just
feel more confident about downloading these fonts from github than from
google fonts. Should I download from google fonts because repo has no
license?
I ran auto-format the file and didn't notice any changes, I'll remove it in
the next patch version with all your proposed fixes.
[-- Attachment #2: Type: text/html, Size: 677 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-03-18 14:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-09 21:02 [bug#54323] [PATCH] Add font-google-roboto-mono remimimimi
2022-03-11 14:57 ` Denis 'GNUtoo' Carikli
2022-03-18 14:03 ` [bug#54323] remimimimi
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).