about summary refs log tree commit diff
path: root/nixos/modules/config/fonts
AgeCommit message (Collapse)AuthorFilesLines
2023-09-12noto-fonts-emoji → noto-fonts-color-emojinicoo1-1/+1
Clarify that the monochrome font is not included, per #221181. The new name is also coherent with the name of the font, according to `fontconfig`: Noto Color Emoji.
2023-07-25nixos/packages: fix typo preventing mkRenamedOptionModule from workingSandro Jäckel1-1/+1
2023-07-25nixos/fonts: rename fonts.enableDefaultFonts to fonts.enableDefaultPackagesSandro Jäckel1-2/+3
to better fit the renamed fonts.packages
2023-07-24nixos/ghostscript: evaporate the extra whitespaceSandro Jäckel1-19/+9
2023-07-24treewide: rename fonts.fonts to fonts.packagesSandro Jäckel3-4/+4
2023-07-24nixos/fonts: rename fonts.fonts option to fonts.packages, other cleanupsSandro Jäckel2-47/+42
fonts.fonts is not a great name and this also resolves a TODO.
2023-06-28nixos/fontdir: add otb to font regex (#239802)dariof41-1/+1
2023-06-04modules: fix fontconfig.nix to use '$dst', not 'dst'Sergei Trofimovich1-1/+1
Without the change non-default configs like: fonts.fontconfig.subpixel.rgba = "rgb" fail to build the system as: fontconfig-conf> ln: failed to create symbolic link 'dst/': No such file or directory
2023-06-03nixos/fontconfig: Change default antialiasing style to greyscale instead of ↵Sefa Eyeoglu1-1/+1
subpixel fontconfig before version 2.13.1 was apparently implicitly not using subpixel antialiasing. The fontconfig NixOS module deviated from this, using subpixel antialiasing with `rgb` layout by default. In fontconfig 2.14.1, subpixel antialiasing was inadvertently enabled as the default: https://gitlab.freedesktop.org/fontconfig/fontconfig/-/commit/2b6afa02ab2b7dd3796a48cf47896c4c6de4d6ba According to https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/337, that deviates from GNOME/GTK’s defaults, which resulted in apps taking the settings directly from fontconfig (e.g. Firefox) from diverging from GNOME programs. The change was subsequently reverted in 2.14.2, choosing the greyscale antialiasing explicitly: https://gitlab.freedesktop.org/fontconfig/fontconfig/-/commit/030759b74f5b3ce7fab6d17bbda6377444e82841 Let’s reflect this default setting in the NixOS module. Co-authored-by: Jan Tojnar <jtojnar@gmail.com> Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-06-03nixos/fontconfig: refactor antialias option for fontconfig 2.14.1Sefa Eyeoglu1-18/+41
`sub-pixel` has been enabled by default since 2.14.1: https://gitlab.freedesktop.org/fontconfig/fontconfig/-/commit/2b6afa02ab2b7dd3796a48cf47896c4c6de4d6ba `antialias` since 2.14.1: https://gitlab.freedesktop.org/fontconfig/fontconfig/-/commit/0825a178e82c58ae97e908d49e5ad7abe88ed7f5 `lcdfilter` since 2.13.95: https://gitlab.freedesktop.org/fontconfig/fontconfig/-/commit/e1c7c6d7442ace9c20c424265880ff57c23881f8 `hintstyle` since 2.12.1: https://gitlab.freedesktop.org/fontconfig/fontconfig/-/commit/98434b3392172233094cac25ade7225c93da9f1c Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-03-23nixos/fontconfig: time capsuleK9001-0/+13
2023-03-23nixos/hidpi: remove harderK9002-28/+5
We can't agree on what the right settings are (see #222236), so let's make the users choose.
2023-03-21nixos/hidpi: removeK9001-30/+23
The single option tries to do too much work, which just ends up confusing people. So: - don't force the console font, the kernel can figure this out as of #210205 - don't force the systemd-boot mode, it's an awkward mode that's not supported on most things and will break flicker-free boot - add a separate option for the xorg cursor scaling trick and move it under the xorg namespace - add a general `fonts.optimizeForVeryHighDPI` option that explicitly says what it does - alias the old option to that - don't set any of those automatically in nixos-generate-config
2022-08-31nixos/*: convert internal option descriptions to MDpennae1-1/+1
we'll have to do it eventually, may as well be now.
2022-07-30treewide: automatically md-convert option descriptionspennae3-31/+31
the conversion procedure is simple: - find all things that look like options, ie calls to either `mkOption` or `lib.mkOption` that take an attrset. remember the attrset as the option - for all options, find a `description` attribute who's value is not a call to `mdDoc` or `lib.mdDoc` - textually convert the entire value of the attribute to MD with a few simple regexes (the set from mdize-module.sh) - if the change produced a change in the manual output, discard - if the change kept the manual unchanged, add some text to the description to make sure we've actually found an option. if the manual changes this time, keep the converted description this procedure converts 80% of nixos options to markdown. around 2000 options remain to be inspected, but most of those fail the "does not change the manual output check": currently the MD conversion process does not faithfully convert docbook tags like <code> and <package>, so any option using such tags will not be converted at all.
2022-07-24nixos/config: invariant option docs MD conversionspennae1-4/+4
2022-06-26nixos/fontconfig: add fonts.fontconfig.hinting.style optionThiago Kenji Okada1-2/+15
2022-03-13nixos/fonts: Remove ancient bitmap fonts from defaultXFontsLuna Nova1-5/+0
See https://github.com/NixOS/nixpkgs/issues/160740
2021-12-02nixos/*: add trivial defaultText for options with simple defaultspennae1-0/+1
2021-10-11Merge pull request #140723 from rnhmjoj/pr-fontdir-headlessMichele Guerini Rocco1-2/+1
nixos/fontdir: always link the font directory
2021-10-06nixos/fontdir: always link the font directoryrnhmjoj1-2/+1
This fixes the fonts directory availability when not running an xserver, such as headless machines.
2021-10-04nixos/doc: clean up defaults and examplesNaïm Favier1-1/+1
2021-08-29nixos/fonts: fixup dd38ae1frnhmjoj1-1/+1
2021-08-25Merge pull request #133303 from rnhmjoj/cursorMichele Guerini Rocco1-20/+50
nixos/hidpi: scale X11 core cursor
2021-08-20fontconfig service: drop dpi optionNikolay Amiantov1-17/+1
Recommend to use services.xserver.dpi option instead. Mention in the documentation that it's a sledgehammer approach and monitor settings should be used instead. Also don't set DPI in fontconfig settings; fontconfig should use Xft settings by default so let's not override one value in multiple places. For example, user now can set DPI via ~/.Xresources properly.
2021-08-15nixos/fonts: scale X11 core cursorrnhmjoj1-20/+50
Most desktop environments manage the cursor using the Xcursor library by default; this comes with scalable or multiple-sized cursor themes. However, when running just a simple WM (twm, bspwm, ...) the cursor handling is left to the X server, which uses a very simple fixed bitmap font (this is called a "core" cursor). The font is uncomfortably small on a high DPI display and must be replaced with a saner default. Up until recently[1] it used to be possible to change the font on the xserver command line, however the font name is now hardcoded. It's still possible to change it, though: here I override the `fontcursormisc` package and set an alias that points to a vector variant of the original cursor font. The font size is set to match the standard cursor dimensions on a 96dpi display. It's not perfect but it's a very simple and effective solution. [1]: https://gitlab.freedesktop.org/xorg/xserver/-/commit/56ea4c769c2d65df2de86009e8e499f39a8a3d4d
2021-04-23Revert "Revert "apparmor: fix and improve the service""Julien Moutinho1-0/+34
This reverts commit 420f89ceb267b461eed5d025b6c3c0e57703cc5c.
2021-01-24treewide: fix double quoted strings in meta.descriptionvolth1-1/+1
Signed-off-by: Ben Siraphob <bensiraphob@gmail.com>
2020-10-26fontdir: add ttc to font regexIvan Tham1-1/+1
.ttc fonts are used by noto-fonts-cjk
2020-10-07Revert "apparmor: fix and improve the service"Vladimír Čunát1-34/+0
This reverts commit fb6d63f3fdd95a5468d43a0693c8ca7c1894363f. I really hope this finally fixes #99236: evaluation on Hydra. This time I really did check basically the same commit on Hydra: https://hydra.nixos.org/eval/1618011 Right now I don't have energy to find what exactly is wrong in the commit, and it doesn't seem important in comparison to nixos-unstable channel being stuck on a commit over one week old.
2020-10-04nixos/xwayland: add new module and allow configuring a default font pathEmilio Perez1-3/+5
- Add option `programs.xwayland.defaultFontPath` - Modify sway to enable Xwayland
2020-10-04nixos/fontdir: add option to decompress fontsEmilio Perez1-0/+11
This will let Xwayland use the global font folder as font path
2020-10-04nixos/fontdir: add group of options for fontDirEmilio Perez1-5/+8
Renaming enableFontDir to fontDir.enable
2020-10-04nixos/fontdir: add the directory to the xserver font pathsrnhmjoj1-5/+9
2020-10-04nixos/fontdir: use regexp to find font filesEmilio Perez1-6/+3
2020-10-04nixos/fontdir: gather more font formatsEmilio Perez1-5/+7
- Fix wrong order in which font indexes are created mkfontdir requires the file fonts.scale to consider scalable fonts, thus, mkfontscale should be run before - Search more font formats, in particular, bit-mapped formats
2020-09-30nixos/tests: fix x11 testsJonathan Ringer1-5/+7
2020-09-27Merge pull request #93457 from ju1m/apparmorMichael Raskin1-0/+34
apparmor: fix and improve the service
2020-09-06apparmor: fix and improve the serviceJulien Moutinho1-0/+34
2020-09-06Revert "nixos/fontconfig: fix 50-user.conf handling"Jan Tojnar1-4/+2
This reverts commit 8425726f86a2f4a38d0022f3d5cb1d2001da6999. This should have been reverted in https://github.com/NixOS/nixpkgs/pull/95358 but I forgot about it.
2020-09-05Merge pull request #95358 from jtojnar/global-fontconfigJan Tojnar1-4/+5
2020-09-04Merge pull request #96992 from jtojnar/fc-dtd-urnJan Tojnar1-5/+5
treewide: use URN for fontconfig DTD
2020-09-03treewide: use URN for fontconfig DTDJan Tojnar1-5/+5
To match upstream change: https://gitlab.freedesktop.org/fontconfig/fontconfig/commit/9c46ef4aac87c42d013d0e7380b6aeb03e1a9949
2020-08-29fontconfig: get rid of rest of versioned configsJan Tojnar1-4/+5
The incompatibility does not seem to exist any more: programs linked against fc 2.12 on fc 2.14 system seem to at least display text, even while printing tons of errors (as long as you generate fc cache manually), and same thing the other way around. Hopefully it will not be an issue in the future.
2020-08-20nixos/fontconfig: fix local.conf regressionJan Tojnar1-7/+0
Another part of edf2541f02c6b24ea791710d5cadeae36f9b1a3a was missed while rebasing https://github.com/NixOS/nixpkgs/pull/93562, resulting in incorrect path as described by https://github.com/NixOS/nixpkgs/issues/86601#issuecomment-675462227
2020-08-17Merge pull request #95681 from flokli/fontconfig-penultimate-removeSilvan Mosberger2-293/+1
nixos/fonts: remove fontconfig-penultimate
2020-08-17nixos/fontconfig: fix 50-user.conf handlingFlorian Klink1-2/+4
Apparently, edf2541f02c6b24ea791710d5cadeae36f9b1a3a was missed while rebasing https://github.com/NixOS/nixpkgs/pull/93562. Provide 50-user.conf in fontconfig if includeUserConf is true (the default), and don't try removing the non-existent one if it's disabled Fixes https://github.com/NixOS/nixpkgs/issues/95685 Fixes https://github.com/NixOS/nixpkgs/issues/95712
2020-08-17nixos/fonts/fontconfig-penultimate: remove moduleFlorian Klink2-293/+1
2020-08-13nixos/fontconfig: Reintroduce unversioned fonts.confJan Tojnar1-0/+3
Turns out lot of software (including Chromium) use bundled fontconfig so we either need to wrap every one of those, or re-introduce the global unversioned config. The latter is easier but weakens hermetic configs. But perhaps those are not really worth the effort.
2020-08-12nixos/fontconfig: stop generating fontconfig_210 config and cacheFlorian Klink1-61/+27
This fontconfig version isn't used anywhere inside nixpkgs anymore.