[ 
https://issues.apache.org/jira/browse/PDFBOX-5599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17721869#comment-17721869
 ] 

Tilman Hausherr edited comment on PDFBOX-5599 at 5/11/23 6:46 PM:
------------------------------------------------------------------

And this is the proof that it works:
{code:java}
PDFont ligFont = PDType0Font.load(document, new 
File("c:/windows/fonts/calibri.ttf"));
stream.setFont(ligFont, 12);
stream.showText("Generated ligatures: effective, affiliation, float, film, 
affluent");
 {code}
!image-2023-05-11-20-40-51-942.png!
There is one problem with text extraction, "ti" isn't processed correctly.


was (Author: tilman):
And this is the proof that it works:

!image-2023-05-11-20-40-51-942.png!

> Support latin ligatures
> -----------------------
>
>                 Key: PDFBOX-5599
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5599
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: FontBox
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Major
>              Labels: gsub
>             Fix For: 3.0.0 PDFBox
>
>         Attachments: image-2023-05-11-20-40-51-942.png
>
>
> I was able to successfully create PDFs with latin ligatures using the Calibri 
> font (but not the Arial font, I think these aren't supported, although others 
> are). I'm using a stripped down version of the GSUB worker for Bengali. It 
> had one small flaw which I'll fix in a separate issue.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to