Mercurial > octave-nkf
diff src/txt-eng-ft.h @ 11455:2be9e22796d2
improvements in text-extent calculation
author | Konstantinos Poulios <logari81@googlemail.com> |
---|---|
date | Thu, 06 Jan 2011 20:46:03 +0100 |
parents | 9f2bf537a651 |
children | fd0a3ac60b0e |
line wrap: on
line diff
--- a/src/txt-eng-ft.h Thu Jan 06 19:56:50 2011 +0100 +++ b/src/txt-eng-ft.h Thu Jan 06 20:46:03 2011 +0100 @@ -30,7 +30,6 @@ #include <dMatrix.h> #include <uint8NDArray.h> -#include "graphics.h" #include "txt-eng.h" class @@ -68,12 +67,17 @@ Matrix get_extent (text_element *elt, double rotation = 0.0); - void set_font (const base_properties& props); + void set_font (const std::string& name, const std::string& weight, + const std::string& angle, double size); void set_color (Matrix c); void set_mode (int m); + void text_to_pixels (const std::string& txt, + uint8NDArray& pixels_, Matrix& bbox, + int halign, int valign, double rotation); + private: int rotation_to_mode (double rotation) const;