🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #232513

Re: How to install a font onto Windows Vista.

#232513
From: Indi
Date: Wed, 15 Apr 2009 04:12
53 lines
3296 bytes
On 2009-04-15, Jeff▲Relf <Jeff_Relf@Seattle.inValid> wrote:
> Speaking of how slrn should install the DejaVu Sans Mono font ..
>
> Read_Me.TXT in www.JeffRelf.F-M.FM/X.ZIP now says:
> “ X.EXE installs the DejaVu Sans Mono font, should you not have it;
>   otherwise, it won't change any system ( e.g. registry ) settings.
>   No installer is needed.  The DejaVu font is nice, but not required. ”.
>   
> From “ www.JeffRelf.F-M.FM/X.CPP ”, my font installer looks like:
>
>   insFont( L"DejaVuSansMono.TTF", L"DejaVu Sans Mono (TrueType)" );
>       ....
> insFont( LnP fileName, LnP regName ) {
>   wchar_t srcNym[400], desNym[400]; LnP P = srcNym ; FILE  *fp;
>   
>   P += GetCurrentDirectory( 300, P ); Str( P, L"\\%s", fileName );
>   fp = fopen( srcNym, L"rb" );
>   if ( ! fp )
>     //  No font to install, do nothing.
>     return ;  fclose( fp );
>
>   Str( desNym, L"%s\\Fonts\\%s", _wgetenv(L"WinDir"), fileName );
>   fp = fopen( desNym, L"rb" );
>   if ( fp ) {
>     //  The font is already installed, do nothing.
>     fclose( fp ); return ; }
>
>   AddFontResource( srcNym ), CopyFile( srcNym, desNym, 0 );
>
>   //  Update the Registry, so the font is there after a reBoot.
>   HKEY Key, Key_98 ;
>   RegOpenKeyExW( HKEY_LOCAL_MACHINE
>   , L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts"
>   , 0, KEY_ALL_ACCESS, & Key );
>   RegOpenKeyExW( HKEY_LOCAL_MACHINE
>   , L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Fonts"
>   , 0, KEY_ALL_ACCESS, & Key_98 );
>
>   _LnP  F = _LnP( fileName );
>   int Sz = strSz( fileName ) + 1 ;  Sz *= szChr ;
>   RegSetValueEx( Key, regName, 0, REG_SZ, F, Sz );
>   RegSetValueEx( Key_98, regName, 0, REG_SZ, F, Sz );  }

Wow, what a PITA! I like OS X's way much better, just download and 
drag the desired font to the /Library/Fonts/ directory (or, type "mv
/path/to/desired_font/ ~Library/Fonts/name_of_font"). 
*Done*.
Never ceases to amaze me, what wind'ohs users put up with...
Reboot to install a font, sheesh!

Cheers,
-- 
indi
Technical Details
Message-ID: <slrnguanll.79p.indi@16x108.local>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!news.astraweb.com!border1.newsrouter.astraweb.com!not-for-mail
References: <b12daf2e-e90f-4f2c-9ee5-6f759c65ae74@q9g2000yqc.googlegroups.com> <20090407151408@usenet.piggo.com> <20090407152110@usenet.piggo.com> <20090414201944.659@skamandros.andrews-corner.org> <Jeff_Relf@Seattle.2009_Apr.14|1.24pm|d> <20090415085929.651@skamandros.andrews-corner.org> <Jeff_Relf@Seattle.2009_Apr.14|7.40pm|e>

Show Full Headers
Complete Article Headers
Message-ID: <slrnguanll.79p.indi@16x108.local>
Subject: Re: How to install a font onto Windows Vista.
Date: Wed, 15 Apr 2009 04:12:37 +0000
From: Indi <indi@16x108.local>
References: <b12daf2e-e90f-4f2c-9ee5-6f759c65ae74@q9g2000yqc.googlegroups.com> <20090407151408@usenet.piggo.com> <20090407152110@usenet.piggo.com> <20090414201944.659@skamandros.andrews-corner.org> <Jeff_Relf@Seattle.2009_Apr.14|1.24pm|d> <20090415085929.651@skamandros.andrews-corner.org> <Jeff_Relf@Seattle.2009_Apr.14|7.40pm|e>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!news.astraweb.com!border1.newsrouter.astraweb.com!not-for-mail
Newsgroups: news.software.readers
Organization: the pond
Reply-To: indi@127.0.0.1
User-Agent: slrn/pre1.0.0-2 (Darwin)
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 53
NNTP-Posting-Host: 80903a2a.news.astraweb.com
X-Trace: DXC=519<0BW:cRFWe7Bc]TQV_NL?0kYOcDh@J3^AP^ioBC;
 @GQ>Xfk4N09ER6YRKDLnFeCWl3L2dEhofGHXdeK<EHN@F