#74582 - 2003-04-18 07:56 AM
Re: Adding a Font
|
MightyR1
MM club member
   
Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
|
On Wintendos I do this to update fonts, which works fine:
code:
$KeyFonts = "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Fonts" $Fontdir = "i:\arr.alg\sysbeh\install\fonts\" ; Systeembeheerder kan dit aanpassen aan zijn netwerkomgeving $Font1 = $Fontdir + "beatrix.*" $Font2 = $Fontdir + "bert*.*" $Font3 = $Fontdir + "uto*.*"
;########## FONTS ####################################################################################################
; Variablen vaststellen ; Fonts voor de huisstijl uit de registry van Windows verwijderen $RC = DelValue($KeyFonts, "Beatrix (TrueType)") $RC = DelValue($KeyFonts, "Berthold Imago Light (TrueType)") $RC = DelValue($KeyFonts, "Berthold Imago Light Italic (TrueType)") $RC = DelValue($KeyFonts, "Berthold Imago Medium (TrueType)") $RC = DelValue($KeyFonts, "Utopia (TrueType)") $RC = DelValue($KeyFonts, "Utopia Bold (TrueType)") $RC = DelValue($KeyFonts, "Utopia Italic (TrueType)") $RC = DelValue($KeyFonts, "Utopia SB Semi Bold (TrueType)")
$RC = SetFileAttr("c:\windows\fonts\beatrix.ttf",32) $RC = SetFileAttr("c:\windows\fonts\bertli.ttf",32) $RC = SetFileAttr("c:\windows\fonts\bertliit.ttf",32) $RC = SetFileAttr("c:\windows\fonts\bertme.ttf",32) $RC = SetFileAttr("c:\windows\fonts\utopbo.ttf",32) $RC = SetFileAttr("c:\windows\fonts\utopit.ttf",32) $RC = SetFileAttr("c:\windows\fonts\utopme.ttf",32) $RC = SetFileAttr("c:\windows\fonts\utopsbo.ttf",32) Del "%windir%\fonts\beatrix.*" Del "%windir%\fonts\bert*.*" Del "%windir%\fonts\uto*.*"
Copy $Font1 "%windir%\fonts\" /h Copy $Font2 "%windir%\fonts\" /h Copy $Font3 "%windir%\fonts\" /h
$RC = WriteValue($KeyFonts, "Beatrix (TrueType)", "beatrix.ttf", "Reg_SZ") $RC = WriteValue($KeyFonts, "Berthold Imago Light (TrueType)", "bertli.ttf", "Reg_SZ") $RC = WriteValue($KeyFonts, "Berthold Imago Light Italic (TrueType)", "bertme.ttf", "Reg_SZ") $RC = WriteValue($KeyFonts, "Berthold Imago Medium (TrueType)", "bertliit.ttf", "Reg_SZ") $RC = WriteValue($KeyFonts, "Utopia (TrueType)", "utopme_E.ttf", "Reg_SZ") $RC = WriteValue($KeyFonts, "Utopia Bold (TrueType)", "utopbo_E.ttf", "Reg_SZ") $RC = WriteValue($KeyFonts, "Utopia Italic (TrueType)", "utopit_E.ttf", "Reg_SZ") $RC = WriteValue($KeyFonts, "Utopia SB Semi Bold (TrueType)", "utopsboE.ttf", "Reg_SZ") $RC = WriteValue($KeyFonts, "Utopia Expert (TrueType)", "Utoexp_E.ttf", "Reg_SZ")
_________________________
Greetz, Patrick Rutten
- We'll either find a way or make one... - Knowledge is power; knowing how to find it is more powerful... - Problems don't exist; they are challenges...
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 657 anonymous users online.
|
|
|