Is there a way to export text layer images to their original state?

Hello.
I’m going to export all layers of PSD to png.
Other layers work well.
But in the case of the text layer,
It says, “Font cache was not available for : AnimeAce2.0BB” warning.
When I checked the saved image, the font setting disappeared.
I’d like to know if there’s a way to save the text layer in its original state.
The text layer has not been modified at all.
I just loaded the file into PsdImage and tried this.
ImageIO.write(image.toBitmap(), “png”, file)
However, font warnings occurred when image.toBitmap() was running.
I don’t think it’s necessary to deal with font settings in the process of creating images with bitmaps.
If there is a way to export the text layer to the raw image, please share it.

I also tried read-only mode, but I checked that at that case, psdImage.layers is empty array.

@ericaHong

Can you please provide a working sample code along with source file and snapshot of the issue that you are facing. We will be able to proceed further with investigation on our end on provision of requested information.

I solved this problem by chaging order of operation.
At first, I tried to export overall psd file to png first (without read-only mode),
and tried to export each psd layer to png.
And, I realized while processing first job, all of text fonts are changed to default font.
So, I changed to export each psd layer to png first, and export overall psd file to png.
Thanks for your help.

@ericaHong

It’s good to hear that things are resolve on your end. Please share with us if any further help is required from our side.