By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,897 Members | 1,955 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,897 IT Pros & Developers. It's quick & easy.

String formatting

P: n/a
Hi,

Does any one know how to increase/decrease the size of the charcters in
a string, bolding the string , italicizing the string??
Are there any special functions in C to do that? Is there a way to do
it by writing our own functions? If there is can you suggest me how
to??
Thanks
Sastry

Jun 13 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Shastri wrote:
Hi,

Does any one know how to increase/decrease the size of the charcters in
a string, bolding the string , italicizing the string??
Are there any special functions in C to do that? Is there a way to do
it by writing our own functions? If there is can you suggest me how
to??


These are features concerning fonts, not C type chars, which is what
you'll use hold strings. There is no way you can do what you're asking
in Standard C.

Jun 13 '06 #2

P: n/a
"Shastri" <sa*****@gmail.com> wrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
Hi,

Does any one know how to increase/decrease the size of the charcters in
a string, bolding the string , italicizing the string??
Are there any special functions in C to do that? Is there a way to do
it by writing our own functions? If there is can you suggest me how
to??
Thanks
Sastry


Your problem sounds like it should be posted to a newsgroup dealing with the
OS you are developing for There is no font functionality in the C standard
that I know of so channging the font metrics, bolding and italicizing would
need to be handled by some kind of font package or library.
Jun 13 '06 #3

P: n/a
On 2006-06-13, Brand Bogard <br**********@motorola.com> wrote:
"Shastri" <sa*****@gmail.com> wrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
Hi,

Does any one know how to increase/decrease the size of the charcters in
a string, bolding the string , italicizing the string??
Are there any special functions in C to do that? Is there a way to do
it by writing our own functions? If there is can you suggest me how
to??


Your problem sounds like it should be posted to a newsgroup dealing with the
OS you are developing for There is no font functionality in the C standard
that I know of so channging the font metrics, bolding and italicizing would
need to be handled by some kind of font package or library.


The OP reminds me of Dilbert's boss insisting that he "fax it on green
paper". A string (which in C is a null-terminated array of char) has no
idea how it is displayed (if at all), any more than a faxed document knows
what color paper it will be output on.

--
Andrew Poelstra < http://www.wpsoftware.net/blog >
To email me, use "apoelstra" at the above address.
I know that area of town like the back of my head.
Jun 13 '06 #4

P: n/a
Andrew Poelstra <ap*******@localhost.localdomain> writes:
On 2006-06-13, Brand Bogard <br**********@motorola.com> wrote:
"Shastri" <sa*****@gmail.com> wrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
Does any one know how to increase/decrease the size of the charcters in
a string, bolding the string , italicizing the string??
Are there any special functions in C to do that? Is there a way to do
it by writing our own functions? If there is can you suggest me how
to??


Your problem sounds like it should be posted to a newsgroup dealing with the
OS you are developing for There is no font functionality in the C standard
that I know of so channging the font metrics, bolding and italicizing would
need to be handled by some kind of font package or library.


The OP reminds me of Dilbert's boss insisting that he "fax it on green
paper". A string (which in C is a null-terminated array of char) has no
idea how it is displayed (if at all), any more than a faxed document knows
what color paper it will be output on.


It's entirely possible to encode color and font information in a
string. For example, the content of the string might be HTML rather
than plain text. But the manner in which this information is encoded
(if it's there at all), and the manner in which you indicate whether
the string is to be interpreted as plain text, as HTML, or whatever,
is entirely beyond the scope of the language, and of this newsgroup.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Jun 13 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.