LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 01-21-2011, 03:20 PM   #1
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Rep: Reputation: 234Reputation: 234Reputation: 234
Brother laser printer and GNU FreeFont


I use as a basic font GNU FreeFont which includes three faces: FreeSerif, FreeSans and FreeMono. So far I had Canon Pixma IP3600 color ink printer. Yesterday I bought Brother HL-5340D mono laser printer. My old Canon printed FreeFont typefaces well. My new Brother prints some characters with diacritical marks in a bad way. I tried it with both OpenOffice.org 3.2.1 and LibreOffice 3.3.0.

To be precise Brother printer prints bad:

– FreeSerif Regular;
– FreeSans Regular;
– FreeSans Italic;
– FreeSans Bold Italic;
– FreeMono Regular;
– FreeMono Bold;
– FreeMono Bold Italic.

In the same time it prints well:

– FreeSerif Bold;
– FreeSerif Italic;
– FreeSerif Bold Italic;
– FreeSans Bold;
– FreeMono Italic.

In the Brother User’s Guide I found the information about the default substitution of the TrueType fonts by Device Fonts. The alternative is to use the original fonts downloaded as Softfonts. According to the User’s Guide the printer prints Softfonts slower than Device Fonts.

Unfortunately Linux driver for Brother HL-5340D doesn’t allow to alternate these two options. The same with Windows standard printer driver. The only way to change the mentioned options is to use Windows with BR-Script3 printer driver (PostScript 3 language emulation for Windows).

So I installed Windows XP and at the beginning added the standard printer driver to test it. Windows XP with the standard driver prints FreeFont diacritic characters well.

Then I installed BR-Script3 printer driver and switched it to Substitute with Device Font option. In the result Windows XP printed those characters in a bad way.

Next I switched BR-Script3 printer driver back to the default Substitute with Device Font option. Unfortunately in such case Windows XP printed those characters in a bad way too.

The conclusions are:

– Brother printer used in Linux interprets FreeFont typefaces using some diacritical characters in a bad way;

– Brother printer used in Windows with BR-Script3 printer driver and Substitute with Device Font setting switched on as well as Download as Softfont setting switched on prints these characters in a bad way – in the same manner like in Linux;

– The only way to print these characters in a good way with Brother printer is to use Windows with default driver.

So Windows BR-Script3 printer driver doesn’t work as it should because it doesn’t allow to switch from Device Font to Softfont and back from Softfont to Device Font. In Linux either Brother printer uses bad font substitution of the mentioned typefaces or system substitution of FreeFont faces is bad. Taking into consideration Canon Pixma printer used with Linux printed those typefaces well I assume the first eventuality is more probable: Brother printer used with Linux uses bad font substitution of FreeFont.

In Linux Brother HL-5340D printer uses two binary drivers: cupswrapperHL5340D-2.0.4-1.i386.rpm and hl5340dlpr-2.0.3-1.i386.rpm as well as PPD configuration file: hl-5340d.ppd.gz. Perhaps it’s possible to modify that PPD file to force Brother printer to use good font substitution or don’t use it at all and download fonts from the system. The other possibility I see is to modify the system configuration to enable the good font substitution or disable it at all.

My question is: What could I do to force Brother printer to print all FreeFont characters with diacritical marks in an appropriate way when using Linux?

Last edited by w1k0; 01-21-2011 at 03:28 PM. Reason: typo
 
Old 01-22-2011, 12:50 PM   #2
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Original Poster
Rep: Reputation: 234Reputation: 234Reputation: 234
I solved the problem. I installed FontForge and inspected FreeFont faces which Brother printer prints in a good way as well as FreeFont faces which Brother printer prints in a bad way. I discovered three regularities:

– characters printed good haven’t padlocks while characters printed bad have padlocks;
– characters printed good have anchors while characters printed bad haven’t anchors;
– characters printed good have accents named “acute” while characters printed bad have accents named either “acutemodifier” or “acutecomb”.

Using FontForge and FreeSerif regular font I altered those three settings one by one for letter “Ó”. In result I stated the problem is caused by bad accents. It’s enough to replace “acutemodifier” or “acutecomb” with “acute” to gain font which Brother printer prints well.

So it isn’t hardware problem but software one.

Now I have to modify a lot of characters in seven fonts. Then I’ll submit that problem to FreeFont maintainers.
 
  


Reply



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 HL 1230/1250 ? penguinlnx Linux - Hardware 14 02-28-2012 08:21 AM
Installing a brother colour laser printer alan52bellvolvoman Linux - Hardware 7 04-27-2009 09:32 AM
Fedora Printer Problem: Brother Laser Printer drops the first one or two centimeters merlinsenger Linux - Newbie 2 05-24-2008 06:13 AM
CUPS setup with Brother HL-5250DN laser printer fof3 Linux - Hardware 1 11-24-2007 05:14 PM
Brother laser printer not working with fc2 tzonga1 Linux - Hardware 0 12-12-2004 08:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:13 AM.

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
Open Source Consulting | Domain Registration