Problems assigning certain fonts to certain characters

N

Nick Stebbing

I want to apply a certain font to character 185 (a superscript 1).
No matter what I do word does not change the applied font.

I have the character selected in a range and then run the following command...

myrange.Font.Name = "Saysettha Lao"

In most cases this works fine but not with character (185) or at least not
all of the time.

I've tried everything I can think of (using selection.typetext,
insertsymbol, deleting the text then retyping it). I am thinking it has
something to do with the way word protects wingdings characters entered using
insert symbol, but I can't find a way around it.

Can anybody help?

Nick Stebbing
 
J

Jean-Guy Marcil

Bonjour,

Dans son message, < Nick Stebbing > écrivait :
In this message, < Nick Stebbing > wrote:

|| I want to apply a certain font to character 185 (a superscript 1).
|| No matter what I do word does not change the applied font.
||
|| I have the character selected in a range and then run the following
command...
||
|| myrange.Font.Name = "Saysettha Lao"
||
|| In most cases this works fine but not with character (185) or at least
not
|| all of the time.
||
|| I've tried everything I can think of (using selection.typetext,
|| insertsymbol, deleting the text then retyping it). I am thinking it has
|| something to do with the way word protects wingdings characters entered
using
|| insert symbol, but I can't find a way around it.
||

I believe that if the creators of the font you are using have not defined
Character 185 in the font definition, then it will not work. Either you get
a white square or nothing happens. For example, I have some fonts that are
highly decorative (Grunge and Bloody for example) and with those, if I try
to type an accented French letter like "é" I get a white square and in the
case of the Chr(185), if I insert it and then apply the font, nothing
happens.

But you're in luck! Since you are concerned by Chr(185) which happens to be
a superscript "1", just type in a regular "1", apply the font you want and
use Word's Font dialog to apply superscript.

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
N

Nick Stebbing

Thanks Jean-Guy,

I was hoping that there would be a solution to this that works for any
character (not just 185).

Also I'm not sure this is the problem because most of the time I can switch
the font back and forth with no problem. It's is just on rare occassions that
word refuses to let me change the font.

Any more ideas?

Thanks again

Nick Stebbing
 
J

Jean-Guy Marcil

Bonjour,

Dans son message, < Nick Stebbing > écrivait :
In this message, < Nick Stebbing > wrote:

|| Thanks Jean-Guy,
||
|| I was hoping that there would be a solution to this that works for any
|| character (not just 185).
||
|| Also I'm not sure this is the problem because most of the time I can
switch
|| the font back and forth with no problem. It's is just on rare occassions
that
|| word refuses to let me change the font.
||
|| Any more ideas?
||
|| Thanks again
||

I am not familiar with that particular font, although from its name it seems
that it is South-East Asian based. It is probably based on a different code
page...
I have worked with Thai Fonts before and I have run in problems like that as
well. I always assumed that it was because the character I was trying to use
was not included in the font definition. Thai fonts are especially hard to
use on non-Thai keyboards and non-Thai software. Vowels can be placed all
around a consonant (to the left, to the right, above or under) while others
are made up of four symbols surrounding a consonant... So if you are working
with a font like that... I do not think you can get it to work as well as
you would like.

I am not a font expert though... hopefully someone more knowledgeable about
fonts will,be along shortly!
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

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