Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refresh Fonts Folder

Status
Not open for further replies.

selimsl

Programmer
Aug 15, 2005
62
TR
Hi

For a project I am working on,I need use a specific font file.I copied this font file to windows fonts folder using this code.

Code:
FSys.CopyFile App.Path & "\FUTRFW.TTF", "C:\WINDOWS\Fonts\", False

But when I open my project I see my text is on default font, not on the font I copied.
When I open Fonts folder once,font of text in my project turn into font that I loaded.
I mean I have to open and close Fonts folder once, using code.
Have can I accomplish this job?

Thanks in advice
 
I do this
Public Declare Function AddFontResource Lib "gdi32" Alias "AddFontResourceA" (ByVal lpFileName As String) As Long

like

L = AddFontResource(cPath)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top