LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Set the font size for printing on terminal (https://www.linuxquestions.org/questions/linux-newbie-8/set-the-font-size-for-printing-on-terminal-919639/)

balaqemu 12-20-2011 05:17 AM

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 ..?

theNbomr 12-21-2011 08:49 AM

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.


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