eugmes / fntsample

PDF and PostScript font samples generator (migrating from https://sourceforge.net/projects/fntsample/)
GNU General Public License v3.0
23 stars 4 forks source link

Unicode support #8

Closed ghost closed 6 years ago

ghost commented 6 years ago

I'm assuming fntsample support utf-8 in the pdfoutline tool? I'm seeing this garbage when trying to create an outline from a txt file (utf-8) with hebrew titles.... both in Linux (Ubuntu) document viewer and Emacs etc.

screenshot

eugmes commented 6 years ago

There was no special support for non-ascii characters in the library used by pdfoutline. This should be fixed now. Please let me know if the problem is fixed for you.

ghost commented 6 years ago

OK. I seem to still have version 4.0 installed (ubuntu). Is there a ppa with version 5.0? BTW, using pdftk's _utf8 version of the import/export actions, I was able to solve the problem. Of course pdfoutline makes to process much easier :)

eugmes commented 6 years ago

There is no ppa, in fact the fixed version is not release jet, but you can download pdfoutline.pl from here https://raw.githubusercontent.com/eugmes/fntsample/master/pdfoutline.pl, and test it by running perl pdfoutline.pl <other args>. I'll make a new Debian release shortly after some more testing. I'm not using Ubuntu, so I'm not maintaining any ppa.

ghost commented 6 years ago

Oh yes. I was actually just looking at it. I remberer installing it as part of a package, so didn’t pay atttention. Will test and report.

ghost commented 6 years ago

Works!

eugmes commented 6 years ago

Great! Thanks for testing.