NOTEPAD.EXE - change the default font size?

M

Mad Scientist Jr

You can change the default font FACE like this:

http://www.jsifaq.com/SF/Tips/Tip.aspx?id=10096

but I don't see any registry entries for font size.

The default size is 10 pts, but I'd like to make it 8.

There is a registry key iPointSize, but it is 100 (decimal), so it
doesn't seem to be for font size.

Any ideas?

ps if anyone knows how to open notepad from a vbscript and specify the
window position & size, i could use that too
 
S

Sam

From the website example, the size is indicated by

iPointSize REG_DWORD 0x6e

Open the key and change it to "decimal" if not already selected

Whatever size you want you add that along with a zero. For 9pts it would be
90 so 10pts is 100, 12 = 120 etc

I looked out of courisity rather than knowledge so I am not sure if this
will stay as the "default". Perhaps someone will step in if I'm wrong.

Sam
 
M

Mad Scientist Jr

Hey that worked, thanks a lot.

From the website example, the size is indicated by

iPointSize REG_DWORD 0x6e

Open the key and change it to "decimal" if not already selected

Whatever size you want you add that along with a zero. For 9pts it would be
90 so 10pts is 100, 12 = 120 etc

I looked out of courisity rather than knowledge so I am not sure if this
will stay as the "default". Perhaps someone will step in if I'm wrong.

Sam
 
S

Sam

Glad to hear it. We both learned something.


| Hey that worked, thanks a lot.
|
|
| Sam wrote:
| > From the website example, the size is indicated by
| >
| > iPointSize REG_DWORD 0x6e
| >
| > Open the key and change it to "decimal" if not already selected
| >
| > Whatever size you want you add that along with a zero. For 9pts
it would be
| > 90 so 10pts is 100, 12 = 120 etc
| >
| > I looked out of courisity rather than knowledge so I am not
sure if this
| > will stay as the "default". Perhaps someone will step in if I'm
wrong.
| >
| > Sam
| >
| >
| > | > > You can change the default font FACE like this:
| > >
| > > http://www.jsifaq.com/SF/Tips/Tip.aspx?id=10096
| > >
| > > but I don't see any registry entries for font size.
| > >
| > > The default size is 10 pts, but I'd like to make it 8.
| > >
| > > There is a registry key iPointSize, but it is 100 (decimal),
so it
| > > doesn't seem to be for font size.
| > >
| > > Any ideas?
| > >
| > > ps if anyone knows how to open notepad from a vbscript and
specify the
| > > window position & size, i could use that too
| > >
|
 
M

Mad Scientist Jr

True that.

PS Now if I could just figure out how to open notepad as a shell
application from VBA being able to specify the window size & location
and file to open I'd be set : )
 
M

Mad Scientist Jr

Maybe you could modify the right Notepad registry keys right before
opening it with shell... It looks like it would be iWindowPosDX,
iWindowPosDY, iWindowPosX, iWindowPosY but which are for position and
are any for size? Anyone?

All the keys are below... There are some weird ones- what is
lfOrientation? Does anyone know what all these are for?

\HKEY_CURRENT_USER\Software\Microsoft\Notepad

Name Type Data
---- ---- ----
(Default) REG_SZ (value not set)
fMLE_is_broken REG_DWORD 0
fSaveWindowPositions REG_DWORD 0
fWrap REG_DWORD 0
fMarginBottom REG_DWORD 1000
fMarginLeft REG_DWORD 750
fMarginRight REG_DWORD 750
fMarginTop REG_DWORD 1000
iPointSize REG_DWORD 80
iWindowPosDX REG_DWORD 701
iWindowPosDY REG_DWORD 854
iWindowPosX REG_DWORD 4294965897
iWindowPosY REG_DWORD 60
lfCharSet REG_DWORD 0
lfClipPrecision REG_DWORD 2
lfEscapement REG_DWORD 0
lfFaceName REG_SZ Courier New
lfItalic REG_DWORD 0
lfOrientation REG_DWORD 0
lfOutPrecision REG_DWORD 3
lfPitchAndFamily REG_DWORD 49
lfQuality REG_DWORD 1
lfStrikeOut REG_DWORD 0
lfUnderline REG_DWORD 0
lfWeight REG_DWORD 400
StatusBar REG_DWORD 0
szHeader REG_SZ &f
szTrailer REG_SZ Page &p
 
S

Sam

Sorry, I can't help you this time because I replaced Notepad with
Metapad. I was able to help last time because I had a working copy
in win98 and the point size reg key is the same for both OS's. Not
the case for this round.

You could test it yourself. Export the whole "Notepad" key so you
have a backup. Open one of the keys your wondering about and make a
change. Hit "F5" key to refresh the registry. (F5 is the same as
rebooting) Open Notepad and look for what's different. Close it out
and try something else. When you're done tinkering you can import
your backup. Don't worry about crashing your OS because you can't
if you're only working within Notepad. This way, you might be able
to figure out what you want.


| Maybe you could modify the right Notepad registry keys right
before
| opening it with shell... It looks like it would be iWindowPosDX,
| iWindowPosDY, iWindowPosX, iWindowPosY but which are for position
and
| are any for size? Anyone?
|
| All the keys are below... There are some weird ones- what is
| lfOrientation? Does anyone know what all these are for?
|
| \HKEY_CURRENT_USER\Software\Microsoft\Notepad
|
| Name Type Data
| ---- ---- ----
| (Default) REG_SZ (value not set)
| fMLE_is_broken REG_DWORD 0
| fSaveWindowPositions REG_DWORD 0
| fWrap REG_DWORD 0
| fMarginBottom REG_DWORD 1000
| fMarginLeft REG_DWORD 750
| fMarginRight REG_DWORD 750
| fMarginTop REG_DWORD 1000
| iPointSize REG_DWORD 80
| iWindowPosDX REG_DWORD 701
| iWindowPosDY REG_DWORD 854
| iWindowPosX REG_DWORD 4294965897
| iWindowPosY REG_DWORD 60
| lfCharSet REG_DWORD 0
| lfClipPrecision REG_DWORD 2
| lfEscapement REG_DWORD 0
| lfFaceName REG_SZ Courier New
| lfItalic REG_DWORD 0
| lfOrientation REG_DWORD 0
| lfOutPrecision REG_DWORD 3
| lfPitchAndFamily REG_DWORD 49
| lfQuality REG_DWORD 1
| lfStrikeOut REG_DWORD 0
| lfUnderline REG_DWORD 0
| lfWeight REG_DWORD 400
| StatusBar REG_DWORD 0
| szHeader REG_SZ &f
| szTrailer REG_SZ Page &p
|
|
|
|
| Mad Scientist Jr wrote:
| > True that.
| >
| > PS Now if I could just figure out how to open notepad as a
shell
| > application from VBA being able to specify the window size &
location
| > and file to open I'd be set : )
| >
| >
| > Sam wrote:
| > > Glad to hear it. We both learned something.
| > >
| > >
message
| > > | > > | Hey that worked, thanks a lot.
| > > |
| > > |
| > > | Sam wrote:
| > > | > From the website example, the size is indicated by
| > > | >
| > > | > iPointSize REG_DWORD 0x6e
| > > | >
| > > | > Open the key and change it to "decimal" if not already
selected
| > > | >
| > > | > Whatever size you want you add that along with a zero.
For 9pts
| > > it would be
| > > | > 90 so 10pts is 100, 12 = 120 etc
| > > | >
| > > | > I looked out of courisity rather than knowledge so I am
not
| > > sure if this
| > > | > will stay as the "default". Perhaps someone will step in
if I'm
| > > wrong.
| > > | >
| > > | > Sam
| > > | >
| > > | >
message
| > > | >
| > > | > > You can change the default font FACE like this:
| > > | > >
| > > | > > http://www.jsifaq.com/SF/Tips/Tip.aspx?id=10096
| > > | > >
| > > | > > but I don't see any registry entries for font size.
| > > | > >
| > > | > > The default size is 10 pts, but I'd like to make it 8.
| > > | > >
| > > | > > There is a registry key iPointSize, but it is 100
(decimal),
| > > so it
| > > | > > doesn't seem to be for font size.
| > > | > >
| > > | > > Any ideas?
| > > | > >
| > > | > > ps if anyone knows how to open notepad from a vbscript
and
| > > specify the
| > > | > > window position & size, i could use that too
| > > | > >
| > > |
|
 
H

Hoppy

Hi MSJ --

Why don't you save yourself all the trouble and aggravation, and use a
notepad replacement program? There's a ton of free ones out there, all of
which do a much better job and are infinitely more flexible than crummy
little notepad.

I've used Metapad for years, and it's easily subbed in for notepad.
http://www.liquidninja.com/metapad/

Here's Wikipedia's link [ http://en.wikipedia.org/wiki/Metapad ] which
includes a list of free editors and a comparison.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top