We have many fonts in windows that are installed for all users. We need those for Adobe products, etc. So there are several hundred fonts installed. Inkscape sees the windows font list which is great except we only use about 20 fonts for designs.
The problem is that because inkscape shows all windows fonts, it takes a long time to scroll the list and select from the few fonts we might want in a design. Inkscape appears to allow a user defined font library to be assigned which is great. Is there a way to NOT include the total windows font list? That would be super helpful.
I looked at the GIT case threads you mentioned. The ability to hide fonts (toggle) and / or create a favorites list at the top would be outstanding and right on target! Is there any way this is actively being addressed and would be available in a near term update?
I looked at the fonts.conf file as you outined. The notes at the beginning of the file indicate that this file is updates and replaced everytime the fontconfig file updates and or opens. So are you suggesting 1) editing the font cache directory list in this file, or 2) editing the font directory list in this file, or 3) editing the local.conf file which is referenced in the notes of this file?
<dir prefix="xdg">fonts</dir> <!-- the following element will be removed in the future --> <dir>~/.fonts</dir>
Here is what the file looked like after the second edit commenting out the user directory. This removed all but 5 system fonts.
<!-- Font directory list -->
<!-- dir>WINDOWSFONTDIR</dir --> <dir>~/AppData/Local/Microsoft/Windows/Fonts</dir> <!-- dir>WINDOWSUSERFONTDIR</dir --> <dir prefix="xdg">fonts</dir> <!-- the following element will be removed in the future --> <dir>~/.fonts</dir>
Now the question is - how do I add back the fonts we want but not limit the windowsuserfonts directory for other applications? Do I need to create a new custom fonts directory for just the fonts we want and then add that path to the "Preferences > additional font paths section"? Then we add the additional fonts we want into that library directory?
The Windows user font directory is listed twice by default (I have no idea why), so your second edit should not make any difference at all. Inkscape will continue searching your user font directory.
If you disable both system fonts and user fonts, you may find that Inkscape will crash (when adding text) if it can't find at least one font in one of the remaining locations listed.
Tip: Deleting the lines you don't need looks nicer. ~ is the path to your home folder.
We have many fonts in windows that are installed for all users. We need those for Adobe products, etc. So there are several hundred fonts installed. Inkscape sees the windows font list which is great except we only use about 20 fonts for designs.
The problem is that because inkscape shows all windows fonts, it takes a long time to scroll the list and select from the few fonts we might want in a design. Inkscape appears to allow a user defined font library to be assigned which is great. Is there a way to NOT include the total windows font list? That would be super helpful.
Your thoughts greatly appreciated!
Todd
Hi
Think this is discussed in feature request / issue on Gitlab here:
https://gitlab.com/inkscape/inbox/-/issues/2979
One way is to manually edit the font directory list in \etc\fonts\fonts.conf found in the Inkscape install folder.
Mendy,
I looked at the GIT case threads you mentioned. The ability to hide fonts (toggle) and / or create a favorites list at the top would be outstanding and right on target! Is there any way this is actively being addressed and would be available in a near term update?
Thanks,
Todd
Aero,
I looked at the fonts.conf file as you outined. The notes at the beginning of the file indicate that this file is updates and replaced everytime the fontconfig file updates and or opens. So are you suggesting 1) editing the font cache directory list in this file, or 2) editing the font directory list in this file, or 3) editing the local.conf file which is referenced in the notes of this file?
Thanks for the help!
Todd
2) editing the font directory list in this file
Aero,
I edited the line to show as follows;
<! -- dir>WINDOWSFONTDIR</dir -->
First off - the changes did stay permanent despite the notes saying it would be overwritten.
Unfortunately the full list of fonts still shows in inkscape after restarting. What am I missing?
Todd
<!-- <dir>WINDOWSFONTDIR</dir> -->
Works here in Inkscape 1.2.1 (9c6d41e410, 2022-07-14), Windows 11.
Did you install the same fonts to both locations maybe?
WINDOWSUSERFONTDIR (install)
WINDOWSFONTDIR (install for all users)
Aero,
When we install new fonts using the windows installer - we install them for all users.
Here is what the directory section looked like after the first edit - this did not eliinate all of the fonts.
<!-- Font directory list -->
<! -- dir>WINDOWSFONTDIR</dir -->
<dir>~/AppData/Local/Microsoft/Windows/Fonts</dir> <dir>WINDOWSUSERFONTDIR</dir>
<dir prefix="xdg">fonts</dir>
<!-- the following element will be removed in the future -->
<dir>~/.fonts</dir>
Here is what the file looked like after the second edit commenting out the user directory. This removed all but 5 system fonts.
<!-- Font directory list -->
<!-- dir>WINDOWSFONTDIR</dir -->
<dir>~/AppData/Local/Microsoft/Windows/Fonts</dir>
<!-- dir>WINDOWSUSERFONTDIR</dir -->
<dir prefix="xdg">fonts</dir>
<!-- the following element will be removed in the future -->
<dir>~/.fonts</dir>
Now the question is - how do I add back the fonts we want but not limit the windowsuserfonts directory for other applications? Do I need to create a new custom fonts directory for just the fonts we want and then add that path to the "Preferences > additional font paths section"? Then we add the additional fonts we want into that library directory?
Todd
The Windows user font directory is listed twice by default (I have no idea why), so your second edit should not make any difference at all. Inkscape will continue searching your user font directory.
If you disable both system fonts and user fonts, you may find that Inkscape will crash (when adding text) if it can't find at least one font in one of the remaining locations listed.
Tip: Deleting the lines you don't need looks nicer. ~ is the path to your home folder.
Yeah, I agreed with you. And thanks to Aero for tips :)