### ImageMagick version

ImageMagick 7.1.0-35 Q16-HDRI x86_64 20062

### Operating system

Linux

### Operating system, version and so on

Laravel Vapor

### Description

I am using Imagik to convert SVG images to PNG, but the texts are not being rendered, I am informing the font file using "setfont", I believe that the problem may be due to Laravel Vapor (Serveless),
Which folder does Imagik use for caching? Is it possible to set change at runtime?

Example of generated image:
![image](https://github.com/ImageMagick/ImageMagick/assets/5587864/75f8dd1e-c9fb-42bc-86c2-35afc1db01c4)

The logs show an error:
"Fontconfig error: No writable cache directories"



### Steps to Reproduce

Example code:

```php
$im = new Imagick();
$im->setfont("fonts/Arial.ttf");
$im->readImageBlob($svgFileString);
$im->setImageFormat("png");
return $im->getImageBlob();
``` 

### Images
[test.zip](https://github.com/ImageMagick/ImageMagick/files/11628933/test.zip)


Error rendering font (No writable cache directories)
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : Error rendering font (No writable cache directories)
Issue date:

--- start body ---
### ImageMagick version

ImageMagick 7.1.0-35 Q16-HDRI x86_64 20062

### Operating system

Linux

### Operating system, version and so on

Laravel Vapor

### Description

I am using Imagik to convert SVG images to PNG, but the texts are not being rendered, I am informing the font file using "setfont", I believe that the problem may be due to Laravel Vapor (Serveless),
Which folder does Imagik use for caching? Is it possible to set change at runtime?

Example of generated image:
![image](https://github.com/ImageMagick/ImageMagick/assets/5587864/75f8dd1e-c9fb-42bc-86c2-35afc1db01c4)

The logs show an error:
"Fontconfig error: No writable cache directories"



### Steps to Reproduce

Example code:

```php
$im = new Imagick();
$im->setfont("fonts/Arial.ttf");
$im->readImageBlob($svgFileString);
$im->setImageFormat("png");
return $im->getImageBlob();
``` 

### Images
[test.zip](https://github.com/ImageMagick/ImageMagick/files/11628933/test.zip)


--- end body ---
