mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2024-12-27 08:42:48 +01:00
Issue #59: Fix character font encoding - do not use (1, 0) Mac Roman table if (3, 1) unicode table is present (according to spec)
This commit is contained in:
parent
198b8a54db
commit
ae3c43f066
@ -1412,6 +1412,12 @@ PDFFontPointer PDFFont::createFont(const PDFObject& object, const PDFDocument* d
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (!FT_Select_Charmap(face, FT_ENCODING_UNICODE))
|
||||||
|
{
|
||||||
|
// if we have unicode mapping (3, 1), then we want to skip
|
||||||
|
// Mac Roman Encoding, according to PDF Specification 2.0.
|
||||||
|
// We will load encoding using unicode character map below.
|
||||||
|
}
|
||||||
else if (!FT_Select_Charmap(face, FT_ENCODING_APPLE_ROMAN))
|
else if (!FT_Select_Charmap(face, FT_ENCODING_APPLE_ROMAN))
|
||||||
{
|
{
|
||||||
// We have (1, 0) Mac Roman Encoding, which is slightly different, than Mac Roman Encoding defined
|
// We have (1, 0) Mac Roman Encoding, which is slightly different, than Mac Roman Encoding defined
|
||||||
|
Loading…
Reference in New Issue
Block a user