LeechCraft Monocle 0.6.70-17609-g3dde4097dd
Modular document viewer for LeechCraft
Loading...
Searching...
No Matches
ihavefontinfo.h
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
9#pragma once
10
11#include <QString>
12#include <QList>
13#include <QtPlugin>
14#include <util/threads/coro/taskfwd.h>
15
16namespace LC::Monocle
17{
20 struct FontInfo
21 {
27 QString FontName_;
28
33 QString LocalPath_;
34
38 };
39
46 {
47 public:
48 virtual ~IHaveFontInfo () {}
49
54 virtual Util::Task<QList<FontInfo>> RequestFontInfos () const = 0;
55 };
56}
57
58
59Q_DECLARE_INTERFACE (LC::Monocle::IHaveFontInfo,
60 "org.LeechCraft.Monocle.IHaveFontInfo/1.0")
Interface for querying font information in a document.
virtual Util::Task< QList< FontInfo > > RequestFontInfos() const =0
Requests the font information for the document.
Describes a single font.
QString LocalPath_
The path to the local font file used.
QString FontName_
The name of the font as it appears in the document.
bool IsEmbedded_
Whether the font is embedded into the document.