Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 08-12-2017, 08:36 PM   #1
Registered: Oct 2010
Location: Victoria, B.C., Canada
Distribution: OpenSuSE Tumbleweed
Posts: 30

Rep: Reputation: 0
Add Inconsolata fonts using enscript for printing

In both openSUSE Tumbleweed, and Mageia 6, /usr/share/enscript/afm/ and /etc/enscript/ have the same content 'out-of-the-box', that content being a list of font names and font file names. The list represents the postscript fonts installed within the Samsung M3320 printer. All of that works perfectly.

A sample line reads: AvantGarde-Demi agd

I want to make other fonts available from the desktop, most particularly inconsolata. I'm aware that enscript is not going to 'see' this font and make use of it, unless it is in the ~enscript/afm/

How do I get it there?

The font family is: /usr/share/fonts/TTF/Inconsolata/Inconsolata.otf.

FWIW, the Desktop is GNOME, and at this point the Tweak Tool Font is set to 'Inconsolata-Regular 11' which displays correctly.

Thanks for reading this and possibly throwing a hint or two my way. It would be appreciated.
Old 08-13-2017, 02:24 AM   #2
Senior Member
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 3,120

Rep: Reputation: 549Reputation: 549Reputation: 549Reputation: 549Reputation: 549Reputation: 549
Well, that printer understands PDF 1.7 language, so it can use fonts directly from applications. I can't find much information on that line of printers, but it's a really nice printer. The CUPS system will print directly to PDF format.
Old 08-13-2017, 07:24 PM   #3
Registered: Oct 2010
Location: Victoria, B.C., Canada
Distribution: OpenSuSE Tumbleweed
Posts: 30

Original Poster
Rep: Reputation: 0
Thanks so much for responding.
The M3320 itself is working just fine on both Mageia 6 and openSUSE Tumbleweed. The problem seems to be with enscript being unable (or perhaps unwilling??) to recognize any font other than those defined in /etc/enscript/, which are the PS fonts resident in the printer itself. I can't seem to get off this treadmill.

Both operating systems behave in the same way. That is true whether I configure the printer with cups alone or with Samsung's ULD along with cups.In /etc/enscript.cfg I have continued to change PostscriptLevel from 2 to 3, changed the printer ID from '#Printers' to 'Printer: M3320' and uncommented '# SetPageDeviceUplex:True' because they all work as expected.

Have also looked at posts suggesting I need to somehow add /usr/share/fonts/TTF/Inconsolata/Inconsolate.otf to enscript's so it can find it, but I'm confused about how to do that. The whole idea, of course, is to use Inconsolata fonts for coding. The GNOME desktop tweak-tool handles that task with ease. Again, everything seems to point to enscript's undefined needs.

Thanks again for offering your help.
Old 08-14-2017, 02:50 AM   #4
LQ Addict
Registered: Dec 2013
Posts: 6,770
Blog Entries: 3

Rep: Reputation: 1628Reputation: 1628Reputation: 1628Reputation: 1628Reputation: 1628Reputation: 1628Reputation: 1628Reputation: 1628Reputation: 1628Reputation: 1628Reputation: 1628
you provided a sample line in post #1.
what format does encrypt use here?
you need to find that out.

surely there's some documentation in
  1. local man pages
  2. local documentation (usually in /usr/doc, but see a list of files installed for the software in question)
  3. online documentation

then you need to construct the same format for inconsalata, and add it to the file(s) in question.


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
Wine and printing fonts JoAnne Abbott Linux - Software 0 11-27-2008 01:33 PM
printing windows truetype fonts ons Slackware 5 08-23-2006 07:30 AM
Printing otf fonts davidsrsb Slackware 0 04-27-2006 03:33 AM
Ugly/strange fonts when printing Khang Linux - Software 4 10-15-2005 10:02 PM
printing ttf fonts. carboncopy Slackware 1 08-12-2003 05:32 AM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 05:49 PM.

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