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. --- src/Platform.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/Platform.h b/src/Platform.h index 3333d3d4c..45c04abdc 100644 --- a/src/Platform.h +++ b/src/Platform.h @@ -208,6 +208,13 @@ public: virtual void DrawTextTransparent(PRectangle rc, const Font *font_, XYPOSITION ybase, std::string_view text, ColourDesired fore) = 0; virtual void MeasureWidths(const Font *font_, std::string_view text, XYPOSITION *positions) = 0; virtual XYPOSITION WidthText(const Font *font_, std::string_view text) = 0; + + virtual void DrawTextNoClipUTF8(PRectangle rc, const Font *font_, XYPOSITION ybase, std::string_view text, ColourDesired fore, ColourDesired back) = 0; + virtual void DrawTextClippedUTF8(PRectangle rc, const Font *font_, XYPOSITION ybase, std::string_view text, ColourDesired fore, ColourDesired back) = 0; + virtual void DrawTextTransparentUTF8(PRectangle rc, const Font *font_, XYPOSITION ybase, std::string_view text, ColourDesired fore) = 0; + virtual void MeasureWidthsUTF8(const Font *font_, std::string_view text, XYPOSITION *positions) = 0; + virtual XYPOSITION WidthTextUTF8(const Font *font_, std::string_view text) = 0; + virtual XYPOSITION Ascent(const Font *font_)=0; virtual XYPOSITION Descent(const Font *font_)=0; virtual XYPOSITION InternalLeading(const Font *font_)=0; -- cgit v1.2.3