LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-12-2009, 01:07 PM   #1
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
Linux Apps stripping format data from text sent to printer???


Ubuntu 8.04 apps (gedit and vim) display properly on screen - fonts and font size look good, but when sent to a printer, print out with about an 8 and some generic font???

TIA
 
Old 06-12-2009, 01:14 PM   #2
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 70
File format?
 
Old 06-12-2009, 01:30 PM   #3
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527

Original Poster
Blog Entries: 1

Rep: Reputation: 35
format is whatever is native to vim. The file was created and is maintained across an ssh connection using vim.
 
Old 06-12-2009, 01:35 PM   #4
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 70
well plain text files generally don't have formatting for font, size etc.
 
Old 06-12-2009, 01:56 PM   #5
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527

Original Poster
Blog Entries: 1

Rep: Reputation: 35
Heh well that seems reasonable. I just found out that formatting font and size added or changed in gedit and saved to disk, retains that formatting as far as gedit is concerned, but only for screen display. Turns out there is a separate Font setting in the File > Print menu.

Additionally, I just found that data with a large font saved from gedit does not show the saved formatting when printed to the printer using the lpr note syntax.

So that looks like gedit creates pseudo plain test files, where formatting is retained for use by the saving program, but appears to be plain text to other apps!
strange stuff. :-)
 
Old 06-12-2009, 02:03 PM   #6
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 70
You may even find gedit adds that new formatting to every file it gets, and that its changed in a config file stored in ~/.gconf/apps/gedit-2/preferences somewhere
 
Old 06-12-2009, 02:29 PM   #7
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527

Original Poster
Blog Entries: 1

Rep: Reputation: 35
Thans for the help. I'll keep pounding on it :-)
 
Old 06-14-2009, 08:40 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
AFAIK, basic editors, eg vim, gedit, kate(?) may show format/font layouts for your convenience, but they do not save them, as they are usually used for editing plain text eg shell files. The system would get very confused if you tried to run a file that has embedded font codes.
If you want a fancy printout, use OpenOffice - Writer.
 
  


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
Rename files by stripping text from either desired string? varney Linux - General 2 02-21-2008 10:04 PM
LXer: Simplify Data Extraction Using Linux Text Utilities LXer Syndicated Linux News 0 08-11-2006 06:54 AM
stripping down damm small linux toonlee DamnSmallLinux 2 04-27-2006 07:15 AM
text format Jeebizz Slackware 4 11-09-2005 06:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:20 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
Open Source Consulting | Domain Registration