I am trying to install a barcode font. I copy the font to Fonts Directory then use AddFontResource(). All this works except I have to exit the program and then launch it again to be able to use the Barcode. I hope someone can take a look at this and tell me where I am going wrong. Any help is appreciated.
EX:
string cFont = GetPath()+(@"\3OF9.TTF");
const int WM_FONT = 0x001D;
IntPtr HW_BROAD = (IntPtr) 0xFFFF;
SendMessage(HW_BROAD,WM_FONT,0,0);
AddFontResource(cFont);
SendMessage(HW_BROAD,WM_FONT,0,0);
EX:
string cFont = GetPath()+(@"\3OF9.TTF");
const int WM_FONT = 0x001D;
IntPtr HW_BROAD = (IntPtr) 0xFFFF;
SendMessage(HW_BROAD,WM_FONT,0,0);
AddFontResource(cFont);
SendMessage(HW_BROAD,WM_FONT,0,0);