Chromium Code Reviews| Index: ui/gfx/render_text.cc |
| =================================================================== |
| --- ui/gfx/render_text.cc (revision 157127) |
| +++ ui/gfx/render_text.cc (working copy) |
| @@ -416,6 +416,10 @@ |
| 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; |