From 7a1d4bc362a3fdbcacffd1b991480cdef43cf796 Mon Sep 17 00:00:00 2001
From: Rainer Kottenhoff
Date: Wed, 28 Apr 2021 23:20:19 +0200
Subject: [PATCH] + upd: Scintilla Lib v5.0.2
---
scintilla/doc/ScintillaDoc.html | 20 +++++++++++--
scintilla/doc/ScintillaDownload.html | 10 +++----
scintilla/doc/ScintillaHistory.html | 21 +++++++++++++
scintilla/doc/index.html | 11 ++++---
scintilla/include/Scintilla.h | 4 +--
scintilla/include/Scintilla.iface | 6 ++++
scintilla/src/CallTip.cxx | 7 +++--
scintilla/src/CallTip.h | 3 +-
scintilla/src/Editor.cxx | 26 +++++++---------
scintilla/src/Editor.h | 1 -
scintilla/src/Indicator.cxx | 18 ++++++-----
scintilla/src/ScintillaBase.cxx | 1 +
scintilla/src/ViewStyle.cxx | 13 ++++----
scintilla/src/ViewStyle.h | 7 +----
scintilla/src/XPM.cxx | 37 +++++++++--------------
scintilla/src/XPM.h | 8 ++---
scintilla/version.txt | 2 +-
scintilla/win32/PlatWin.cxx | 45 +++++++++-------------------
scintilla/win32/ScintRes.rc | 4 +--
scintilla/win32/ScintillaWin.cxx | 7 ++++-
20 files changed, 134 insertions(+), 117 deletions(-)
diff --git a/scintilla/doc/ScintillaDoc.html b/scintilla/doc/ScintillaDoc.html
index f3b26b88f..0443c7a24 100644
--- a/scintilla/doc/ScintillaDoc.html
+++ b/scintilla/doc/ScintillaDoc.html
@@ -120,7 +120,7 @@
Scintilla Documentation
- Last edited 9 April 2021 NH
+ Last edited 20 April 2021 NH
Scintilla 5 has moved the lexers from Scintilla into a new
Lexilla project.
@@ -2970,6 +2970,9 @@ struct Sci_TextToFind {
SCI_STYLESETHOTSPOT(int style, bool
hotspot)
SCI_STYLEGETHOTSPOT(int style) → bool
+ SCI_SETFONTLOCALE(<unused>, const char
+ *fontName)
+ SCI_GETFONTLOCALE(<unused>, char *fontName) → int
SCI_STYLERESETDEFAULT
@@ -3298,6 +3301,15 @@ struct Sci_TextToFind {
+
SCI_SETFONTLOCALE(<unused>, const char *localeName)
+ SCI_GETFONTLOCALE(<unused>, char *localeName NUL-terminated) → int
+ These messages set the locale used for font selection with language-dependent glyphs.
+ It may, depending on platform and other circumstances influence the display of text, so setting "zh-Hant" may result in traditional
+ Chinese display and "zh-Hans" may result in simplified Chinese display.
+ It is currently only implemented for Win32 using DirectWrite where the value is passed as the localeName argument to CreateTextFormat.
+ The default value is US English "en-us".
+
+
Caret, selection, and hotspot styles
The selection is shown by changing the foreground and/or background colours. If one of these
@@ -4121,7 +4133,11 @@ struct Sci_TextToFind {
SC_TECHNOLOGY_DIRECTWRITEDC differs from
SC_TECHNOLOGY_DIRECTWRITE by using DirectWrite to draw into a GDI DC.
Since Direct2D buffers drawing, Scintilla's buffering can be turned off with
- SCI_SETBUFFEREDDRAW(0).
+ SCI_SETBUFFEREDDRAW(0).
+ When using DirectWrite, you can use
+ SCI_SETFONTLOCALE
+ to set an appropriate font locale to draw text with expected language-dependent glyphs.
+
SCI_SETFONTQUALITY(int fontQuality)
SCI_GETFONTQUALITY → int
diff --git a/scintilla/doc/ScintillaDownload.html b/scintilla/doc/ScintillaDownload.html
index 1739d3dd2..052d3964c 100644
--- a/scintilla/doc/ScintillaDownload.html
+++ b/scintilla/doc/ScintillaDownload.html
@@ -26,9 +26,9 @@
|
-
+
Windows
-
+
GTK/Linux
|
@@ -42,7 +42,7 @@
containing very few restrictions.
- Release 5.0.1
+ Release 5.0.2
Source Code
@@ -50,8 +50,8 @@
The source code package contains all of the source code for Scintilla but no binary
executable code and is available in
- - zip format (1.2M) commonly used on Windows
- - tgz format (1.2M) commonly used on Linux and compatible operating systems
+ - zip format (1.2M) commonly used on Windows
+ - tgz format (1.2M) commonly used on Linux and compatible operating systems
Instructions for building on both Windows and Linux are included in the readme file.
diff --git a/scintilla/doc/ScintillaHistory.html b/scintilla/doc/ScintillaHistory.html
index 24b2ead5a..e98a7c30f 100644
--- a/scintilla/doc/ScintillaHistory.html
+++ b/scintilla/doc/ScintillaHistory.html
@@ -571,6 +571,27 @@
Releases
+
+
+ -
+ Released 23 April 2021.
+
+ -
+ On Cocoa with macOS 11, use plain style for autocompletion to fix problems with truncating text
+ and padding. This makes autocompletion look the same on macOS 11 as macOS 10.
+ Bug #2248.
+
+ -
+ On Windows, fix encoding used for text display with DirectWrite.
+ Bug #2246.
+
+ -
+ Implement font locale SCI_SETFONTLOCALE. Initially only for DirectWrite on Win32.
+ Bug #2027.
+
+
diff --git a/scintilla/doc/index.html b/scintilla/doc/index.html
index 9d1234bf0..7bcc4d843 100644
--- a/scintilla/doc/index.html
+++ b/scintilla/doc/index.html
@@ -9,7 +9,7 @@
-
+