comparison src/gl2ps-renderer.h @ 11455:2be9e22796d2

improvements in text-extent calculation
author Konstantinos Poulios <logari81@googlemail.com>
date Thu, 06 Jan 2011 20:46:03 +0100
parents 2786e3b7072e
children fd0a3ac60b0e
comparison
equal deleted inserted replaced
11454:d7a964a5c57c 11455:2be9e22796d2
45 int halign, int valign, double rotation = 0.0); 45 int halign, int valign, double rotation = 0.0);
46 46
47 47
48 virtual void set_font (const base_properties& props); 48 virtual void set_font (const base_properties& props);
49 49
50 virtual void draw_text (const text::properties& props);
50 virtual void draw_pixels (GLsizei w, GLsizei h, GLenum format, 51 virtual void draw_pixels (GLsizei w, GLsizei h, GLenum format,
51 GLenum type, const GLvoid *data); 52 GLenum type, const GLvoid *data);
52 53
53 virtual void set_linestyle (const std::string& s, bool use_stipple) 54 virtual void set_linestyle (const std::string& s, bool use_stipple)
54 { 55 {
72 { 73 {
73 gl2psLineWidth (w); 74 gl2psLineWidth (w);
74 } 75 }
75 76
76 private: 77 private:
78 int alignment_to_mode (int ha, int va) const;
77 int fid; 79 int fid;
78 caseless_str term; 80 caseless_str term;
79 double fontsize; 81 double fontsize;
80 std::string fontname; 82 std::string fontname;
81 }; 83 };