How can the font size be changed in Notepad++?

154

27

How can the font size be changed in Notepad++?

I just downloaded and installed Notepad++ v5.4.5 (I have been using UltraEdit for the last 11.5 years) and can not find a menu command for changing the screen font. I want to change it to Lucida Console 18pt.


Other notes: to download Notepad++ go directly to the SourceForce download page for Notepad++.

(Note: Another question, How do I change Notepad++'s console font?, deals with changing the font (not the font size). For instance, answers to that question that only talks about font size are being downvoted.)

Peter Mortensen

Posted 2009-08-01T16:26:32.633

Reputation: 10 992

2

Possible duplicate of How do I change Notepad++'s console font?

– shA.t – 2016-02-07T14:01:04.297

32The Notepad++ configurations are all highly non-intuitive. It's disgusting that "How do I change the font?" in a rich-UI windows text editor needs to be asked and upvoted two-dozen times. – Joe Coder – 2013-03-14T21:52:59.583

5Agreed. Notepad++ configuration options suck. The max font size there is 28. Why on earth the max is set to 28? – Tem Pora – 2013-11-05T10:05:05.197

Answers

72

Open menu Settings/Style Configurator. Then with the default theme "Default (stylers.xml)" and default language "Global Styles", change the font name and font size for style "Default Style" (the default, style "Global override" will not cut it).

If a document is already open then the display will change immediately as the font name and font size is changed - nice touch! Press the "Save & Close" button to keep the new settings.

Note that in Notepad++ 6.0, you will also need to check the enable global font and enable global font size check boxes.

Peter Mortensen

Posted 2009-08-01T16:26:32.633

Reputation: 10 992

Where are they, the global font and enable global font size check boxes?? (I couldn't immmediately find them in Notepad++ 6.6.9.) – Peter Mortensen – 2014-09-23T12:36:25.703

1If the styles do not change immediately, note that there is a checkbox to enable global font size changes - for me I hadn't noticed it! – AnneTheAgile – 2015-06-22T15:42:43.620

118

Ctrl and NUMPAD +/NUMPAD - or mouse wheel to zoom in/out

Edit: Or to achieve exactly what you asked for...

Settings > Style Configurator. Under Font Style you can set the font and size

Ciaran

Posted 2009-08-01T16:26:32.633

Reputation: 4 078

4Yes, it does have to be NUMPAD+, not regular +, just to make sure people can't figure it out by guessing. – Noumenon – 2016-12-18T08:22:02.810

Zoom level is not the same as font size. For instance, when printing it is the font size that matters, not the zoom level. – Peter Mortensen – 2018-07-23T04:45:38.107

30

Alternatively, hold Ctrl and use the scroll wheel of your mouse.

Pacerier

Posted 2009-08-01T16:26:32.633

Reputation: 22 232

2

@PeterMortensen, Try http://superuser.com/a/198948/78897

– Pacerier – 2014-10-30T11:21:00.257

Zoom level is not the same as font size. For instance, when printing it is the font size that matters, not the zoom level. – Peter Mortensen – 2018-07-23T04:46:26.640

How can this change the font to "Lucida Console"? – Peter Mortensen – 2013-10-04T14:12:20.680

20

Menu Settings -> Style Configurator ->

Font Style:

Font Name
Font Size

Then check:

  1. Enable global font
  2. Enable global font size

Then click on "Save & Close" button.

enter image description here

athahernadeem

Posted 2009-08-01T16:26:32.633

Reputation: 201

In my answer I stated it did *not* work for Style = "Global override" (it should be "Default Style" instead - the second option). Which version of Notepad++ did you use for testing?

– Peter Mortensen – 2016-02-07T16:53:43.530

3

Fonts and styles can be changed in the Style Configurator.

  • Settings
  • Style Configurator

BinaryMisfit

Posted 2009-08-01T16:26:32.633

Reputation: 19 955

3

With 5.9.4 I have found that the global override does cut it, as zooming seems to influence global and language-specific font settings differently so that whitespace has different sizes (Tabs don't line up with different zoom levels). The font size did not seem to change either..

none

Posted 2009-08-01T16:26:32.633

Reputation: 31

1So... is this a fix to the problem or..? – Simon Sheehan – 2011-12-05T21:02:18.247

3

(Notepad++ 6.1.1)

I'm not sure about you, but to me this feature should be in Preferences. I totally missed it when it was right underneath it :p.

Anyway, you could kill two birds with one stone by changing the theme.

Change font & Chose a dark background:

  1. Go to Settings on the top menu
  2. Chose Style Configurator...
  3. At the top it's the theme selector Select theme

Notepad++ has many themes to choose from, so if you're one of those that likes to code on a dark background with a san-serif font the Ruby Blue theme is a good choice, it works great for me.

My 2¢.

Ricardo Zea

Posted 2009-08-01T16:26:32.633

Reputation: 101

3

There's a much easier way to change the font by using Notepad++ itself. Go to: "C:\Users[your username]\AppData\Roaming\Notepad++\stylers.xml" and open it. Then copy the string fontName="", press Ctrl + H and on the first field what you need to be found paste the copied string. On the second field (this tells you what you want to replace the copied string with), enter fontName="Calibri" (or another font you like), click "replace everything" and DON'T FORGET TO TICK THE TICKBOX TO SEARCH ONLY FOR WHOLE WORDS BEFORE DOING ALL THAT.

After that, find the string fontSize="" and replace it with fontSize="11" (or any other size you prefer. Then save the file and restart NPP. This is how I did it, and here's the result:

Screenshot of the changed file, 'stylers.xml'

Font: Calibri (my favourite font), font size: 11 (my favourite size for Calibri). Then archive the entire "C:\Users[your username]\AppData\Roaming\Notepad++\" to another drive (not on C:), so the next time you need to reinstall the OS, you'd be able to restore your settings on fonts.

This might sound oldschool to some people, but I'm an oldschool myself and this is the way I prefer to do it instead of relying on the program's options.

rado84

Posted 2009-08-01T16:26:32.633

Reputation: 31

1

Scroll the mouse wheel up while pressing Ctrl...

Sajin Shereef

Posted 2009-08-01T16:26:32.633

Reputation: 109

Zoom level is not the same as font size. For instance, when printing it is the font size that matters, not the zoom level. – Peter Mortensen – 2018-07-23T04:47:49.730

1This changes the display size but doesn't actually sent a typeface or font size in the document. – kmarsh – 2014-03-11T14:37:55.147

-3

Ctrl + F12 will give you all authorities to change the appearance, background, foreground, fonts, etc.!

Gaurav

Posted 2009-08-01T16:26:32.633

Reputation: 1

1In Notepad++ 6.8.6 it does not do anything ;). – shA.t – 2016-02-07T14:00:16.930

3Gaurav, what is Ctrl + F12 supposed to do? It does nothing on my installation, Notepad++ v. 5.4.5. For instance, is there a corresponding menu command? – Peter Mortensen – 2011-09-17T09:46:15.380

4Agree, CTRL+F12 does nothing. Please revise your comment. – Ricardo Zea – 2012-08-16T18:38:32.343

3Its the year 2014 and Ctrl+F12 is still not doing anything. – madLokesh – 2014-03-11T10:03:47.760