提交 0d411cb5 编写于 作者: S Stefan Weil

PangoFontInfo: Remove unused method is_smallcaps

Signed-off-by: NStefan Weil <sw@weilnetz.de>
上级 8786e560
......@@ -90,7 +90,6 @@ void PangoFontInfo::Clear() {
font_size_ = 0;
is_bold_ = false;
is_italic_ = false;
is_smallcaps_ = false;
family_name_.clear();
font_type_ = UNKNOWN;
if (desc_) {
......@@ -193,8 +192,6 @@ bool PangoFontInfo::ParseFontDescription(const PangoFontDescription *desc) {
PangoStyle style = pango_font_description_get_style(desc);
is_italic_ = (PANGO_STYLE_ITALIC == style ||
PANGO_STYLE_OBLIQUE == style);
is_smallcaps_ = (pango_font_description_get_variant(desc)
== PANGO_VARIANT_SMALL_CAPS);
is_bold_ = (pango_font_description_get_weight(desc) >= PANGO_WEIGHT_BOLD);
return true;
......
......@@ -107,7 +107,6 @@ class PangoFontInfo {
int font_size() const { return font_size_; }
bool is_bold() const { return is_bold_; }
bool is_italic() const { return is_italic_; }
bool is_smallcaps() const { return is_smallcaps_; }
FontTypeEnum font_type() const { return font_type_; }
int resolution() const { return resolution_; }
......@@ -128,7 +127,6 @@ class PangoFontInfo {
int font_size_;
bool is_bold_;
bool is_italic_;
bool is_smallcaps_;
FontTypeEnum font_type_;
// The Pango description that was used to initialize the instance.
PangoFontDescription* desc_;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册