Re: Rejecting and accepting fonts

Donn Ingle <[email protected]>
Newsgroups gmane.comp.fonts.fontconfig
Message-ID <CAHKKYP4AsAfe56TyV+nif3s0bU7oWWMmgKYir210i9zoeDOeEQ@mail.gmail.com>
On 15 November 2017 at 12:48, Akira TAGOH <[email protected]> wrote:

> Are you asking if there are any way to do something in XML instead of "ln
-s"?

Yes. Just in case there's a better (canonical) way to reject and allow
fonts.

> Here is to allow only /usr/share/fonts/dejavu/DejaVuSans.ttf and
> reject all of fonts under /usr/share/fonts.
>
> <fontconfig>
>   <selectfont>
>     <rejectfont><glob>/usr/share/fonts/*</glob></rejectfont>
>     <acceptfont>
>       <glob>/usr/share/fonts/dejavu</glob>
>       <glob>/usr/share/fonts/dejavu/DejaVuSans.ttf</glob>
>     </acceptfont>
>   </selectfont>
> </fontconfig>
>
> Adding a directory too is the trick. fontconfig checks a directory
> first then filenames in it so just adding a filename without dir
> fails.

Hey,
 thanks for your response.

It's not working on my end, which is surely my fault!

I note that my path is: /usr/share/fonts/truetype/dejavu/ but even
adjusting for that, there is no appearance of DejaVuSans in fc-list.

I tried various paths like:
/usr/share/fonts/truetype/dejavu/*
/usr/share/fonts/truetype/
And various slash-no-slash on the ends.

None of it works. I see only the fonts in my user fonts directory. It's as
if that rejectfonts glob is too powerful somehow!

/d

_______________________________________________
Fontconfig mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/fontconfig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.