LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 02-26-2013, 07:54 PM   #1
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,244

Rep: Reputation: 203Reputation: 203Reputation: 203
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.
 
Old 02-26-2013, 11:14 PM   #2
irgunII
Member
 
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. There's something else?
Posts: 383

Rep: Reputation: 71
Quote:
Originally Posted by w1k0 View Post

<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.
 
1 members found this post helpful.
Old 02-27-2013, 12:57 PM   #3
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,244

Original Poster
Rep: Reputation: 203Reputation: 203Reputation: 203
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Brother laser printer and GNU FreeFont w1k0 Linux - Hardware 0 12-11-2012 03:44 AM
BROTHER Laser Printer HL 1230/1250 ? penguinlnx Linux - Hardware 14 02-28-2012 09:21 AM
[SOLVED] Brother laser printer and GNU FreeFont w1k0 Linux - Hardware 1 01-22-2011 01:50 PM
Installing a brother colour laser printer alan52bellvolvoman Linux - Hardware 7 04-27-2009 10:32 AM
Fedora Printer Problem: Brother Laser Printer drops the first one or two centimeters merlinsenger Linux - Newbie 2 05-24-2008 07:13 AM


All times are GMT -5. The time now is 10:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration