Am 23.10.2017 um 15:19 schrieb Tavmjong Bah:
Eduard:
You've just added code to handle custom font directories in
Inkscape. Is it possible to handle adding just specified font
files?
Yes, that would be "FcConfigAppFontAddFile
"
[1].
Code could be almost identical to what I implemented in "font_factory::AddFontsDir",
except for taking a filename as input instead of a directory name.
One common downside: This obviously only works for pango's
freetype/fontconfig backend and not pango's other (native) backends.
Regards,
Eduard
[1]
https://www.freedesktop.org/software/fontconfig/fontconfig-devel/fcconfigappfontaddfile.html