remove unused (after 8bc7a56cda
) font_face::char_height_
This commit is contained in:
parent
b275144004
commit
ba285aa9fa
2 changed files with 1 additions and 5 deletions
|
@ -75,7 +75,6 @@ public:
|
||||||
private:
|
private:
|
||||||
FT_Face face_;
|
FT_Face face_;
|
||||||
mutable glyph_info_cache_type glyph_info_cache_;
|
mutable glyph_info_cache_type glyph_info_cache_;
|
||||||
mutable double char_height_;
|
|
||||||
};
|
};
|
||||||
using face_ptr = std::shared_ptr<font_face>;
|
using face_ptr = std::shared_ptr<font_face>;
|
||||||
|
|
||||||
|
|
|
@ -33,18 +33,15 @@ namespace mapnik
|
||||||
|
|
||||||
font_face::font_face(FT_Face face)
|
font_face::font_face(FT_Face face)
|
||||||
: face_(face),
|
: face_(face),
|
||||||
glyph_info_cache_(),
|
glyph_info_cache_() {}
|
||||||
char_height_(0.0) {}
|
|
||||||
|
|
||||||
bool font_face::set_character_sizes(double size)
|
bool font_face::set_character_sizes(double size)
|
||||||
{
|
{
|
||||||
char_height_ = 0.0;
|
|
||||||
return !FT_Set_Char_Size(face_,0,(FT_F26Dot6)(size * (1<<6)),0,0);
|
return !FT_Set_Char_Size(face_,0,(FT_F26Dot6)(size * (1<<6)),0,0);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool font_face::set_unscaled_character_sizes()
|
bool font_face::set_unscaled_character_sizes()
|
||||||
{
|
{
|
||||||
char_height_ = 0.0;
|
|
||||||
return !FT_Set_Char_Size(face_,0,face_->units_per_EM,0,0);
|
return !FT_Set_Char_Size(face_,0,face_->units_per_EM,0,0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue