Click here for important information about

Default font embedment...

November 10, 2010 at 04:58:37
Specs: Windows XP SP3, Intel Pentium 4 3Ghz 2GB RAM

I'm trying to put together an app that can be used on a usb stick, so it needs to be portable in every way. Unfortunately, i've just realized that i'm using a font that not every pc has installed, so i searched for a way to get around this and discovered that i could add a font file to my project and embed the file from the properties menu. Then i used some code to reference the font from the current directory. All works well.

The problem is that i have to assign the font to each control on every form separately which is going to be not only tedious but prone to me missing a control here and there probably!

I need to try and make this new font my default font. The font only installs during runtime as it's not installed on the pc, but that is soon remedied for design purposes. I need everything to use this same embedded font by default at runtime, and i'm not sure how to do it!

I've tried assigning the font to each actual form, but that didn't work. I also tried to find a way to use the settings option (settings tab in the project properties) but that just gives you the usual font dialog box to pick system fonts.

Anyone know how i could do this?



See More: Default font embedment...

November 10, 2010 at 06:12:18
Ok, i've figured that i can set the form to use the font i want, but it will only let the controls i add from now on, use this font and if i change a labels font than there is no way to change it back to use the form font!

I have already created a lot of my app so i dont really want to have to re-add every control and so on as it means pretty much starting again, as there are loads and most are bound to something!

I think the label's properties overrides the default forms properties, but there is no way i know of to revert back!

Any thoughts??


Report •

November 10, 2010 at 06:41:42
Think i have sussed it....

When you highlight a control like a label and change the font in the properties box, you can simply go back and delete the font from the properties font option and it will revert to using the default a clue, the font name will go from bold type to normal.

Hope this helps someone!


Report •
Related Solutions

Ask Question