This always renders Arial no matter what. I can tell its loading the proper file as when i put a bogus filename it expectedly errors... yet there is no error about \"font not found from loaded files\" so it makes it difficult to debug if i have the name correct, and something else is wrong... or if the name is just wrong.
\nIve tried...
\nVogue, Regular
\nVoge
\nVogue Regular
etc
\nDo I need some extra library installed?
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Yes, I think cairo on mac is using the native macOS font renderer, so you can't load fonts dynamically, you have to install them. It should work on ubuntu though.
","upvoteCount":0,"url":"https://github.com/libvips/ruby-vips/discussions/404#discussioncomment-10733651"}}}-
I'm trying to figure out how to load a font from a path, as this will be running on ubuntu and i dont want to mess with trying to install fonts when I deploy. Id rather use a few fonts in the git repo
This always renders Arial no matter what. I can tell its loading the proper file as when i put a bogus filename it expectedly errors... yet there is no error about "font not found from loaded files" so it makes it difficult to debug if i have the name correct, and something else is wrong... or if the name is just wrong. Ive tried... Vogue, Regular etc Do I need some extra library installed? |
Beta Was this translation helpful? Give feedback.
-
Hello @9mm, It should work (I think?). You can use
So I can use:
There's also |
Beta Was this translation helpful? Give feedback.
Yes, I think cairo on mac is using the native macOS font renderer, so you can't load fonts dynamically, you have to install them. It should work on ubuntu though.