Setting font for printed doc
Rick Nakroshis last edited by
I have a document with 80-plus characters per line. When I went to print it, I couldn’t seem to find anywhere to pick the font or font size to be used for the print job.
When it came out, the font was so small that it was about four inches wide for the eighty columns. How do I change/fix this?
Prahlad-Makwana4145 last edited by
Please follow these steps to change font size:
Step 1:- You need to install the NPPExec plugin.
Step 2 :- Go to Plugins Menu.
Step 3:- Select Plugin Manager.
Step 4:- In Plugin Manager select Show Plugin Manager. Select NPPExec and click Install.
Step 5:- Restart Notepad++ to enable the plugin.
Step 6:- To change the size of your printing font, go to Plugins.
Step 7:- In Plugins select NPPExec and in NPPExec select Execute any type these lines.
NPP_CONSOLE 0 SCI_SENDMSG 2146 +2
Note:- +2 tells Notepad++ to increase the scale by 2 levels. you can try +3 and +4 an even large fonts.
Step 8:- Click Save…, give whatever name you like and click OK.
Step 9:- To make this changes permanent, go to menu Plugins->NPPExec->Advanced Options…, then to “Execute this script when Notepad++ starts”. Select your script and press OK.
I hope above information will be useful for you.
PeterJones last edited by
The printing font size is determined by a combination of factors. Primarily, it is set by the default font size in Notepad++ (Settings > Style Configurator > Global Styles > Default Style) as well as the font-size adjustments for any syntax highlighting that’s active in your document. Secondarily, it can be influenced by the internal Scintilla component’s
SCI_SETPRINTMAGNIFICATIONmessage (which is the
2146that @Prahlad-Makwana4145 used); as described in the
SCI_SETPRINTMAGNIFICATIONdescription in Scintilla docs,
+2tells scintilla to add two points to the font size, and
-4would subtract 4.
Note that when I tried @Prahlad-Makwana4145 's instructions, the hidden console window (which was intentionally hidden by
NPP_CONSOLE 0) shows an error: it doesn’t like the
+2. I had to use
SCI_SENDMSG 2146 2to get the effect described. (It does, however, recognize
-2properly to make the font smaller when printing.)
Unless you are using a tiny font in your Notepad++ window directly, however, I cannot understand why yours would be starting with a tiny font when printing. What font size is your Notepad++ style configurator set at?