Brigand
2011-12-08 14:53:21 UTC
So I want to include a custom font with a program I am working on in
VB6. The program will simply be distributed as an executable in a
folder of the resources it uses - I really want to avoid forcing the
user to install the code.
So I want to have a form use a custom font that I include in the
folder. How do I do this at runtime?
I tried
Set frmMain.Font.Name = App.path & "\resources\customfont.ttf"
and other various permutations, with no luck. The only way I can get
it to work is to actually install the font in question on the users
machine, which is simply an extra level of unnecessary burden.
Any advice? Is it even possible to point to a custom font at runtime
and use it?
Thanks for you help!!
VB6. The program will simply be distributed as an executable in a
folder of the resources it uses - I really want to avoid forcing the
user to install the code.
So I want to have a form use a custom font that I include in the
folder. How do I do this at runtime?
I tried
Set frmMain.Font.Name = App.path & "\resources\customfont.ttf"
and other various permutations, with no luck. The only way I can get
it to work is to actually install the font in question on the users
machine, which is simply an extra level of unnecessary burden.
Any advice? Is it even possible to point to a custom font at runtime
and use it?
Thanks for you help!!