GNU bug report logs -
#57963
[PATCH 0/1] Support user's fontconfig.
Previous Next
Full log
Message #59 received at 57963 <at> debbugs.gnu.org (full text, mbox):
Am Montag, dem 26.09.2022 um 10:43 +0900 schrieb Taiju HIGASHI:
> I have designed a configuration interface with a typical font
> configuration pattern. (it implemented yet.)
>
> --8<---------------cut here---------------start------------->8---
> (service home-fontconfig-service-type
> (home-fontconfig-configuration
> (font-directories
> (list "~/fonts"))
> (prefered-default-font
> (sans-serif "Noto Sans CJK JP")
> (serif "Noto Serif CJK JP")
> (monospace "PlemolJP Console"))
> (extra-config ; Also accepts lists of XML strings.
> `((match (@ (target font))
> (edit (@ (mode assign)
> (name antialias))
> (bool true)))))))
> --8<---------------cut here---------------end--------------->8---
>
> This is assumed to be serialized below. (actually, it not pretty-
> printed.)
>
> --8<---------------cut here---------------start------------->8---
> <?xml version='1.0'?>
> <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
> <fontconfig>
> <dir>~/.guix-home/profile/share/fonts</dir>
> <dir>~/fonts</dir>
> <alias>
> <family>sans-serif</family>
> <prefer>
> <family>Noto Sans CJK JP</family>
> </prefer>
> </alias>
> <alias>
> <family>serif</family>
> <prefer>
> <family>Noto Serif CJK JP</family>
> </prefer>
> </alias>
> <alias>
> <family>monospace</family>
> <prefer>
> <family>PlemolJP Console</family>
> </prefer>
> </alias>
> <match target="font">
> <edit mode="assign" name="antialias">
> <bool>true</bool>
> </edit>
> </match>
> </fontconfig>
> --8<---------------cut here---------------end--------------->8---
LGTM
This bug report was last modified 215 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.