Documentation: Web fonts for kernel documentation
Subsystems (2)
cover Documentation: Web fonts for kernel documentation
[resend from previous RFC [4] with correct linux-doc address]
Intro
=====
The Linux kernel documentation is primarily composed of text (both prose and code snippets) and a few images. Hence, making the text easy to read by proper typography choices is crucial.
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.
For the font choices, we settle down on IBM Plex Sans (sans-serif), IBM Plex Mono (monospace), and Newsreader (serif). All these fonts are licensed under OFL 1.1 and can be distributed alongside the kernel docs. We have also considered to use Söhne [1] instead, but because it is paid font, it is concluded that such font is non-free [2] (and by implication, distributions must patch the kernel to not use it).
The fonts selected are downloaded from Google Fonts directory [3]. As the font files are in .ttf format, these are compressed first into .woff2 format (just like other sites that use web fonts do) using woff2_compress program from woff2 Debian package. These converted files are then referenced in Documentation/sphinx-static/fonts.css via @font-face directive and the appropriate font-family rule selects that font.
Note that only necessary styles (regular, bold, italic, and bold-italic) are included and used. For Newsreader, use the classic 14 pt static font instead of variable variant for compatibility with older browsers.
Scope
=====
Only the main documentation and translations in languages using Latin script (Italian and Spanish) are covered.
[1]: https://klim.co.nz/retail-fonts/soehne/
[2]: https://lists.debian.org/debian-legal/2023/06/msg00005.html
[3]: https://fonts.google.com
[4]: https://lore.kernel.org/all/[email protected]/
Bagas Sanjaya (4):
LICENSES: Add SIL Open Font License 1.1
Docmentation: Use IBM Plex Sans for page body
Documentation: Use Newsreader font for document headings
Documentation: Use IBM Plex Mono as monospace font
Documentation/conf.py | 4 + .../sphinx-static/IBMPlexMono-Bold.woff2 | Bin 0 -> 39984 bytes .../IBMPlexMono-BoldItalic.woff2 | Bin 0 -> 43816 bytes .../sphinx-static/IBMPlexMono-Italic.woff2 | Bin 0 -> 43236 bytes .../sphinx-static/IBMPlexMono-Regular.woff2 | Bin 0 -> 38740 bytes .../sphinx-static/IBMPlexSans-Bold.woff2 | Bin 0 -> 55412 bytes .../IBMPlexSans-BoldItalic.woff2 | Bin 0 -> 59112 bytes .../sphinx-static/IBMPlexSans-Italic.woff2 | Bin 0 -> 59468 bytes .../sphinx-static/IBMPlexSans-Regular.woff2 | Bin 0 -> 55380 bytes .../sphinx-static/Newsreader_14pt-Bold.woff2 | Bin 0 -> 44512 bytes .../Newsreader_14pt-BoldItalic.woff2 | Bin 0 -> 48152 bytes .../Newsreader_14pt-Italic.woff2 | Bin 0 -> 44864 bytes .../Newsreader_14pt-Regular.woff2 | Bin 0 -> 41212 bytes Documentation/sphinx-static/fonts.css | 157 ++++++++++++++++++ LICENSES/dual/OFL-1.1 | 107 ++++++++++++ 15 files changed, 268 insertions(+) create mode 100644 Documentation/sphinx-static/IBMPlexMono-Bold.woff2 create mode 100644 Documentation/sphinx-static/IBMPlexMono-BoldItalic.woff2 create mode 100644 Documentation/sphinx-static/IBMPlexMono-Italic.woff2 create mode 100644 Documentation/sphinx-static/IBMPlexMono-Regular.woff2 create mode 100644 Documentation/sphinx-static/IBMPlexSans-Bold.woff2 create mode 100644 Documentation/sphinx-static/IBMPlexSans-BoldItalic.woff2 create mode 100644 Documentation/sphinx-static/IBMPlexSans-Italic.woff2 create mode 100644 Documentation/sphinx-static/IBMPlexSans-Regular.woff2 create mode 100644 Documentation/sphinx-static/Newsreader_14pt-Bold.woff2 create mode 100644 Documentation/sphinx-static/Newsreader_14pt-BoldItalic.woff2 create mode 100644 Documentation/sphinx-static/Newsreader_14pt-Italic.woff2 create mode 100644 Documentation/sphinx-static/Newsreader_14pt-Regular.woff2 create mode 100644 Documentation/sphinx-static/fonts.css create mode 100644 LICENSES/dual/OFL-1.1
base-commit: babe393974de0351c0e6cca50f5f84edaf8d7fa1
Signature · 1 line
An old man doll... just what I always wanted! - Clara
RFC PATCH 1/4 LICENSES: Add SIL Open Font License 1.1
Add the license text along with appropriate tags for reference and tooling. The text is taken from the text as distributed in Google Fonts's zip files.
As the license itself may or may note be compatible with GPLv2, let's take on the err side and require combining it with GPL-compatible licenses when using the license.
--- LICENSES/dual/OFL-1.1 | 107 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 LICENSES/dual/OFL-1.1
LICENSES/dual/OFL-1.1 new file +107 -0
@@ -0,0 +1,107 @@ +Valid-License-Identifier: OFL-1.1 +SPDX-URL: https://spdx.org/licenses/OFL-1.1 +Usage-Guide: + Do NOT use this license for code, but it's acceptable for fonts (where the + license is specifically written for them). It's best to use it together + with a GPL2 compatible license using "OR", as OFL-1.1 texts processed by + the kernel's build system might combine it with content taken from more + restrictive licenses. + To use the SIL Open Font License 1.1, put the following SPDX tag/value pair + into a comment according to the placement guidelines in the licensing rules + documentation: + SPDX-License-Identifier: OFL-1.1 +License-Text: + +Copyright © <year> <owner>. with Reserved Font Name <reserved font name>. + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE.
Signature · 1 line
An old man doll... just what I always wanted! - Clara
RFC PATCH 3/4 Documentation: Use Newsreader font for document headings
In reply to Bagas SanjayaFrom "About the font" page on Google Fonts:
``` NewsReader is an original typeface designed by Production Type, primarily intended for continuous on-screen reading in content-rich environments. ```
Use Newsreader for title and section headings.
[1]: https://fonts.google.com/specimen/Newsreader/about
---
It seems like Source Serif 4 [1] or IBM Plex Serif [2] are better candidates, as when I read the generated docs output, I'm more focused on the headings than on the text body. Still, differentiating heading and body text fonts are done in order to give better contrast and distinction, considering the lengthy nature of the docs.
[1]: https://fonts.google.com/specimen/Source+Serif+4
[2]: https://fonts.google.com/specimen/IBM+Plex+Serif
.../sphinx-static/Newsreader_14pt-Bold.woff2 | Bin 0 -> 44512 bytes .../Newsreader_14pt-BoldItalic.woff2 | Bin 0 -> 48152 bytes .../Newsreader_14pt-Italic.woff2 | Bin 0 -> 44864 bytes .../Newsreader_14pt-Regular.woff2 | Bin 0 -> 41212 bytes Documentation/sphinx-static/fonts.css | 44 ++++++++++++++++++ 5 files changed, 44 insertions(+) create mode 100644 Documentation/sphinx-static/Newsreader_14pt-Bold.woff2 create mode 100644 Documentation/sphinx-static/Newsreader_14pt-BoldItalic.woff2 create mode 100644 Documentation/sphinx-static/Newsreader_14pt-Italic.woff2 create mode 100644 Documentation/sphinx-static/Newsreader_14pt-Regular.woff2
Documentation/sphinx-static/Newsreader_14pt-Bold.woff2 new file binary +0 -0
Documentation/sphinx-static/Newsreader_14pt-BoldItalic.woff2 new file binary +0 -0
Documentation/sphinx-static/Newsreader_14pt-Italic.woff2 new file binary +0 -0
Documentation/sphinx-static/Newsreader_14pt-Regular.woff2 new file binary +0 -0
Documentation/sphinx-static/fonts.css +44 -0
59 lines not on this page · raw message
Signature · 1 line
An old man doll... just what I always wanted! - Clara
RFC PATCH 4/4 Documentation: Use IBM Plex Mono as monospace font
In reply to Bagas SanjayaAdapted from "About the font" page on Google Fonts [1]:
``` Plex is an international typeface family developed by IBM, aimed to illustrate unique relationship between mankind and machine. The font is neutral, yet friendly Grosteque-style typeface that balances design with the engineered details. The font has excellent legibility in print, web, and mobile interfaces. ```
Use IBM Plex Mono to format monospace texts (e.g. code samples, inline code, and keyboard sequences).
[1]: https://fonts.google.com/specimen/IBM+Plex+Mono/about
--- .../sphinx-static/IBMPlexMono-Bold.woff2 | Bin 0 -> 39984 bytes .../IBMPlexMono-BoldItalic.woff2 | Bin 0 -> 43816 bytes .../sphinx-static/IBMPlexMono-Italic.woff2 | Bin 0 -> 43236 bytes .../sphinx-static/IBMPlexMono-Regular.woff2 | Bin 0 -> 38740 bytes Documentation/sphinx-static/fonts.css | 45 ++++++++++++++++++ 5 files changed, 45 insertions(+) create mode 100644 Documentation/sphinx-static/IBMPlexMono-Bold.woff2 create mode 100644 Documentation/sphinx-static/IBMPlexMono-BoldItalic.woff2 create mode 100644 Documentation/sphinx-static/IBMPlexMono-Italic.woff2 create mode 100644 Documentation/sphinx-static/IBMPlexMono-Regular.woff2
Documentation/sphinx-static/IBMPlexMono-Bold.woff2 new file binary +0 -0
Documentation/sphinx-static/IBMPlexMono-BoldItalic.woff2 new file binary +0 -0
Documentation/sphinx-static/IBMPlexMono-Italic.woff2 new file binary +0 -0
Documentation/sphinx-static/IBMPlexMono-Regular.woff2 new file binary +0 -0
Documentation/sphinx-static/fonts.css +45 -0
60 lines not on this page · raw message
Signature · 1 line
An old man doll... just what I always wanted! - Clara
RFC PATCH 2/4 Docmentation: Use IBM Plex Sans for page body
In reply to Bagas SanjayaAdapted from "About the font" page on Google Fonts [1]:
``` Plex is an international typeface family developed by IBM, aimed to illustrate unique relationship between mankind and machine. The font is neutral, yet friendly Grosteque-style typeface that balances design with the engineered details. The font has excellent legibility in print, web, and mobile interfaces. ```
Use IBM Plex Sans font for both documentation content (excluding title and section headings) and sidebar.
[1]: https://fonts.google.com/specimen/IBM+Plex+Sans/about
--- Documentation/conf.py | 4 ++ .../sphinx-static/IBMPlexSans-Bold.woff2 | Bin 0 -> 55412 bytes .../IBMPlexSans-BoldItalic.woff2 | Bin 0 -> 59112 bytes .../sphinx-static/IBMPlexSans-Italic.woff2 | Bin 0 -> 59468 bytes .../sphinx-static/IBMPlexSans-Regular.woff2 | Bin 0 -> 55380 bytes Documentation/sphinx-static/fonts.css | 68 ++++++++++++++++++ 6 files changed, 72 insertions(+) create mode 100644 Documentation/sphinx-static/IBMPlexSans-Bold.woff2 create mode 100644 Documentation/sphinx-static/IBMPlexSans-BoldItalic.woff2 create mode 100644 Documentation/sphinx-static/IBMPlexSans-Italic.woff2 create mode 100644 Documentation/sphinx-static/IBMPlexSans-Regular.woff2 create mode 100644 Documentation/sphinx-static/fonts.css
Documentation/conf.py +4 -0
@@ -337,6 +337,10 @@ if html_theme == 'alabaster': 'font_family': 'serif', } + html_css_files = [ + 'fonts.css', + ] + sys.stderr.write("Using %s theme\n" % html_theme) # Add any paths that contain custom static files (such as style sheets) here,
Documentation/sphinx-static/IBMPlexSans-Bold.woff2 new file binary +0 -0
Documentation/sphinx-static/IBMPlexSans-BoldItalic.woff2 new file binary +0 -0
Documentation/sphinx-static/IBMPlexSans-Italic.woff2 new file binary +0 -0
Documentation/sphinx-static/IBMPlexSans-Regular.woff2 new file binary +0 -0
Documentation/sphinx-static/fonts.css new file +68 -0
68 lines not on this page · raw message
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Greg Kroah-Hartman
maintainerRe: [PATCH RFC RESEND 1/4] LICENSES: Add SIL Open Font License 1.1
In reply to Bagas SanjayaQuoted 8 lines · Bagas Sanjaya
Add the license text along with appropriate tags for reference and tooling. The text is taken from the text as distributed in Google Fonts's zip files.
As the license itself may or may note be compatible with GPLv2, let's take on the err side and require combining it with GPL-compatible licenses when using the license.
Quoted 8 lines
Cc Richard Fontana <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Bagas Sanjaya <[email protected]>--- LICENSES/dual/OFL-1.1 | 107 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 LICENSES/dual/OFL-1.1
Same comment as made before here:
https://lore.kernel.org/all/2023110222-renewed-monologue-008e@gregkh/
Randy Dunlap
reviewerRe: [PATCH RFC RESEND 2/4] Docmentation: Use IBM Plex Sans for page body
In reply to Bagas SanjayaQuoted 10 lines · Bagas Sanjaya
Adapted from "About the font" page on Google Fonts [1]:
``` Plex is an international typeface family developed by IBM, aimed to illustrate unique relationship between mankind and machine. The font is neutral, yet friendly Grosteque-style typeface that balances design with the engineered details. The font has excellent legibility in print, web, and mobile interfaces. ```
Quoted 3 lines
Use IBM Plex Sans font for both documentation content (excluding title and section headings) and sidebar.
docs.kernel.org currently shows me content in a serif font, which I find preferable for content body.
Does this force everyone to use a sans serif font for content body? If so, I would not like that.
(reminds me of reading The Psychology of Computer Programming, which was completely in sans serif, which made it difficult to read IMO)
Quoted 17 lines
[1]: https://fonts.google.com/specimen/IBM+Plex+Sans/about
Signed-off-by Bagas Sanjaya <[email protected]>--- Documentation/conf.py | 4 ++ .../sphinx-static/IBMPlexSans-Bold.woff2 | Bin 0 -> 55412 bytes .../IBMPlexSans-BoldItalic.woff2 | Bin 0 -> 59112 bytes .../sphinx-static/IBMPlexSans-Italic.woff2 | Bin 0 -> 59468 bytes .../sphinx-static/IBMPlexSans-Regular.woff2 | Bin 0 -> 55380 bytes Documentation/sphinx-static/fonts.css | 68 ++++++++++++++++++ 6 files changed, 72 insertions(+) create mode 100644 Documentation/sphinx-static/IBMPlexSans-Bold.woff2 create mode 100644 Documentation/sphinx-static/IBMPlexSans-BoldItalic.woff2 create mode 100644 Documentation/sphinx-static/IBMPlexSans-Italic.woff2 create mode 100644 Documentation/sphinx-static/IBMPlexSans-Regular.woff2 create mode 100644 Documentation/sphinx-static/fonts.css
[snip]
Thanks.
Signature · 1 line
~Randy
Jonathan Corbet
maintainerQuoted 28 lines · Bagas Sanjaya
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
============
Quoted 8 lines
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
Quoted 1 line · Jonathan Corbet
Bagas Sanjaya <[email protected]> writes:
Hello Bagas,
[...]
Quoted 14 lines
Quoted 11 lines
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.
Quoted 8 lines
- If you don't like serif, tweaking
conf.pyis 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.
+1 to all of Jon's points. We already have to deal with folks arguing against .rst and pushing for us to just use plaintext for everything. I suspect their reaction to this would be, to put it politely, even less restrained.
Thanks,
David
On Thu, Nov 02, 2023 at 10:35:47AM -0600, Jonathan Corbet wrote:
Jon, some slight nit-picking below, after comments on the stated problem.
Quoted 2 lines
Bagas Sanjaya <[email protected]> writes:
[...]
Quoted 4 lines
Quoted 4 lines
The solution
============
Quoted 9 lines
Quoted 8 lines
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.
Bagas,
If loading the web font fails, you will get whichever fallback fonts are enabled by fontconfig and whichever fonts you, or your distro, have installed. If those fonts are not generally adequate you should complain to your distro, or install different fonts in ~/.local/share/fotns and perhaps change your fonts.conf entries.
Quoted 9 lines
So my immediate response to this is pretty uniformly negative.
- If you don't like serif, tweaking
conf.pyis 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.
Jon,
As I understand it the (woff) fonts would be downloaded on request by the browser if this went in. So not a bunch of binary font data in the kernel, but a download from google (adding to the popularity of the font) and yet more font data in the browser cache. I don't have any desire to see woff fonts referenced in the docs, just nit-picking about the details.
However -
Quoted 2 lines
- The licensing of the fonts is not fully free.
AFAICS, the SIL OFL allows everything except changing the font name. If you have the right tools you can apparently fix things like "that specific glyph looks ugly" or "you put a latin breve on a cyrillic letter" (apparently they should differ) or "You mismapped this codepoint to the wrong glyph". What you cannot do, if those changes are not accepted by the font designer/maintainer, or if the font is no-longer maintained, is fork it and provide it under the same name.
You can fork, but the font name has to be changed (e.g. LinLibertine -> Libertinus and then the serif forked to CommonSerif).
Oh, and you cannot sell the fonts by themselves, but you can bundle them with a distro or embed them.
https://www.tldrlegal.com/license/open-font-license-ofl-explained
Question: is that not free enough, or is that site wrong ? If not free enough, is there a better licence for fonts ?
ĸen
Signature · 3 lines
This is magic for grown-ups; it has to be hard because we know there's no such thing as a free goblin. -- Pratchett, Stewart & Cohen - The Science of Discworld II
Re: [PATCH RFC RESEND 1/4] LICENSES: Add SIL Open Font License 1.1
In reply to Greg Kroah-HartmanQuoted 18 lines · Greg Kroah-Hartman
Quoted 8 lines · Bagas Sanjaya
Add the license text along with appropriate tags for reference and tooling. The text is taken from the text as distributed in Google Fonts's zip files.
As the license itself may or may note be compatible with GPLv2, let's take on the err side and require combining it with GPL-compatible licenses when using the license.
Quoted 8 lines
Cc Richard Fontana <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Bagas Sanjaya <[email protected]>--- LICENSES/dual/OFL-1.1 | 107 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 LICENSES/dual/OFL-1.1
Quoted 2 lines
Same comment as made before here:
https://lore.kernel.org/all/2023110222-renewed-monologue-008e@gregkh/
Thanks for the pointer to the OG thread!
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Quoted 4 lines · Jonathan Corbet
So my immediate response to this is pretty uniformly negative.
- If you don't like serif, tweaking
conf.pyis easy enough without pushing it on everybody else.
As local commit of course.
Quoted 4 lines
- 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.
MediaWiki project takes the same stance regarding web fonts:
Quoted 9 lines
What about using webfonts?
Webfonts is a system to deliver a font to users who do not have it installed. This involves having a user's browser download a font we provide, which causes additional resources to load and would have a negative impact on site performance (i.e. how fast pages load). This is particularly true for older browsers. In the future we may explore using webfonts, but for now this update provides greater readability and consistency while not degrading page load times.
Indeed, it's possible to achieve the same effect without resorting to web fonts (as MediaWiki did), see [1].
Quoted 2 lines
- The licensing of the fonts is not fully free.
That was being discussed on the original RFC thread.
Quoted 7 lines
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.
OK, I want to hear about their opinion.
Thanks.
[1]: https://www.mediawiki.org/wiki/Typography_refresh
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Quoted 21 lines · Ken Moffat
On Thu, Nov 02, 2023 at 10:35:47AM -0600, Jonathan Corbet wrote:
Jon, some slight nit-picking below, after comments on the stated problem.
Quoted 2 lines
Bagas Sanjaya <[email protected]> writes:
[...]
Quoted 4 lines
Quoted 4 lines
The solution
============Quoted 9 lines
Quoted 8 lines
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.
Quoted 7 lines
Bagas,
If loading the web font fails, you will get whichever fallback fonts are enabled by fontconfig and whichever fonts you, or your distro, have installed. If those fonts are not generally adequate you should complain to your distro, or install different fonts in ~/.local/share/fotns and perhaps change your fonts.conf entries.
I beg to differ.
That's depending on font-family rule. For example, if I write it as:
```
body {
font-family: "Liberation Sans", Helvetica, Arial, sans-serif;
}
```browsers will try loading the first three fonts, in order. If a font isn't available, they will try the next one until they can. Only then when all other options are exhausted, generic fallback font will kick in.
And yes, I do copying all fonts from my Windows installation (since I dual-boot both it and Debian), then configure GNOME to use Segoe UI as UI font (as it looks nicer to me). I also drop in font substitution rules in ~/.config/fontconfig/conf.d since I'm not the fan of (obviously non-free) Söhne and substitute it with Inter and Source Code Pro.
Quoted 11 lines
Quoted 10 lines
So my immediate response to this is pretty uniformly negative.
- If you don't like serif, tweaking
conf.pyis 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.
Quoted 8 lines
Jon,
As I understand it the (woff) fonts would be downloaded on request by the browser if this went in. So not a bunch of binary font data in the kernel, but a download from google (adding to the popularity of the font) and yet more font data in the browser cache. I don't have any desire to see woff fonts referenced in the docs, just nit-picking about the details.
But I wasn't considering people using terminal-only browsers (like Lynx).
Quoted 17 lines
However -
Quoted 2 lines
- The licensing of the fonts is not fully free.
AFAICS, the SIL OFL allows everything except changing the font name. If you have the right tools you can apparently fix things like "that specific glyph looks ugly" or "you put a latin breve on a cyrillic letter" (apparently they should differ) or "You mismapped this codepoint to the wrong glyph". What you cannot do, if those changes are not accepted by the font designer/maintainer, or if the font is no-longer maintained, is fork it and provide it under the same name.
You can fork, but the font name has to be changed (e.g. LinLibertine -> Libertinus and then the serif forked to CommonSerif).
Quoted 6 lines
Oh, and you cannot sell the fonts by themselves, but you can bundle them with a distro or embed them.
https://www.tldrlegal.com/license/open-font-license-ofl-explainedQuestion: is that not free enough, or is that site wrong ? If not free enough, is there a better licence for fonts ?
Yet Debian distributes OFL fonts in its main archive...
For me, for the fonts, I'd like CC-BY-SA instead.
Thanks.
Signature · 1 line
An old man doll... just what I always wanted! - Clara