diff options
Diffstat (limited to 'ui/gfx/render_text.cc')
-rw-r--r-- | ui/gfx/render_text.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/gfx/render_text.cc b/ui/gfx/render_text.cc index dc2e0da..4971dca 100644 --- a/ui/gfx/render_text.cc +++ b/ui/gfx/render_text.cc @@ -416,6 +416,10 @@ void RenderText::SetFontList(const FontList& font_list) { ResetLayout(); } +void RenderText::SetFont(const Font& font) { + SetFontList(FontList(font)); +} + void RenderText::SetFontSize(int size) { font_list_ = font_list_.DeriveFontListWithSize(size); cached_bounds_and_offset_valid_ = false; |