C language

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2006
Posts: 4
Reputation: rc_ashish is an unknown quantity at this point 
Solved Threads: 0
rc_ashish rc_ashish is offline Offline
Newbie Poster

C language

 
0
  #1
Mar 28th, 2006
Hi,


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



Thanks in Advance.


Ashish
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,264
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: C language

 
0
  #2
Mar 28th, 2006
What do you mean, change the font size in the command prompt, or in the text file you're piping it to?
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 4
Reputation: rc_ashish is an unknown quantity at this point 
Solved Threads: 0
rc_ashish rc_ashish is offline Offline
Newbie Poster

Re: C language

 
0
  #3
Mar 28th, 2006
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,264
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: C language

 
0
  #4
Mar 28th, 2006
>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>
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 4
Reputation: rc_ashish is an unknown quantity at this point 
Solved Threads: 0
rc_ashish rc_ashish is offline Offline
Newbie Poster

Re: C language

 
0
  #5
Mar 28th, 2006
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,264
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: C language

 
0
  #6
Mar 28th, 2006
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.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 4
Reputation: rc_ashish is an unknown quantity at this point 
Solved Threads: 0
rc_ashish rc_ashish is offline Offline
Newbie Poster

Re: C language

 
0
  #7
Mar 28th, 2006
Hello

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



Ashish
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,264
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: C language

 
0
  #8
Mar 28th, 2006
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
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 50
Reputation: AstroNox is an unknown quantity at this point 
Solved Threads: 2
AstroNox AstroNox is offline Offline
Junior Poster in Training

Re: C language

 
0
  #9
Mar 28th, 2006
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.
Best Regards, God Bless,
AstroNox
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,362
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1464
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: C language

 
0
  #10
Mar 28th, 2006
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC