Correct-Syntax / py-oiio

Python OpenImageIO (OIIO)
MIT License
19 stars 1 forks source link

Unable render with personalized font #5

Open VeroniqueHuang opened 2 months ago

VeroniqueHuang commented 2 months ago

While using ImageBufAlgo.render_text() with my own font file, the output show me this error error: OpenImageIO was not compiled with FreeType for font rendering

Can you make FreeType font available in the compiled version ?

Thank you !

Correct-Syntax commented 2 months ago

Hi @VeroniqueHuang, based on https://vcpkg.io/en/package/openimageio (select the features tab), it should be as simple as running the second command outlined in the README of this repo with the vcpkg freetype feature. Then it will compile including freetype.

Untested, but this should work:

./vcpkg install openimageio[pybind11, freetype]:x64-windows.