1. Auto-Installing Fonts

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

new topic     » topic index » view message » categorize

2. Re: Auto-Installing Fonts

David:
   Do you mean BOOL ChooseFont( LPCHOOSEFONT lpcf )

Bernie

new topic     » goto parent     » topic index » view message » categorize

3. Re: Auto-Installing Fonts

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

new topic     » goto parent     » topic index » view message » categorize

4. Re: Auto-Installing Fonts

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu