johnwhitington / cpdf-source

PDF Command Line Tools Source
GNU Affero General Public License v3.0
227 stars 26 forks source link

Font not shared for multiple lines: #291

Open johnwhitington opened 1 year ago

johnwhitington commented 1 year ago
$ ./cpdf -create-pdf AND -embed-std14 ~/repos/pdfs/fonts -add-text 'foo\nlong one\nshort' -justify-left -o out.pdf
$ ./cpdf -list-fonts out.pdf
1 /F2 /TrueType /AAAAAC+NimbusRoman-Regular /WinAnsiEncoding
1 /F1 /TrueType /AAAAAC+NimbusRoman-Regular /WinAnsiEncoding
1 /F0 /TrueType /AAAAAC+NimbusRoman-Regular /WinAnsiEncoding
johnwhitington commented 1 year ago

This is actually not a regression - happens on plain text too. For later.