MolotovCherry / kmagick

Kotlin ImageMagick bindings to the MagickWand API
MIT License
40 stars 5 forks source link

UnableToReadFont #18

Closed MansonLuo closed 8 months ago

MansonLuo commented 11 months ago
          Just want to update you. The reason it fails is because the font isn't available. (The Exception message I showed above will tell you that as well)

Originally posted by @MolotovCherry in https://github.com/MolotovCherry/kmagick/issues/1#issuecomment-1067941160

MansonLuo commented 11 months ago

Try Candice font, still cannot read font

MolotovCherry commented 11 months ago

Have you checked the exceptions? Or do you get another error? What message is shown?

It is likely that this is produced internally by imagemagick itself and there's nothing the library can do about it (this is only a wrapper for imagemagick's api)

MansonLuo commented 11 months ago

I use method you provided that get exception from MagicWand. I use kmagic in android kotlin, but can't read font, is there a way to find font in android

MolotovCherry commented 11 months ago

I am uncertain since imagemagick itself is throwing the error. But a good start would be to see how imagemagick itself finds fonts.

If you do find out how to set up a font in Android to be accessible to imagemagick, let me know and I can update the FAQ or something 😄

MansonLuo commented 11 months ago

I'm glad to do that 🙂