4#include <glibmm/ustring.h>
6#include <sigc++/connection.h>
7#include <sigc++/signal.h>
11#include <sigc++/scoped_connection.h>
18 Glib::RefPtr<Pango::FontFamily>
ff;
19 Glib::RefPtr<Pango::FontFace>
face;
56Pango::FontDescription
get_font_description(
const Glib::RefPtr<Pango::FontFamily>& ff,
const Glib::RefPtr<Pango::FontFace>& face);
58Glib::ustring
get_fontspec(
const Glib::ustring& family,
const Glib::ustring& face);
59Glib::ustring
get_fontspec(
const Glib::ustring& family,
const Glib::ustring& face,
const Glib::ustring& variations);
66 const Glib::RefPtr<Pango::FontFamily>& ff,
67 const Glib::RefPtr<Pango::FontFace>& face,
68 const Glib::ustring& variations);
74Glib::ustring
get_full_font_name(Glib::RefPtr<Pango::FontFamily> ff, Glib::RefPtr<Pango::FontFace> face);
Async::Msg::Message< FontsPayload, double, Glib::ustring, std::vector< FontInfo > > MessageType
sigc::signal< void(const MessageType &)> _events
std::shared_ptr< const std::vector< FontInfo > > FontsPayload
Inkscape::Async::OperationStream< FontsPayload, double, Glib::ustring, std::vector< FontInfo > > _loading
sigc::scoped_connection connect_to_fonts(std::function< void(const MessageType &)> fn)
sigc::scoped_connection _connection
TODO: insert short description here.
std::variant< OperationStarted, OperationProgress< T... >, OperationResult< R >, OperationCancelled, OperationException, OperationFinished > Message
Helper class to stream background task notifications as a series of messages.
Glib::ustring get_inkscape_fontspec(const Glib::RefPtr< Pango::FontFamily > &ff, const Glib::RefPtr< Pango::FontFace > &face, const Glib::ustring &variations)
Glib::ustring get_fontspec_without_variants(const Glib::ustring &fontspec)
int get_font_style_order(const Pango::FontDescription &desc)
void sort_fonts(std::vector< FontInfo > &fonts, FontOrder order, bool sans_first)
Pango::FontDescription get_font_description(const Glib::RefPtr< Pango::FontFamily > &ff, const Glib::RefPtr< Pango::FontFace > &face)
Glib::ustring get_fontspec(const Glib::ustring &family, const Glib::ustring &face, const Glib::ustring &variations)
Glib::ustring get_face_style(const Pango::FontDescription &desc)
std::vector< FontInfo > get_all_fonts()
Glib::ustring get_full_font_name(Glib::RefPtr< Pango::FontFamily > ff, Glib::RefPtr< Pango::FontFace > face)
Static objects with destruction before main() exit.
unsigned short family_kind
Glib::RefPtr< Pango::FontFace > face
Glib::RefPtr< Pango::FontFamily > ff