Solved

how to set font and font size in file text

Posted on 2004-09-20
4
193 Views
Last Modified: 2013-12-03
i am using pro C file manipulation operations to generate a text file. (fprintf etc) How do I set the font size of the output text. Currently the file opens with the defualt font settings.
0
Comment
Question by:chmrz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Expert Comment

by:l3st4rd
ID: 12110802
a plain text file does not contain any information on the font to use. that's only possible for files that are formatted in any way like word documents, PDF's, HTML pages, aso...
so it's impossible.
0
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 20 total points
ID: 12111445
You can generate an HTML file instead a plain text because last one doesn't contain any font information, as l3st4rd pointed out. An example:

<HTML>
<BODY>
This is a plain text<p>
<b>this is a bold text</b><p>
<font color="#FF0000">This is a red text</font><p>
</BODY>

This is the easiest method to produce a formated text, another option is RTF format, it is very similar to HTML, and more suited for printable, non-Web pages.
As you can see, it will be easy to generate with simple fprintf() functions.

Good luck,
Jaime.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to creat good software interface ? 1 77
How to build c program using make in mingw environment? 9 94
asp.net web app 3 59
How to change fonts in windows live mail 3 43
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question