View Full Version : Installing Fonts
NewsArchive
09-16-2009, 01:49 AM
If I want to have a menu option in my application that installs some new
fonts, what code do I write to install the fonts? Do I just copy my .ttf
files into the Windows\Fonts directory, or is there more to it than that?
Thanks
Mark Knowles
NewsArchive
09-16-2009, 01:49 AM
Mark,
Windows only registers the fonts if you copy the font via the Explorer. If
you do it from an application, you have to register the font in the
registry, then add the font resource from the specified file to the system
font table and broadcast a WM_FONTCHANGE message so applications know that
the font is available.
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
SetupBuilder is Windows installation -- "point. click. ship"
-- Official Comodo Code Signing and SSL Certificate Partner
NewsArchive
09-16-2009, 01:49 AM
BTW, and of course, you need administrator execution level privileges to
handle this (in an UAC-aware operating system). But your "asInvoker"
application should never run elevated by default, so you should handle this
from another program.
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
SetupBuilder is Windows installation -- "point. click. ship"
-- Official Comodo Code Signing and SSL Certificate Partner
NewsArchive
09-16-2009, 01:50 AM
Friedrich,
> so you should handle this from another program.
....such as an SB7 install.
You need to finish those sentences a bit better, Friedrich!<g>
--
Lee White
Enroll Today at http://CWaddons.com
Reports....: http://www.cwaddons.com/products/rpm/
Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Faxing.....: http://www.cwaddons.com/products/afe/
NewsArchive
09-16-2009, 01:50 AM
Some things go without saying<g>
Jeff Slarve
NewsArchive
09-16-2009, 01:51 AM
Wow, nothing like a little cross promotion!
Actually, my install software is quite old and that's the reason for my
original post. Rather than upgrading that package, I think I'll look into
Setup Builder 7
(Did I do that right?)
Mark Knowles
NewsArchive
09-16-2009, 01:51 AM
Mark,
> (Did I do that right?)
Absolutely!<g>
--
Lee White
Enroll Today at http://CWaddons.com
Reports....: http://www.cwaddons.com/products/rpm/
Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Faxing.....: http://www.cwaddons.com/products/afe/
NewsArchive
09-16-2009, 01:52 AM
If you buy Setup Builder, all of your wildest dreams will come
true!<g>
Jeff Slarve
NewsArchive
09-16-2009, 01:52 AM
Jeff,
> If you buy Setup Builder, all of your wildest dreams will come
> true!<g>
Worked for me!<g>
--
Lee White
Enroll Today at http://CWaddons.com
Reports....: http://www.cwaddons.com/products/rpm/
Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Faxing.....: http://www.cwaddons.com/products/afe/
NewsArchive
09-16-2009, 01:53 AM
> If you buy Setup Builder, all of your wildest dreams will come
> true!<g>
Plus the guy who buys SetupBuilder ALWAYS gets the girl in the movies...
Those other installer user guys are just losers...
:-)
Charles
--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.clarionproseries.com - "Get ProPath, make your Clarion programs ready
for Windows 7 and Vista!"
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------
NewsArchive
09-17-2009, 02:37 AM
>
> You need to finish those sentences a bit better, Friedrich!<g>
>
<VBG> ;-)
Friedrich
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
SetupBuilder is Windows installation -- "point. click. ship"
-- Official Comodo Code Signing and SSL Certificate Partner
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.