AndreFelix

Hello,

How can I obtain the font name used by the IE to display a unicode char.

Example: Ķē (decimal number of that char: 931)
GREEK CAPITAL LETTER SIGMA
x (latin capital letter esh - 01A9)
x (n-ary summation - 2211)


How can I know the font used But I need a solution for all unicode chars Wink

I tried using that idea:
--
Step 1:
IMLangCodePages::GetCharCodePages

Step 2:
IMLangCodePages::CodePagesToCodePage

Step 3:
IMLangFontLink2::CodePageToScriptID

Step 4:
Read the font name (IEPropFontName) from the registry:
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\International\Scripts\nn]
--

For the Ķē (Sigma) I get the CodePage:
1253 and Script ID: 5
And in my case, my IE use the font Times New Roman to display that char. For that char is everythink OK.

But the problem is that I get no CodePage info for many chars.

Example: (decimal number of that char: 9286)
OCR BRANCH BANK IDENTIFICATION
= transit


How can I obtain the font used by the IE to display that char

Thanks in Advance

Andre Felix







Re: Internet Explorer Extension Development How to get the name of the font used by the IE to display a char (Unicode)?

IECUSTOMIZER

Hi Andre,

I think( ) IE uses a heirachay(sp ) of logic to decide which font to use when displaying text on a web page.

The registry key

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\International\Scripts\nn]
Tells IE which font to use when none is specified in the document with a

eg.

this is tahoma

this is Lucidia

this is Times New Roman

Press the <HTML> button in this edit box to view the source

Code Snippet
<SPAN style="FONT-FAMILY: Verdana,Geneva,Arial,Sans-serif"><FONT face="Times New Roman, Times, Serif">this is Times New Roman</FONT></SPAN>

- Times New Roman chosen for face

You will notice that there are a number of font names specified in the Font-family style attribute. I think this is used to allow the browser to choose the first available font to display the characters within the <span>

Whether or not a particular font is installed on a client will depend upon the OS. I don't think Tahoma was distributed with win98.

Press the Font Style dropdown menu on this edit box and you will see a listing of 8. They all seem to work on my XP box.

There used to be a mechinism in IE to download and install a font if it was not installed on the client, but I have not seen this happen in a long time.. I think that Language Packs are now including the necessary fonts to display the characters of a particular language.

Use the Charmap utility (Start>Run.... enter Charmap)

To select the font to display the character that you want.

Regards.