943,531 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 3411
  • C++ RSS
You are currently viewing page 1 of this multi-page discussion thread
Mar 28th, 2006
0

C language

Expand Post »
Hi,


I want to change the font size of text in C language for printing text.



Thanks in Advance.


Ashish
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
rc_ashish is offline Offline
4 posts
since Mar 2006
Mar 28th, 2006
0

Re: C language

What do you mean, change the font size in the command prompt, or in the text file you're piping it to?
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Mar 28th, 2006
0

Re: C language

Quote originally posted by iamthwee ...
What do you mean, change the font size in the command prompt, or in the text file you're piping it to?

Hi,
i want to mean , the change the size in text file

ashish
Reputation Points: 10
Solved Threads: 0
Newbie Poster
rc_ashish is offline Offline
4 posts
since Mar 2006
Mar 28th, 2006
0

Re: C language

>i want to mean , the change the size in text file

Oh I don't know about that. I would probably pipe it to a *.html file instead.

It allows you to easily change the font, and it's size amongst other things.


For example write this to a html file, which is essentially just saving it with the .html extension...

<html>
<font size="6">hello</font>
</html>
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Mar 28th, 2006
0

Re: C language

i am generating report in text file from c language .

and i want fits all columns in a page so i want to reduce the size of text.


Plz help me out...


Ashish
Reputation Points: 10
Solved Threads: 0
Newbie Poster
rc_ashish is offline Offline
4 posts
since Mar 2006
Mar 28th, 2006
0

Re: C language

Quote originally posted by rc_ashish ...
i am generating report in text file from c language .

and i want fits all columns in a page so i want to reduce the size of text.


Plz help me out...


Ashish
Ok then, well how about you just open notepad, which I assume is the text editor you are using and change the font size to something smaller.

Then your program should, by default write to your files using the font size and style. I think?

I always set it to lucida console font size 10, it helps when you're aligning columns.
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Mar 28th, 2006
0

Re: C language

Hello

i want to handle this size of text through C Program only then how i can handle



Ashish
Reputation Points: 10
Solved Threads: 0
Newbie Poster
rc_ashish is offline Offline
4 posts
since Mar 2006
Mar 28th, 2006
0

Re: C language

Sorrie kiddo you're loosing me now.

That's as much as I know. When you've finished the C program can't you just manually change it back to your original font size. I don't see what the problem is?

Also in notepad if you uncheck wordwrap you can fit all the columns on the page and just use the scrollbars to view it all.

Format>wordwrap
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Mar 28th, 2006
0

Re: C language

Erm, you can only set the font size and font whatever if you save the file in a format that provides some extension on formatting, say, like Rich-Text Format (RTF), Hypertext Markup Language (HTML and/or XHTML), Microsoft Word Document, or Portable Document Format (PDF). In other words, you will have to research on one of these formats, and implement them into your C program. I suggest you go with HTML because it's probably the easiest. If you want to work with other formats, try searching Google for their format specification. Alternatively, you can try searching for libraries already written that will write into the format of desire.

Hope this helps.
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
AstroNox is offline Offline
50 posts
since Mar 2006
Mar 28th, 2006
0

Re: C language

If you mean you want to change front at a laser printer attached directly to your computer or on a network -- that is a pretty complex topic all in itself. There are several c++ classes that can make it somewhat easier, and all require more advanced knowledge of c++. Here is probably one of the more easier examples.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,945 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: help required in win32 programming
Next Thread in C++ Forum Timeline: How to compile and run this C source!!!!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC