Font::Font(const Font& other) : platform_font_(other.platform_font_) {
}
-gfx::Font& Font::operator=(const Font& other) {
+Font& Font::operator=(const Font& other) {
platform_font_ = other.platform_font_;
return *this;
}
Font::~Font() {
}
-Font Font::DeriveFont(int size_delta) const {
- return DeriveFont(size_delta, GetStyle());
-}
-
-Font Font::DeriveFont(int size_delta, int style) const {
+Font Font::Derive(int size_delta, int style) const {
return platform_font_->DeriveFont(size_delta, style);
}
return platform_font_->GetCapHeight();
}
-int Font::GetAverageCharacterWidth() const {
- return platform_font_->GetAverageCharacterWidth();
-}
-
-int Font::GetStringWidth(const base::string16& text) const {
- return platform_font_->GetStringWidth(text);
-}
-
int Font::GetExpectedTextWidth(int length) const {
return platform_font_->GetExpectedTextWidth(length);
}