<div dir="auto">You can always have a look at <a href="https://github.com/FontManager/master">https://github.com/FontManager/master</a><div dir="auto"><br></div><div dir="auto">There are a few command line switches you can use to disable/enable/install fonts, but it's not really intended to be a CLI tool.</div><div dir="auto"><br></div><div dir="auto">It does allow you to do exactly what you've asked for. You can enable/disable font families by clicking a checkbox. Or you can create collections so that you can enable/disable groups of fonts all at once. It also allows you to specify different directories to use and enable/disable those with a switch. You can install fonts just by dropping them on the font list.</div><div dir="auto"><br></div><div dir="auto"><span style="font-family:sans-serif">In any case, it's far from done and it may not be exactly what you're after anyway </span><span style="font-family:sans-serif">but you can always use it just to see how it generates Fontconfig configuration files in order to add directories or blacklist fonts.</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif">You'll find those in ~/.config/fontconfig/conf.d</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif">It manages fonts stored in the default user folder, at this time ~/.local/share/fonts</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sep 10, 2017 4:30 AM, "Donn Ingle" <<a href="mailto:donn.ingle@gmail.com">donn.ingle@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div>If one uses apps like Inkscape, there are font-choosers (I guess that's my name for them) - dialogues that let you choose a font - which are very cluttered by dozens of  fonts that have nothing to do with one's task at hand.<br><br></div></div><div>For example, in Inkscape on my current machine, I see:</div><div>  mry_KacstQurn</div><div>  ..<br></div><div>  STIXGeneral</div><div>  STIXIntegralsD</div><div>  ..</div><div>  Tlwg Mono</div><div>  ..</div><div>  Umpush</div><div>  ..</div><div>And it goes on and on .. (Libre Office shows all the same fonts.)<br></div><div><br></div><div>As a designer, I'd like to have a filtered view of those fonts. At least! Some way to hide all the system-installed stuff. <span><br></span></div><div><br></div>I presume fontconfig is being used under the hood and that all the many packages in a modern distro are bringing various fonts along as they require. This is fine: each app gets what it needs to work.<br><br></div>Hello list,<br></div><div>The problem is when a human wants to select certain fonts they are overwhelmed by this noise.<br><br></div>For my sins I wrote and (glacially) maintain Fonty Python which is based on the idea of sets of fonts on-demand. It let's users group fonts (from paths on their drive) into named sets which are then installed or removed on-demand.<br><br></div>Nutshell: Fonty links or removes links to fonts paths in "~/.fonts"<br><br></div>This means a person can prepare a little for a job. Install the desired fonts and then start work, say in Inkscape or Blender.<br><br></div>The problem is that with every single font on the entire system listed in the Inkscape font-chooser, it's almost hopeless to find the few that you want to use.<br><br></div>I don't suppose this is a fontconfig problem, per se, but more one for the gui people in GTK-etc-land. <br></div><div><br></div><div>However: Q: Is there some mechanism in fontconfig that could allow me (as a normal user, on the command line) to filter or suppress the population of fonts that applications are going to offer me when they run?</div><div>(I'm picturing some temporary measure that I can reverse when I'm done.)<br></div><div><br></div><div>Q2: How should I proceed with Fonty's basic mechanism? i.e. Should I continue to use "~/.fonts", or switch to "~/.local/share/fonts" or what?<br></div><div><br></div>Apologies if these are dumb questions, or OT, or I've asked them before. My memory is not reliable. I mean no disrespect. <br><br></div>Thanks,<br></div>/d<br><a href="https://savannah.nongnu.org/projects/fontypython/" target="_blank">https://savannah.nongnu.org/<wbr>projects/fontypython/</a><br><br></div>(Fonty is very old now and more than a little creaky. I am working on a new release, but I am also old and creaky.)<br><div><div><div><div><div><div><div><div><div><div><div><div><br><br></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br>______________________________<wbr>_________________<br>
Fontconfig mailing list<br>
<a href="mailto:Fontconfig@lists.freedesktop.org">Fontconfig@lists.freedesktop.<wbr>org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/fontconfig" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/fontconfig</a><br>
<br></blockquote></div></div>