# Notepad Font Defaults

**URL:** <https://www.ruby-forum.com/t/notepad-font-defaults/87586>\
**Category:** Ruby\
**Created:** [March 4, 2007, 3:11am UTC](https://www.ruby-forum.com/t/notepad-font-defaults/87586 "2007-03-04T03:11:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbazzarrakk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Post date:** [March 4, 2007, 3:11am UTC](https://www.ruby-forum.com/t/notepad-font-defaults/87586/1 "2007-03-04T03:11:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bbazzarrakk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Post date:** [March 4, 2007, 4:32am UTC](https://www.ruby-forum.com/t/notepad-font-defaults/87586/2 "2007-03-04T04:32:23Z")

</div>

Populating Windows Registry from Ruby hash  
[http://lazax.com/blog/archives/000093.html](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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote: Does anybody have code  
that will change the default font and size in  
Notepad? If so, please share it. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![bbazzarrakk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Post date:** [March 4, 2007, 4:44am UTC](https://www.ruby-forum.com/t/notepad-font-defaults/87586/3 "2007-03-04T04:44:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bbazzarrakk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Post date:** [March 4, 2007, 4:45am UTC](https://www.ruby-forum.com/t/notepad-font-defaults/87586/4 "2007-03-04T04:45:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bbazzarrakk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Post date:** [March 4, 2007, 12:32pm UTC](https://www.ruby-forum.com/t/notepad-font-defaults/87586/5 "2007-03-04T12:32:49Z")

</div>

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
