OpenPDF icon indicating copy to clipboard operation
OpenPDF copied to clipboard

Enable kerning and ligatures for LayoutProcessor

Open vk-github18 opened this issue 2 years ago • 7 comments

Description of the new Feature/Bugfix

  1. Kerning and ligatures can be enabled for LayoutProcessor by calling LayoutProcessor.enableKernLiga();
  2. Updates for final standard DIN 91379

Examples

GlyphLayoutDocumentDin91379.java

Shows all letters and sequences of DIN 91379 in a new PDF-document. GlyphLayoutDocumentDin91379.pdf

GlyphLayoutFormDin91379.java

Fills all letters and sequences of DIN SPEC 91379 into a PDF-form. GlyphLayoutFormDin91379.pdf

GlyphLayoutDocumentKernLiga.java

Enables LayoutProcessor with kerning and ligatures for all fonts GlyphLayoutDocumentKernLiga.pdf

GlyphLayoutDocumentKernLigaPerFont.java

Enables LayoutProcessor with kerning and/or ligatures for specified fonts GlyphLayoutDocumentKernLigaPerFont.pdf

GlyphLayoutDocumentBidi.java

Prints bidirectional text with correct glyph layout, kerning and ligatures globally enabled GlyphLayoutDocumentBidi.pdf

GlyphLayoutDocumentBidiPerFont.java

Prints bidirectional text with correct glyph layout, kerning and ligatures globally enabled. Direction can be chosen per font GlyphLayoutDocumentBidiPerFont.pdf

Compatibilities Issues

New methods added, existing methods in LayoutProcessor are unchanged.

vk-github18 avatar Jun 17 '22 16:06 vk-github18

The checkstyle job did not run because of some system error.

vk-github18 avatar Jun 24 '22 20:06 vk-github18

I am thinking about more changes ...

vk-github18 avatar Jul 16 '22 11:07 vk-github18

Example for bidirectional text GlyphLayoutDocumentBidi.java GlyphLayoutDocumentBidi.pdf

vk-github18 avatar Jul 16 '22 17:07 vk-github18

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarqubecloud[bot] avatar Jul 16 '22 17:07 sonarqubecloud[bot]

Hi @vk-github18 , the checkstyle problems were fixed on master. Can you please rebase your branch onto OpenPdf/master?

asturio avatar Sep 12 '22 16:09 asturio

Hi @asturio, I am thinking about some updates for the final DIN norm first, and try a rebase after this.

vk-github18 avatar Sep 12 '22 20:09 vk-github18

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarqubecloud[bot] avatar Sep 15 '22 19:09 sonarqubecloud[bot]

Hi @asturio , my changes are done, the request is ready for integration.

vk-github18 avatar Oct 08 '22 10:10 vk-github18