Commit 62398334 authored by Jan Grulich's avatar Jan Grulich

Add subsitute-font information to Qt bindings

parent 98a5a25d
......@@ -52,6 +52,11 @@ QString FontInfo::name() const
return m_data->fontName;
}
QString FontInfo::substituteName() const
{
return m_data->fontSubstituteName;
}
QString FontInfo::file() const
{
return m_data->fontFile;
......
......@@ -175,6 +175,7 @@ namespace Poppler {
{
if (fi->getName()) fontName = fi->getName()->c_str();
if (fi->getFile()) fontFile = fi->getFile()->c_str();
if (fi->getSubstituteName()) fontSubstituteName = fi->getSubstituteName()->c_str();
isEmbedded = fi->getEmbedded();
isSubset = fi->getSubset();
type = (Poppler::FontInfo::Type)fi->getType();
......@@ -185,6 +186,7 @@ namespace Poppler {
FontInfoData& operator=(const FontInfoData &) = default;
QString fontName;
QString fontSubstituteName;
QString fontFile;
bool isEmbedded : 1;
bool isSubset : 1;
......
......@@ -209,6 +209,12 @@ namespace Poppler {
*/
QString name() const;
/**
The name of the substitute font. Can be a null QString if the font has no substitute font
@since 0.80
*/
QString substituteName() const;
/**
The path of the font file used to represent this font on this system,
or a null string is the font is embedded
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment