Skip to content

Commit

Permalink
PdfFontConfigWrapper: Added some missing directives to __APPLE__ and …
Browse files Browse the repository at this point in the history
…__ANDROID__ fallback configurations

In some circumstances a "Fontconfig error: No writable cache directories" message was issued
  • Loading branch information
ceztko committed Mar 11, 2024
1 parent da821bf commit c63e8d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/podofo/main/PdfFontConfigWrapper.cpp
Expand Up @@ -131,6 +131,8 @@ void PdfFontConfigWrapper::createDefaultConfig()
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<dir>/system/fonts</dir>
<dir prefix="xdg">fonts</dir>
<cachedir prefix="xdg">fontconfig</cachedir>
</fontconfig>
)";
#elif __APPLE__
Expand All @@ -140,6 +142,8 @@ void PdfFontConfigWrapper::createDefaultConfig()
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<dir>/System/Library/Fonts</dir>
<dir prefix="xdg">fonts</dir>
<cachedir prefix="xdg">fontconfig</cachedir>
</fontconfig>
)";
#endif
Expand Down

0 comments on commit c63e8d2

Please sign in to comment.