LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 12-20-2011, 06:17 AM   #1
balaqemu
LQ Newbie
 
Registered: Aug 2011
Posts: 19

Rep: Reputation: Disabled
Set the font size for printing on terminal


Hi,
I have a small application written in C .

In this I have to print some messages with bigger font and other messages are with normal fonts ..?

Is there any way to do this with printf statement ..?

If it is not possible with printf any other alternative way to achieve this ..?
 
Old 12-21-2011, 09:49 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Most terminals can display fonts of one size only. If you do have a terminal that can support multiple font sizes, it probably does so by trapping escape sequences in the data, and the makeup of those should be documented in the terminal docs. You would then embed those escape sequences in your printf() output.
Alternatively, you can create a GUI application using something like Qt or GTK+, which fully support mixed font sizes and font faces.

--- rod.
 
1 members found this post helpful.
  


Reply


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
Set console locale, font, and font size? penyuan Debian 3 12-09-2011 08:54 PM
[SOLVED] Terminal Font Size toredo Linux - General 4 07-10-2011 05:55 PM
How to change font color and font size in terminal ? wlaw Linux - Newbie 3 05-15-2007 09:57 PM
Virtual terminal font size. 11of10 Linux - Newbie 6 08-03-2006 04:02 PM
how to set font size for printing from command line? aslevin Linux - General 1 06-02-2006 06:45 PM


All times are GMT -5. The time now is 02:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration