Avi Drissman | 3e1a26c | 2022-09-15 20:26:03 | [diff] [blame] | 1 | // Copyright 2014 The Chromium Authors |
[email protected] | 2a25d802 | 2014-02-09 03:12:55 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef UI_GFX_FONT_LIST_IMPL_H_ |
| 6 | #define UI_GFX_FONT_LIST_IMPL_H_ |
| 7 | |
| 8 | #include <string> |
| 9 | #include <vector> |
| 10 | |
| 11 | #include "base/memory/ref_counted.h" |
mboc | 998e890 | 2016-06-02 11:40:35 | [diff] [blame] | 12 | #include "ui/gfx/font.h" |
[email protected] | 2a25d802 | 2014-02-09 03:12:55 | [diff] [blame] | 13 | |
| 14 | namespace gfx { |
| 15 | |
[email protected] | 2a25d802 | 2014-02-09 03:12:55 | [diff] [blame] | 16 | // FontListImpl is designed to provide the implementation of FontList and |
| 17 | // intended to be used only from FontList. You must not use this class |
| 18 | // directly. |
| 19 | // |
| 20 | // FontListImpl represents a list of fonts either in the form of Font vector or |
| 21 | // in the form of a string representing font names, styles, and size. |
| 22 | // |
| 23 | // FontListImpl could be initialized either way without conversion to the other |
| 24 | // form. The conversion to the other form is done only when asked to get the |
| 25 | // other form. |
| 26 | // |
| 27 | // For the format of font description string, see font_list.h for details. |
| 28 | class FontListImpl : public base::RefCounted<FontListImpl> { |
| 29 | public: |
| 30 | // Creates a font list from a string representing font names, styles, and |
| 31 | // size. |
| 32 | explicit FontListImpl(const std::string& font_description_string); |
| 33 | |
mboc | 998e890 | 2016-06-02 11:40:35 | [diff] [blame] | 34 | // Creates a font list from font names, styles, size and weight. |
[email protected] | 2a25d802 | 2014-02-09 03:12:55 | [diff] [blame] |
|