Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0.20
-
None
-
None
Description
IntelliJ says the 2 conditions bellow are always false in TrueTypeEmbedder
private boolean isEmbeddingPermitted(TrueTypeFont ttf) throws IOException { if (ttf.getOS2Windows() != null) { int fsType = ttf.getOS2Windows().getFsType(); int exclusive = fsType & 0x8; // bits 0-3 are a set of exclusive bits if ((exclusive & OS2WindowsMetricsTable.FSTYPE_RESTRICTED) == OS2WindowsMetricsTable.FSTYPE_RESTRICTED) { // restricted License embedding return false; } else if ((exclusive & OS2WindowsMetricsTable.FSTYPE_BITMAP_ONLY) == OS2WindowsMetricsTable.FSTYPE_BITMAP_ONLY) { // bitmap embedding only return false; } } return true; }
Can this be a bug?
Attachments
Issue Links
- causes
-
PDFBOX-5191 isEmbeddingPermitted() is too restrictive on TTFs with OS2 table versions 0-2
- Closed
- relates to
-
PDFBOX-2524 [PATCH] Two PDFont to create PDF documents in CJK and non-ISO-8859-1 languages
- Closed
- links to