Link to home
Start Free TrialLog in
Avatar of mr60
mr60

asked on

Install Font

Hello.
How I can write a program by VC++ .NET or C# .NET that be able to install some font.
I want to write this program with .net framework class not MFC.
Thank you.
ASKER CERTIFIED SOLUTION
Avatar of Mikal613
Mikal613
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fullbugg
fullbugg

Just for a contribution:


            Dim lsFontsPath As String = System.Environment.GetFolderPath(System.Environment.SpecialFolder.System)
            lsFontsPath += "\\..\\Fonts"
            lsFontsPath = System.IO.Path.GetFullPath(lsFontsPath)
            Dim lsFullFontPath As String = ""
            lsFullFontPath = lsFontsPath & "\fontfilename.ttf"
            If Dir(lsFullFontPath) = "" Then FileCopy(Application.StartupPath & "\fonts\fontfilename.ttf", lsFullFontPath)

Open in new window

BTW: I am using ClickOnce with VS2005. I added a folder to my solution called "Fonts" then added the fonts into it.