LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 08-12-2017, 07:36 PM   #1
gjwalsh
Member
 
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/font.map and /etc/enscript/font.map 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/font.map.

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, 01:24 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
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, 06:24 PM   #3
gjwalsh
Member
 
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/font.map, 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 font.map 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, 01:50 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:19 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