LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Brother laser printer and GNU FreeFont (http://www.linuxquestions.org/questions/linux-hardware-18/brother-laser-printer-and-gnu-freefont-4175451828/)

w1k0 02-26-2013 06:54 PM

Brother laser printer and GNU FreeFont
 
If you own some Brother PostScript laser printer or the PostScript laser printer made by HP, Epson, etc. I ask you to test it with GNU FreeFont using your Linux distribution and to report the results here. I donít need the hundreds of the tests. Itís enough to perform it on one Brother PostScript laser printer other than mine and on one PostScript laser printer made by someone else. Before youíll start the tests inspect the present thread because maybe someone else tested the same or the similar printer with that font earlier so it isnít necessary to repeat the same test once again.

Below is the complete description of the problem that I encountered together with the recipe that allows you to reproduce the test that I made. In short: my Brother PostScript laser printer prints some characters with diacritics from GNU FreeFont in a wrong way. Iíd like to know whether that problem is restricted to my printer only, to the different PostScript laser printers made by Brother, or to all PostScript laser printers.

***

I own Brother HL-5340D laser printer. Itís very nice device but unfortunately it causes the problems with GNU FreeFont concerning some characters with diacritics. These problems appear in Linux only Ė in Windows that printer works with these fonts well.

The non-PostScript and non-laser printers such as Canon PIXMA iP3600 work well with that font so donít test your printer with GNU FreeFont unless you own some PostScript laser printer. Donít test your printer in Windows as well because the problem is restricted to Linux.

I tested Brother HL-5340D laser printer with all Linux drivers from:

http://welcome.solutions.brother.com...nload_prn.html

Ė LPR driver

Ė cupswrapper driver

Ė ppd file

The mentioned problems appear with all drivers.

It doesnít matter what program I use to print the file. The problems appear with OpenOffice.org, LibreOffice, Firefox, Opera, etc.

***

The following picture of the printout illustrates that problems:

http://linux-bsd-unix.strefa.pl/freefont-pl+de+fr.jpg

As you can see the diaeresis accents over ń ň Ō ÷ ‹ š Ž Ô Ų Ł in FreeSerif and FreeSans are lowered and moved to the left or only moved to the left in some cases. Also the grave and the acute accents over ņ » Ŕ ť ŗ Ť ý and Ń ć ń ů ś ź in FreeMono are moved one character to the left in some cases.

That problem isnít restricted to the mentioned characters used in Polish, German, and French languages. I printed the bigger sets of the characters and observed the similar problems in the case of the other characters as well.

The above printout was made with an unofficial GNU FreeFont version 20121211. The last official version 20120503 gives in the case of the FreeMono font slightly worse results. I tested also the newest GNU FreeFont got from SVN and converted with FontForge. It behaves exactly the same as the unofficial GNU FreeFont version 20121211 Ė at least in the case of the mentioned characters.

***

To reproduce the test you need some PostScript laser printer, GNU FreeFont, and the file including the characters sets.

Hereís ODT file for OpenOffice.org, LibreOffice, etc.:

http://linux-bsd-unix.strefa.pl/freefont-pl+de+fr.odt

Hereís HTML file for Firefox, Opera, etc.:

http://linux-bsd-unix.strefa.pl/freefont-pl+de+fr.html

(Use the one which is more comfortable for you.)

The interesting thing is that when I export ODT file from OpenOffice.org or LibreOffice to PDF file my printer prints that file well.

Hereís PDF file for Adobe Reader etc.:

http://linux-bsd-unix.strefa.pl/freefont-pl+de+fr.pdf

(Use it only if the printout from ODT or HTML files was invalid.)

The official freefont-ttf-20120503.zip version of GNU FreeFont is here:

http://ftp.gnu.org/gnu/freefont/

The unofficial freefont-ttf-20121211.zip version of GNU FreeFont is here:

https://docs.google.com/folder/d/0Bw...DdiOUlrRU9EQ2c

(To download the file click File | Download.)

If youíre really brave Linux user and youíd like to try the current GNU FreeFont version use the following command to download the sources:

Code:

svn co svn://svn.savannah.gnu.org/freefont/trunk
Then use the following commands to make TTF files (you need to do that the FontForge program):

Code:

cd trunk/freefont/sfd
make ttf

And finally use the following commands to install the GNU FreeFont:

Code:

cp -p *.ttf /usr/share/fonts/TTF
cd /usr/share/fonts/TTF
mkfontscale .
mkfontdir .
/usr/X11R6/bin/fc-cache -f

After youíll print the test file inspect carefully the printout and report here:

1. What printer you used.

2. What GNU FreeFont version you tried.

3. How looks the printout (everything is good or some characters are invalid).

Use for the tests the ODT or the HTML file. The PDF file gives the valid printouts even with my printer.

***

I reported these problems to Savannah two years ago. Last year I updated my bug report adding some new information. Unfortunately the Savannah guy thinks their font is great and the problem is with my printerís firmware or driver. He asked me to perform dozens of the tests before he admitted that maybe thereís some problem with their font.

I even invented the semi-automatic method to repair most of the mentioned characters using FontForge. Unfortunately my semi-automatic method is too automatic and as a result it improves some glyphs but spoils at the same time the other ones. I could repair invalid glyphs in my version of that font manually but Iím not font developer and I donít see the purpose to made my own fork of that font.

The only method to get the right printouts using my Brother HL-5340D laser printer and GNU FreeFont is to export the file to PDF format and to print it with Adobe Reader.

irgunII 02-26-2013 10:14 PM

Quote:

Originally Posted by w1k0 (Post 4900476)

<snip>

After youíll print the test file inspect carefully the printout and report here:

1. What printer you used.

2. What GNU FreeFont version you tried.

3. How looks the printout (everything is good or some characters are invalid).

Use for the tests the ODT or the HTML file. The PDF file gives the valid printouts even with my printer.

1) Brother HL 2280DW laser all-in-one

2) freefont-ttf-20120503.zip

3) I sent you a couple jpg's of the scans of my tests. They both looked just fine. I did both the ODT and the HTML test.

w1k0 02-27-2013 11:57 AM

irgunII,

Code:

Here's a couple attachments of what my tests look like.

I changed AOo and Seamonkey to use the freefont fonts and it still printed just fine on my Brother HL 228DW laser all-in-one.

Hope this helps, thought like you said it's not a postscript printer, so it might not mean anything at all, heh.

Thank you irgunII for your efforts. Your printouts are perfect. It wasn’t necessary to test both ODT and HTML files. One test is enough. Of course your Brother HL-2280DW laser all-in-one machine isn’t PostScript printer. So I’m still waiting for the results of the tests performed by the owners of the PostScript laser printers made by Brother and by any other producer.


All times are GMT -5. The time now is 07:39 AM.