Changeset 715 for trunk/include/mapnik/font_engine_freetype.hpp
- Timestamp:
- 07/25/08 19:26:02 (6 months ago)
- Files:
-
- 1 modified
-
trunk/include/mapnik/font_engine_freetype.hpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/mapnik/font_engine_freetype.hpp
r713 r715 60 60 namespace mapnik 61 61 { 62 class font_face; 63 64 typedef boost::shared_ptr<font_face> face_ptr; 65 62 66 class MAPNIK_DECL font_glyph : private boost::noncopyable 63 67 { 64 68 public: 65 font_glyph( FT_Faceface, unsigned index)66 : face_(face), index_(index) {}67 68 FT_Faceget_face() const69 font_glyph(face_ptr face, unsigned index) 70 : face_(face), index_(index) {} 71 72 face_ptr get_face() const 69 73 { 70 74 return face_; … … 76 80 } 77 81 private: 78 FT_Faceface_;82 face_ptr face_; 79 83 unsigned index_; 80 84 }; … … 86 90 public: 87 91 font_face(FT_Face face) 88 : face_(face) {}92 : face_(face) {} 89 93 90 94 std::string family_name() const … … 133 137 FT_Face face_; 134 138 }; 135 136 typedef boost::shared_ptr<font_face> face_ptr;137 139 138 140 class MAPNIK_DECL font_face_set : private boost::noncopyable … … 158 160 for (std::vector<face_ptr>::const_iterator face = faces_.begin(); face != faces_.end(); ++face) 159 161 { 160 FT_Face f = (*face)->get_face();161 162 FT_UInt g = (*face)->get_char(c); 162 163 163 if (g) return glyph_ptr(new font_glyph( f, g));164 if (g) return glyph_ptr(new font_glyph(*face, g)); 164 165 } 165 166 … … 180 181 181 182 glyph_ptr glyph = get_glyph(c); 182 FT_Face face = glyph->get_face() ;183 FT_Face face = glyph->get_face()->get_face(); 183 184 184 185 matrix.xx = (FT_Fixed)( 1 * 0x10000L ); … … 442 443 443 444 glyph_ptr glyph = faces_->get_glyph(unsigned(c)); 444 FT_Face face = glyph->get_face() ;445 FT_Face face = glyph->get_face()->get_face(); 445 446 446 447 matrix.xx = (FT_Fixed)( cos( angle ) * 0x10000L );
