Editor plugin: Style of text and paths

This commit is contained in:
Jakub Melka
2024-06-22 17:43:41 +02:00
parent 1ffd5c6a16
commit ba0dd9e891
6 changed files with 400 additions and 4 deletions

View File

@@ -1985,7 +1985,8 @@ PDFEncodedText PDFSimpleFont::encodeText(const QString& text) const
bool isFound = false;
for (size_t i = 0; i < encodingTable->size(); ++i)
{
if (unicode == (*encodingTable)[static_cast<unsigned char>(i)])
if (unicode == (*encodingTable)[static_cast<unsigned char>(i)] &&
m_glyphIndices[i] != GID())
{
isFound = true;
converted = static_cast<unsigned char>(i);

View File

@@ -98,7 +98,7 @@ struct PDFOverprintMode
/// Represents graphic state of the PDF (holding current graphic state parameters).
/// Please see PDF Reference 1.7, Chapter 4.3 "Graphic State"
class PDFPageContentProcessorState
class PDF4QTLIBCORESHARED_EXPORT PDFPageContentProcessorState
{
public:
explicit PDFPageContentProcessorState();