diff Core/Images/Font.h @ 2900:668d5ad73c74

Font::Render()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 22 Oct 2018 14:20:21 +0200
parents 878b59270859
children 058851941abe
line wrap: on
line diff
--- a/Core/Images/Font.h	Thu Oct 18 12:03:51 2018 +0200
+++ b/Core/Images/Font.h	Mon Oct 22 14:20:21 2018 +0200
@@ -111,5 +111,17 @@
               uint8_t r,
               uint8_t g,
               uint8_t b) const;
+
+    void ComputeTextExtent(unsigned int& width,
+                           unsigned int& height,
+                           const std::string& utf8) const;
+
+    ImageAccessor* Render(const std::string& utf8,
+                          PixelFormat format,
+                          uint8_t r,
+                          uint8_t g,
+                          uint8_t b) const;
+
+    ImageAccessor* RenderAlpha(const std::string& utf8) const;
   };
 }