mirror of
git://git.yoctoproject.org/yocto-autobuilder-helper.git
synced 2025-07-19 12:49:02 +02:00
![]() rsvg-convert, which we use to convert SVG images to PDFs/PNGs, would always print out the following error: Fontconfig error: Cannot load default config file: No such file: (null) As a result some SVGs are oddly rendered because it doesn't find the correct fonts. This can be easily fixed by setting and exporting the FONTCONFIG_PATH variable which must point to a directory containing a fonts.conf file. Since we build on multiple distros, we may not always find this file in /etc/fonts (installed there by default on many distros). Additionally, we can also install custom fonts using tlmgr and use them thanks to that file. Add a custom fonts.conf that adds /texlive/texmf-dist/fonts to the list of directories to look for fonts. This files is just based on the original fonts.conf. Also add the nimbus15 package to the list of tlmgr installed packages so that we make sure we always use the same font for rendering images (assuming the SVG files use the "Nimbus Sans L" font). Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
||
---|---|---|
.. | ||
fonts.conf |