installing a font by using code

  • Thread starter Thread starter Willie jan
  • Start date Start date
W

Willie jan

Hi,
i tried to install a font by using code like:

res = CreateScalableFontResource(0, Fontlst.Item(i), Fontlst.Item(i),
String.Empty)
res = AddFontResource(Fontlst.Item(i))

That works fine when the pc does not reboot,
however after a reboot these added fonts disappear.

Is there a way to keep them installed also after a reboot?
There was a doc saying to find the fonts in the registry under the local
machine\microsoft\software\currentversion\fonts, but under xp this key does
not exist.

Thanks for your help.

Willie.
 
Hi,

Here is an example that installs a barcode font and displays a
sample.

www.onteorasoftware.com/downloads/barcode.zip

Ken
------------------------------
Hi,
i tried to install a font by using code like:

res = CreateScalableFontResource(0, Fontlst.Item(i), Fontlst.Item(i),
String.Empty)
res = AddFontResource(Fontlst.Item(i))

That works fine when the pc does not reboot,
however after a reboot these added fonts disappear.

Is there a way to keep them installed also after a reboot?
There was a doc saying to find the fonts in the registry under the local
machine\microsoft\software\currentversion\fonts, but under xp this key does
not exist.

Thanks for your help.

Willie.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top