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 07-17-2010, 12:10 PM   #1
Registered: Jun 2010
Location: Canada
Distribution: Trisquel
Posts: 94

Rep: Reputation: 9
Change Font Size Programatically

Hi Everyone

I am now writing some scripts that take advantage of the ANSI color escape codes, i.e [00:31m for red.

I am just wondering if there is a way to change the font size through something similar? I am trying to generate a plot with ASCI art and I would like to make tiny letters for "pixels" and then switch back to regular font.

Thanks in advance-Patrick
Old 07-17-2010, 01:30 PM   #2
Hidden Windshield
Registered: Jul 2010
Distribution: Fedora
Posts: 65

Rep: Reputation: 26
Unfortunately, no, there's no way to change the size of individual letters in a text terminal. Every letter must be the exact same size. Even things like proportional width fonts are verboten.

If you're doing complex graphics, you might be better served by looking at a GUI toolkit, e.g., GTK or QT.
Old 07-17-2010, 04:23 PM   #3
Registered: Jun 2010
Location: Canada
Distribution: Trisquel
Posts: 94

Original Poster
Rep: Reputation: 9
Hi Green Zebra

That's too bad :-(

Thanks for taking the time to post-Patrick
Old 07-19-2010, 08:17 AM   #4
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
The terminal is not like a word processor, it's like a grid of cells, each containing a character.


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
change the font size mierdatuti Programming 6 01-14-2009 10:11 AM
How to change font color and font size in terminal ? wlaw Linux - Newbie 3 05-15-2007 08:57 PM
Where i can change the X font size dr_doom Linux - Software 0 04-09-2004 12:17 PM
change console font size? andrewlkho Debian 4 07-07-2003 12:48 PM
is it possible to change the font size for these apps? saturn_vk Linux - Software 4 06-13-2003 04:26 PM > Forums > Linux Forums > Linux - Desktop

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

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