AddTextEffect, strange behaviour on different fonts.

C

cosmin.paun

Hello.

I have an rtf file containing several sections. I am using Word (via
COM, in C++) to add a watermark to all pages.

My problem is that I get different results, depending on the font names
I use. For instance, I call AddTextEffect with "Times New Roman" and it
works fine. I am trying with "Arial" and I get watermark only on the
second section, the first and last page do not have watermarks.

I do not think I have a problem with the fonts - I use for instance the
font "Consolas" on XP, borrowed from a Vista machine and I get the
correct result.

Did somebody have the same problem ? I am using Office 2003 in English.

Thank you.
Cosmin
 
C

Cindy M.

I'm not sure if this is the issue, but there are problems with Arial and
certain font sizes in various Word functionalities. So it wouldn't
surprise me to find out Arial is causing difficulties with this, as well.
I have an rtf file containing several sections. I am using Word (via
COM, in C++) to add a watermark to all pages.

My problem is that I get different results, depending on the font names
I use. For instance, I call AddTextEffect with "Times New Roman" and it
works fine. I am trying with "Arial" and I get watermark only on the
second section, the first and last page do not have watermarks.

I do not think I have a problem with the fonts - I use for instance the
font "Consolas" on XP, borrowed from a Vista machine and I get the
correct result.

Did somebody have the same problem ? I am using Office 2003 in English.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
C

cosmin.paun

I checked some other fonts and I have problems (so far) only with
Arial.

What kind of issues did you have in mind? Is any of them referring to
WordArt ?

Cosmin
 
C

Cindy M.

I checked some other fonts and I have problems (so far) only with
Arial.

What kind of issues did you have in mind? Is any of them referring to
WordArt ?
No, this is the first time I've come across this with WordArt.

The one that sticks out in my mind today :)-)) is trying to specify the
font + font size for a Table style. If I try to use Arial 10 (I think
it's 10) I simply cannot. Word doesn't accept it.

There's another situation with the same problem, but the details don't
come to mind. Just that Arial 10 (I think it's 10) causes weird
problems sometimes.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 
C

Cosmin

The size of the font is adjusted automatically depending on the length of the
text, so I tried longer texts. With Arial sometimes it works, sometimes it
does not (first attempt to create a watermark using a longer text was
successfull, the rest not..), running the same code, same configuration files
and same input rtf file. The other fonts do not make any problems.

I prefer not to substitute Arial with some other font. Do I really have to?

Cosmin
 
C

Cindy M.

Hi =?Utf-8?B?Q29zbWlu?=,
The size of the font is adjusted automatically depending on the length of the
text, so I tried longer texts. With Arial sometimes it works, sometimes it
does not (first attempt to create a watermark using a longer text was
successfull, the rest not..), running the same code, same configuration files
and same input rtf file. The other fonts do not make any problems.

I prefer not to substitute Arial with some other font. Do I really have to?
I think you do. There's no sign that Microsoft is going to try to fix the
problems with Arial.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top