diff src/txt-eng-ft.h @ 12969:6fc2c61660f2

Native multi-line text alignment. * txt-eng-ft.cc: Support horizontal and vertical alignment of multiline text. * txt-eng-ft.h: Ditto.
author Vanya Sergeev <vsergeev@gmail.com>
date Mon, 15 Aug 2011 17:35:30 -0400
parents 63dc132a1000
children 72c96de7a403
line wrap: on
line diff
--- a/src/txt-eng-ft.h	Mon Aug 15 20:55:58 2011 +0200
+++ b/src/txt-eng-ft.h	Mon Aug 15 17:35:30 2011 -0400
@@ -25,6 +25,8 @@
 
 #if HAVE_FREETYPE
 
+#include <vector>
+
 #include <ft2build.h>
 #include FT_FREETYPE_H
 
@@ -94,6 +96,8 @@
   uint8NDArray pixels;
   int xoffset;
   int yoffset;
+  int multiline_halign;
+  std::vector<int> multiline_align_xoffsets;
   int mode;
   uint8_t red, green, blue;
 };