Index: ui/views/controls/styled_label.h |
diff --git a/ui/views/controls/styled_label.h b/ui/views/controls/styled_label.h |
index 4c599a0d438c5de58e98cd5cde3927a8ccdb7e86..ce1004c0b4bb860bcec3cc72eed1eb1c63c08820 100644 |
--- a/ui/views/controls/styled_label.h |
+++ b/ui/views/controls/styled_label.h |
@@ -73,6 +73,11 @@ class VIEWS_EXPORT StyledLabel : public View, public LinkListener { |
// a range set by AddStyleRange. |
void SetDefaultStyle(const RangeStyleInfo& style_info); |
+ // Get or set the distance in pixels between baselines of multi-line text. |
+ // Default is 0, indicating the distance between lines should be the standard |
+ // one for the label's text, font list, and platform. |
+ void SetLineHeight(int height); |
+ |
// Sets the color of the background on which the label is drawn. This won't |
// be explicitly drawn, but the label will force the text color to be |
// readable over it. |
@@ -122,6 +127,9 @@ class VIEWS_EXPORT StyledLabel : public View, public LinkListener { |
// Fonts used to display text. Can be augmented by RangeStyleInfo. |
gfx::FontList font_list_; |
+ // Line height. |
+ int specified_line_height_; |
+ |
// The default style to use for any part of the text that isn't within |
// a range in |style_ranges_|. |
RangeStyleInfo default_style_info_; |