diff options
| -rw-r--r-- | doc/ScintillaDoc.html | 10 | ||||
| -rw-r--r-- | include/Scintilla.iface | 13 | 
2 files changed, 23 insertions, 0 deletions
| diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 9aaa71d14..6c652e614 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -748,11 +748,21 @@ SCI_STOPRECORD      </h3>  <pre>  EM_FORMATRANGE +SCI_SETPRINTMAGNIFICATION(int magnification) +SCI_GETPRINTMAGNIFICATION +SCI_SETPRINTINVERTLIGHT(bool invert) +SCI_GETPRINTINVERTLIGHT  </pre>      <p>         On Windows EM_FORMATRANGE can be used to draw the text onto a display context which can        include a printer display context.      </p> +    <p> +       To print at a different size than drawing on screen use SCI_SETPRINTMAGNIFICATION with +       a value which is the number of points to add to each style. -3 or -4 gives reasonable small print. +       If a black background is used on the screen then it is best to invert the light value of all colours +       with SCI_SETPRINTINVERTLIGHT when printing to give a white bavkground. +    </p>      <h3>         Multiple Views      </h3> diff --git a/include/Scintilla.iface b/include/Scintilla.iface index 5c589390c..28c60f13d 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -496,6 +496,19 @@ set void SetSelectionEnd=2144(position pos,)  # Returns the position at the end of the selection.  get position GetSelectionEnd=2145(,) +# Sets the print magnification added to the point size of each style for printing. +set void SetPrintMagnification=2146(int magnification,) + +# Returns the print magnification. +get int GetPrintMagnification=2147(,) + +# Set to invert the light value of each style for printing. +# Used to produce reasonable print output when black background used. +set void SetPrintInvertLight=2148(bool invert,) + +# Returns the invert light value property. +get bool GetPrintInvertLight=2149(,) +  # Show a call tip containing a definition near position pos.  fun void CallTipShow=2200(position pos, string definition) | 
