Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marek Kasik
poppler
Commits
62398334
Commit
62398334
authored
Aug 07, 2019
by
Jan Grulich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add subsitute-font information to Qt bindings
parent
98a5a25d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
qt5/src/poppler-fontinfo.cc
qt5/src/poppler-fontinfo.cc
+5
-0
qt5/src/poppler-private.h
qt5/src/poppler-private.h
+2
-0
qt5/src/poppler-qt5.h
qt5/src/poppler-qt5.h
+6
-0
No files found.
qt5/src/poppler-fontinfo.cc
View file @
62398334
...
...
@@ -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
;
...
...
qt5/src/poppler-private.h
View file @
62398334
...
...
@@ -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
;
...
...
qt5/src/poppler-qt5.h
View file @
62398334
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment