Notepad Font Defaults

Does anybody have code that will change the default font and size in
Notepad? If so, please share it. Thanks in advance!

Populating Windows Registry from Ruby hash
http://lazax.com/blog/archives/000093.html

[HKEY_CURRENT_USER\Software\Microsoft\Notepad]
“lfEscapement”=dword:00000000
“lfOrientation”=dword:00000000
“lfWeight”=dword:00000190
“lfItalic”=dword:00000000
“lfUnderline”=dword:00000000
“lfStrikeOut”=dword:00000000
“lfCharSet”=dword:00000000
“lfOutPrecision”=dword:00000003
“lfClipPrecision”=dword:00000002
“lfQuality”=dword:00000001
“lfPitchAndFamily”=dword:00000022
“iPointSize”=dword:00000078
“fWrap”=dword:00000001
“StatusBar”=dword:00000000
“fSaveWindowPositions”=dword:00000000
“lfFaceName”=“Verdana”
“szHeader”=“&f”
“szTrailer”=“Page &p”
“iMarginTop”=dword:000003e8
“iMarginBottom”=dword:000003e8
“iMarginLeft”=dword:000002ee
“iMarginRight”=dword:000002ee
“fMLE_is_broken”=dword:00000000
“iWindowPosX”=dword:00000081
“iWindowPosY”=dword:00000023
“iWindowPosDX”=dword:0000031e
“iWindowPosDY”=dword:00000256

Yannick G. [email protected] wrote: Does anybody have code
that will change the default font and size in
Notepad? If so, please share it. Thanks in advance!

I don’t run Windows but I believe you can change the font color, etc.
from within the Notepad GUI in the View menu. Not sure…

Dan

You can, but I’d like to do it through a program automatically. That way
the
user doesn’t have to do it themself.

Yannick G. wrote:

You can, but I’d like to do it through a program automatically. That way
the user doesn’t have to do it themself.
Are you sure you don’t want to render to HTML and pop up a browser
window? You’ll get much more control over the appearance that way. If
you change the settings for Notepad, you’ll have to change them
system-wide, as far as I know. Your users may not appreciate your doing
that for them.


Alex