Embedding/deploying custom font in .NET app
Posted
by Swingline Rage
on Stack Overflow
See other posts from Stack Overflow
or by Swingline Rage
Published on 2010-06-09T16:27:57Z
Indexed on
2010/06/09
16:32 UTC
Read the original article
Hit count: 353
Is there an official way to distribute (deploy) a specific font with a .NET application?
We have a (public domain) "LED font" that prints numbers with the retro LED instrumentface look. This is a standard True Type or Open Type font like any other except it looks funky.
Obviously for that to work, this font needs to be on the user's machine. But we'd prefer to not force the user to "install our special font into your font folder". We'd prefer to either load a Font object directly from the TTF, or programatically install the font so it's available.
How do applications handle this sort of things? Eg, I notice Adobe XYZ installs various fonts on the system without user intervention. That's what we'd like to do.
EDIT: okay, ideally, we'd prefer not to install the font directly. We don't want our nifty themed LED font showing up in the user's font dropdown in MS Word. We'd prefer to use this font, but restrict its use or appearance to our app. Any way to do this?
Thanks!
© Stack Overflow or respective owner