Always taking default font when used family font like "Cordia New" in internet explore through HTML code -
When I have crossed "Cordia New Bold" then displaying text in Internet Explorer "Cordia New Regular" is IE Taking default display font Ie "Times Roman" when I have removed the "Cordia New Regular" font from the control panel, even though the "chorda new bold" font is available in the OS.
Why does not "cordia new bold" mean even though IE is present in the system? How can IE decide that they have to take the "Cordia New Regular" font, even if the "Cordia New Bold" is in the HTML?
For information, this has happened with "Courier New Bold". This means that IE is not able to understand other family fonts such as XXXX bold, XXXX italic It's always taking default default font.
Code:
Output:
This text should be displayed in bold, but should be shown in plain text.
font-family the value of the property should be a name for the font Family No, not the specific font (typeface). Here the font family name is cordia new , so you should use it. And if you are available (and font-style to select an italic typeface if you wish) you should use font-weight to choose a bold typeface .
The following code uses Cordia as a regular and bold form, in the form of failback, using aerial or some other sans-serif fonts. Note that the principle is similar to Ariel; We do not declare the aerial bold but simply choose the wording with aerial and font-weight .
and lieutenant; Div style = "font-family: cordia new, ariel, non-serif, font-size: 18pt" & gt; Hello world! & Lt; Div style = "font-weight: bold" & gt; Hello Bold World! & Lt; / Div & gt; & Lt; / Div & gt;
Comments
Post a Comment