From 27e74c10b31767a637a4e3281c93dadc3280d640 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 12 Feb 2025 14:08:55 +1100 Subject: Document SC_TECHNOLOGY_DIRECT_WRITE_1 and reformat technology choice as a table. --- doc/ScintillaDoc.html | 59 ++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 49 insertions(+), 10 deletions(-) diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index dda900b7c..e36c2059d 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -130,7 +130,7 @@

Scintilla Documentation

-

Last edited 1 February 2025 NH

+

Last edited 12 February 2025 NH

Scintilla 5 has moved the lexers from Scintilla into a new Lexilla project.
@@ -5065,16 +5065,55 @@ struct Sci_TextToFindFull { SCI_GETTECHNOLOGY → int
The technology property allows choosing between different drawing APIs and options. On most platforms, the only choice is SC_TECHNOLOGY_DEFAULT (0). - On Windows Vista or later, SC_TECHNOLOGY_DIRECTWRITE (1), - SC_TECHNOLOGY_DIRECTWRITERETAIN (2), or - SC_TECHNOLOGY_DIRECTWRITEDC (3) - can be chosen to use the Direct2D and DirectWrite APIs for higher quality antialiased drawing. - SC_TECHNOLOGY_DIRECTWRITERETAIN differs from - SC_TECHNOLOGY_DIRECTWRITE by requesting that the frame - is retained after being presented which may prevent drawing failures on some cards and drivers. - SC_TECHNOLOGY_DIRECTWRITEDC differs from - SC_TECHNOLOGY_DIRECTWRITE by using DirectWrite to draw into a GDI DC. + On Windows 7 or later, SC_TECHNOLOGY_DIRECTWRITE (1) performs higher quality antialiased drawing. + The other choices in the following table are similar to SC_TECHNOLOGY_DIRECTWRITE + but may work or be more efficient in some situations where SC_TECHNOLOGY_DIRECTWRITE fails or is slow.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SC_TECHNOLOGY_DEFAULT0Use older GDI API which is compatible with all versions of Windows including Windows Vista and XP.
SC_TECHNOLOGY_DIRECTWRITE1Use the Direct2D and DirectWrite APIs for higher quality antialiased drawing.
SC_TECHNOLOGY_DIRECTWRITERETAIN2Request that the frame is retained after being presented which may prevent drawing failures on some cards and drivers.
SC_TECHNOLOGY_DIRECTWRITEDC3Use DirectWrite to draw into a GDI DC. This mode may work for remote access sessions.
SC_TECHNOLOGY_DIRECT_WRITE_14Use DirectWrite in a lower level way that manages graphics state more explicitly.
+

On Win32, buffered drawing is set to a reasonable value for the technology: on for GDI and off for Direct2D as Direct2D performs its own buffering. -- cgit v1.2.3