Julie Iaccarino
Julie Iaccarino

Reputation: 31

Custom Font Monodevelop

How would I use a custom ttf in a gtk2.12 application in monodevelop? I've currently got the font inside the project as an embedded resource, and I'm not sure how to turn it into a Pango.FontDescription without installing it on the host system.

I'm trying to code with cross-platform compatibility, as well.

Upvotes: 3

Views: 1269

Answers (1)

ptomato
ptomato

Reputation: 57854

Good question. I don't think it's possible as you describe. But you could install it locally when you run the program for the first time. On a Unix system you can install fonts into ~/.fonts and they will be available to Pango, and I expect that Pango looks for something similar on Windows.

Upvotes: 1

Related Questions