From 8b8a02b4bd250d28bc0f42287ca3d167b7210f39 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 19 Mar 2021 16:15:16 +1100 Subject: UTF-8 text drawing and measurement. Move SurfaceGDI::WidthText to match declaration order. --- qt/ScintillaEditBase/PlatQt.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'qt/ScintillaEditBase/PlatQt.h') diff --git a/qt/ScintillaEditBase/PlatQt.h b/qt/ScintillaEditBase/PlatQt.h index c690e7697..a743a4be5 100644 --- a/qt/ScintillaEditBase/PlatQt.h +++ b/qt/ScintillaEditBase/PlatQt.h @@ -126,6 +126,17 @@ public: void MeasureWidths(const Font *font, std::string_view text, XYPOSITION *positions) override; XYPOSITION WidthText(const Font *font, std::string_view text) override; + + void DrawTextNoClipUTF8(PRectangle rc, const Font *font_, XYPOSITION ybase, + std::string_view text, ColourDesired fore, ColourDesired back) override; + void DrawTextClippedUTF8(PRectangle rc, const Font *font_, XYPOSITION ybase, + std::string_view text, ColourDesired fore, ColourDesired back) override; + void DrawTextTransparentUTF8(PRectangle rc, const Font *font_, XYPOSITION ybase, + std::string_view text, ColourDesired fore) override; + void MeasureWidthsUTF8(const Font *font_, std::string_view text, + XYPOSITION *positions) override; + XYPOSITION WidthTextUTF8(const Font *font_, std::string_view text) override; + XYPOSITION Ascent(const Font *font) override; XYPOSITION Descent(const Font *font) override; XYPOSITION InternalLeading(const Font *font) override; -- cgit v1.2.3