Why does the html object not work on win chrome?

HTML objects do not work on chrome and IE (on windows).

I have entered the following code on my page and it works fine on mac chrome or firefox or safari, but not windows.

<span class="font-family:Arial;">&lang; &rang; βŒͺ 〈 </span> 
+6
source share
3 answers

This particular character is simply a unicode code number, which is an arbitrary number. There are many unicode encodings that do not have an β€œofficial” character. Even if they have a character, it is not necessary that your font has a character for this code. If you choose a different font, you can get a different character.

I looked at the CSS for the page and it shows this character displayed in Arial (plus a lot of other fonts that don't matter). Windows comes with Arial, so it should always pick this font first. It seems that Arial does not have a character for this unicode code. Each time you don’t have a glyph for a codeword, it puts in some form a box indicating that there is no glyph

+2
source

This is primarily a font problem, although there is an unpleasant silence in the HTML specs.

Modern browsers interpret &lang; and &rang; as referring to the U + 27E8 MATH LEFT ANGULAR CHAIR "⟨" and U + 27E9 MATHEMATICAL RIGHT ANGLE CHAIR "⟩", unofficially known as "bra" and "ket". This interpretation becomes official in the name of symbolic links in HTML5.

These symbols are suitable for use in many mathematical notations, and the ISO 80000-2 standard clearly indicates that they are used, for example. for some scalar product designations. But support for them in fonts is quite limited. On older Windows systems, no fonts contain them. On new Windows systems, starting with Windows Vista, Cambria Math should be available. You may have tested the old version of Windows, but it is also possible that Chrome cannot find the font you want. To give him a helping hand, use the CSS rule that this font offers, for example. with attribute

 style="font-family: Cambria Math" 

You might want to add some other fonts to the list using fonts that are known to contain characters. See My Guide to Using Special Characters in HTML .

The disgusting change is that in HTML 4.01 in the entities &lang; and &rang; defined as relating to U + 2329 ONION ANGLE HOUSING "<" and U + 232A RIGHT ANGLE CORRECTION ">". They are logically less satisfactory (and deprecated from Unicode Standard), but they have slightly broader font support.

Thus, in addition to declaring fonts containing the characters you use, you need to decide which pair of these characters you use or use something else; This is a difficult question. If you use them, it is better to use them as such (in an HTML document encoded with UTF-8) or using numeric characters, such as &#x27e8; . The reason is that &lang; and &rang; should not work sequentially; they probably work with HTML5 in all modern browsers, but there is hardly any reason to take a chance when you can unambiguously specify the characters you need.

+6
source

It depends on the nature and fonts in the system that your reader uses. The problem is that these characters are not part of MathJax web fonts, so MathJax must fall away from system fonts in order to find them. Some browsers are better than others. Your configuration controls which MathJax fonts are listed for the browser to view, so you can change this to include fonts where you know that your entities can be found (and you might think that you might have people, reading your site on Windows, Mac and Linux, as well as on mobile devices, so such solutions are not always easy).

Please note that when installing STIX fonts, it works for you. This is because STIXGeneral is in the list of default fonts that MathJax uses for unknown characters. You want to add others to this list (it is stored in the undefinedFamily property of the HTML-CSS and SVG sections of your configuration). However, please note that IE will stop checking fonts as soon as it detects a font installed on the system, even if it does not contain the desired character and later fonts in the list, so you must be careful with the order you use.

+1
source

All Articles