From 79585e218c40f9010601e8af442b573ece40c5ea Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 20 Apr 2021 10:57:59 +1000 Subject: Bug [#2027]. Implement font locale SCI_SETFONTLOCALE on Win32 using DirectWrite. --- doc/ScintillaDoc.html | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index f3b26b88f..0443c7a24 100644 --- a/doc/ScintillaDoc.html +++ b/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
-- cgit v1.2.3