1. Auto-Installing Fonts
- Posted by "Cuny, David at DSS" <David.Cuny at DSS.CA.GOV> Feb 17, 2000
- 465 views
Does anyone know how to programatically install fonts? That is, what's the Win32 API call to install a font onto a system? Thanks! -- David Cuny
2. Re: Auto-Installing Fonts
- Posted by Bernie Ryan <LockCityData at CS.COM> Feb 17, 2000
- 464 views
David: Do you mean BOOL ChooseFont( LPCHOOSEFONT lpcf ) Bernie
3. Re: Auto-Installing Fonts
- Posted by "Cuny, David at DSS" <David.Cuny at DSS.CA.GOV> Feb 17, 2000
- 465 views
Bernie Ryan wrote: > Do you mean BOOL ChooseFont( LPCHOOSEFONT lpcf ) No, I've already got a font chooser dialog in Win32Lib (thanks to Judith). I'm writing a music notation program that uses TrueType font. If the user hasn't got it installed on their system, the output will look rather silly. I'm looking for a way to automatically install the font. I'm not sure if simply moving the font to \Windows\Fonts will do the trick, and wondered if there was a routine for automatically installing the font on the system. Thanks! -- David Cuny
4. Re: Auto-Installing Fonts
- Posted by Brian Jackson <bjackson at 2FARGON.COM> Feb 17, 2000
- 500 views
On Thu, 17 Feb 2000 10:15:07 -0800, Cuny, David at DSS <David.Cuny at DSS.CA.GOV> wrote: >Does anyone know how to programatically install fonts? That is, what's the >Win32 API call to install a font onto a system? > >Thanks! > >-- David Cuny I believe it is a matter of 1) copying the font to the %WINDIR%\Fonts directory, and 2) writing a registry key. The key should be: the Key Name is: 'font name (True Type)' where you include '(True Type)' only if this is a true-type font and the value is the file name with no drive or path information. Let me know if this does the trick, since I haven't actually tested it myself. Good Luck, Brian