Inkscape
Vector Graphics Editor
|
The routines here create and manage a font selector widget with three parts, one each for font-family, font-style, and font-size. More...
Go to the source code of this file.
Classes | |
class | Inkscape::UI::Widget::FontSelector |
A container of widgets for selecting font faces. More... | |
Namespaces | |
namespace | Gdk |
namespace | Gtk |
namespace | Inkscape |
Helper class to stream background task notifications as a series of messages. | |
namespace | Inkscape::UI |
User interface code. | |
namespace | Inkscape::UI::Widget |
Custom widgets. | |
The routines here create and manage a font selector widget with three parts, one each for font-family, font-style, and font-size.
It is used by the TextEdit and Glyphs panel dialogs. The FontLister class is used to access the list of font-families and their associated styles for fonts either on the system or in the document. The FontLister class is also used by the Text toolbar. Fonts are kept track of by their "fontspecs" which are the same as the strings that Pango generates.
The main functions are: Create the font-seletor widget. Update the lists when a new text selection is made. Update the Style list when a new font-family is selected, highlighting the best match to the original font style (as not all fonts have the same style options). Emit a signal when any change is made so that the Text Preview can be updated. Provide the currently selected values.
Definition in file font-selector.h.