Skip to content
\n

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.

\n

Ive tried...

\n

Vogue, Regular
\nVoge
\nVogue Regular

\n

etc

\n

Do 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"}}}

How to load custom font? #404

Answered by jcupitt
9mm asked this question in Q&A
Sep 23, 2024 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@jcupitt
Comment options

@9mm
Comment options

@jcupitt
Comment options

@jcupitt
Comment options

Answer selected by 9mm
@9mm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants