text font type change for a word using c++

March 24, 2010 at 01:40:14
Specs: Windows 7
how can we change text font (ex:- times new roman to arial black) for a word in text file using c/c++ program. Is there any command exist for it

See More: text font type change for a word using c++

Report •

#1
March 24, 2010 at 02:26:04
You need to be a little more specific. What are you using it for? What operating system or library is the target?

It could be useful to post some of the source code and note any includes.


Report •

#2
March 24, 2010 at 04:16:44
for a word in text file using c/c++ program.

I forgot to mention if the file is plain text there is no way to change the font attributes, because the format doesn't hold any.

Rich text files have the possibility, but is beyond my knowledge......

Other compressed/binary represented formath(.doc.docx, odt, ect.) provide their own problems....

Is there any command exist for it

Depending on the format their may be libraries available, even if they exist don't expect it to be too easy.....


Report •

#3
March 25, 2010 at 12:42:29
thank you for your responce,
actully i am implementing text watermarking in any text document. i have done parsing of whole document and now required to do some change in some words as my algo.
So i have to change the font of highest freuency or occuring word.

Report •

Related Solutions

#4
March 25, 2010 at 18:51:57
You still haven't really clarified what format the text is, but it sounds like it is just plain old ansi text. If it is then you can't you change the font because the format doesn't hold any text attributes.

What is the file extension? (i.e .txt .doc)
What program does it open in? (i.e notepad, msword)
What program made the document? (If different to above)


Report •

#5
March 25, 2010 at 21:37:34
ok sir, i got you. it may be of any type of rich document ,but mainly concern of .doc or .pdf files.

Report •

#6
March 25, 2010 at 21:52:31
and as you know most of the research paper are in Latex so it may be .ps also. What are libraries exist for that . I am using devcpp in win7 and otherwise ubuntu 9.1 by wimware. So if there is any free or open source package exist for this connversion ,let me know.
along with this ,in matlab(my field:-image processing) if there any command exist, let me know please.
thanks for your quick response



Report •

#7
March 25, 2010 at 22:49:06
Both formats look to be real hassle, not that I have ever even tried to modify either format. To be honest this is beyond my knowledge and I won't be of much help.

I did a few searches and there are a few open source libraries but I didn't find anything that jumped out at me.

I'm sorry I can't be of more help than that, maybe someone more knowledgeable will jump in.

There are some useful pdf links on wiki:
http://en.wikipedia.org/wiki/List_o...


Report •

Ask Question