FS#66012 - Remove fontconfig and xorg-mkfontscale dependencies from font packages
Attached to Project:
Arch Linux
Opened by xduugu (xduugu) - Saturday, 28 March 2020, 22:11 GMT
Last edited by Andreas Radke (AndyRTR) - Tuesday, 30 June 2020, 09:40 GMT
Opened by xduugu (xduugu) - Saturday, 28 March 2020, 22:11 GMT
Last edited by Andreas Radke (AndyRTR) - Tuesday, 30 June 2020, 09:40 GMT
|
Details
Description:
According to the Font package guidelines[1], it is no longer necessary to add a dependency on fontconfig or xorg-mkfontscale. For some fonts, there were already requests to remove these dependencies ( [1] https://wiki.archlinux.org/index.php/Font_packaging_guidelines#Dependencies The list was generated by this command: pacman -Fqx '\.(o|t)tf' | expac -S '%n %E' - | sort | grep -e fontconfig -e xorg-mkfontscale | sed 's/ .*$//' These packages were manually removed, because they look like false positives: ardour ghostscript grafana grafx2 lilypond qt5-base vlc The list of affected font packages: adobe-source-han-sans-cn-fonts adobe-source-han-sans-hk-fonts adobe-source-han-sans-jp-fonts adobe-source-han-sans-kr-fonts adobe-source-han-sans-tw-fonts adobe-source-han-serif-cn-fonts adobe-source-han-serif-jp-fonts adobe-source-han-serif-kr-fonts adobe-source-han-serif-tw-fonts awesome-terminal-fonts font-bh-ttf font-mathematica opendesktop-fonts otf-cormorant otf-fantasque-sans-mono otf-fira-mono otf-fira-sans otf-font-awesome otf-ipaexfont otf-ipafont otf-ipamjfont otf-latin-modern otf-latinmodern-math otf-overpass ttf-anonymous-pro ttf-baekmuk ttf-bitstream-vera ttf-cascadia-code ttf-cormorant ttf-dejavu ttf-fantasque-sans-mono ttf-fira-mono ttf-fira-sans ttf-font-awesome ttf-hack ttf-hanazono ttf-hannom ttf-ibm-plex ttf-indic-otf ttf-jetbrains-mono ttf-joypixels ttf-junicode ttf-khmer ttf-linux-libertine-g ttf-nerd-fonts-symbols ttf-opensans ttf-proggy-clean ttf-roboto ttf-roboto-mono ttf-sazanami ttf-tibetan-machine xorg-fonts-misc |
This task depends upon
[1] https://www.archlinux.org/packages/extra/any/xorg-font-utils/
See also the discussion thread [1] and another similar feature request [2].
[1] https://lists.archlinux.org/pipermail/arch-dev-public/2020-March/029931.html
[2] https://bugs.archlinux.org/task/59164
[1] https://www.archlinux.org/packages/community/any/ttf-arphic-ukai/files/
However there are things you can do with fonts that don't involved fontconfig and even more than don't involve X! Having these dependencies makes it really cumbersome to create lightweight containers for specific purposes. I don't want my CI tooling that uses a font for something to need xorg or fontconfig and the heft they bring unless I specifically need them for some reason. Having these unnecessary deps dropped across the official repos will also make it easier to convince AUR maintainers to stop including them.
[1] https://lists.archlinux.org/pipermail/arch-dev-public/2020-March/029935.html
Due to lack of objections I've posted to arch-dev-public with my intent to implement this tonight.
extra/bdf-unifont
community/dina-font
community/tamsyn-font
community/terminus-font
community/terminus-font-otb
I have found two more packages that still depend on fontconfig and are missing from the Todo list, because they contain fonts in some uncommon font formats:
- font-bitstream-speedo [1]: fonts use file extension .spd
- terminus-font-otb [2]: fonts use file extension .otb
According to Wikipedia[3], Speedo is "an obsolete scale font format" and support for it was "removed from X in the X11R7.0 release in 2005". In my understanding, the package font-bitstream-speedo is of little use today and could be dropped, but I may be wrong.
[1] https://www.archlinux.org/packages/extra/any/font-bitstream-speedo/
[2] https://www.archlinux.org/packages/community/any/terminus-font-otb/
[3] https://en.wikipedia.org/wiki/Bitstream_Speedo_Fonts
Fixed terminus-font-otb.