Finding actual font used for a TextRange

  • Thread starter Thread starter josh.projects
  • Start date Start date
J

josh.projects

Hello all,

According to the VBA documentation, the TextRange.Font object stores
several different font names (Font.Name, Font.NameAscii,
Font.NameFarEast, Font.NameComplexScript, Font.NameOther). Is there a
simple way to find out which one of those fonts is actually used to
display a given chunk of text?

I suppose it might be possible by checking the Unicode character range
manually (for example, if the text contains Chinese/Japanese/Korean
characters, the font specified by NameFarEast is used), but I'm not
sure when NameComplexScript and NameOther would be used.

Thanks in advance.
 
Hmm... after some more experimentation, it seems that the actual font
used is in TextRange.Font.Name. Can anyone confirm?
 

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

Back
Top