diff options
| author | Neil <nyamatongwe@gmail.com> | 2021-04-20 10:57:59 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2021-04-20 10:57:59 +1000 | 
| commit | 79585e218c40f9010601e8af442b573ece40c5ea (patch) | |
| tree | d64cab27d7ee75ef5a2a2e567dbe9c8ebd3823e9 /src/ViewStyle.h | |
| parent | ed434975e5de00e91718b075f04492f69c1bb04a (diff) | |
| download | scintilla-mirror-79585e218c40f9010601e8af442b573ece40c5ea.tar.gz | |
Bug [#2027]. Implement font locale SCI_SETFONTLOCALE on Win32 using DirectWrite.
Diffstat (limited to 'src/ViewStyle.h')
| -rw-r--r-- | src/ViewStyle.h | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/src/ViewStyle.h b/src/ViewStyle.h index 7f50804c2..946bd6c60 100644 --- a/src/ViewStyle.h +++ b/src/ViewStyle.h @@ -37,7 +37,7 @@ public:  	FontRealised &operator=(const FontRealised &) = delete;  	FontRealised &operator=(FontRealised &&) = delete;  	virtual ~FontRealised(); -	void Realise(Surface &surface, int zoomLevel, int technology, const FontSpecification &fs); +	void Realise(Surface &surface, int zoomLevel, int technology, const FontSpecification &fs, const char *localeName);  };  enum class IndentView {none, real, lookForward, lookBoth}; @@ -168,6 +168,8 @@ public:  	int wrapVisualStartIndent;  	int wrapIndentMode; // SC_WRAPINDENT_FIXED, _SAME, _INDENT +	std::string localeName; +  	ViewStyle();  	ViewStyle(const ViewStyle &source);  	ViewStyle(ViewStyle &&) = delete; @@ -184,6 +186,7 @@ public:  	void ResetDefaultStyle();  	void ClearStyles();  	void SetStyleFontName(int styleIndex, const char *name); +	void SetFontLocaleName(const char *name);  	bool ProtectionActive() const noexcept;  	int ExternalMarginWidth() const noexcept;  	int MarginFromLocation(Point pt) const noexcept; | 
