473,508 Members | 2,206 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems with Firefox and font-family property

I am having some issues with Firefox not rendering an element with the
correct font. I am using the font-family style within a stylesheet class
definition. I then set the element I am creating to use that class and the
font is not showing correctly. If I set the font-family to "arial" or
"Comic Sans MS" the font shows correctly, however I am trying to use the
"Webdings" font, which is installed on my computer. All fonts show
correctly using IE6. Any ideas?

..cartSlct
{
font-family:webdings;
font-size:12pt;
cursor:default;
width:5%;
}

cellSlct=newRow.insertCell(-1)
cellSlct.appendChild(winDVDCart.document.createTex tNode("4"))

The text should display as an arrow pointing to the right
Jul 21 '05 #1
12 18335
David wrote:
I am having some issues with Firefox not rendering an element with the
correct font. I am using the font-family style within a stylesheet class
definition. I then set the element I am creating to use that class and the
font is not showing correctly. If I set the font-family to "arial" or
"Comic Sans MS" the font shows correctly, however I am trying to use the
"Webdings" font, which is installed on my computer. All fonts show
correctly using IE6. Any ideas?

.cartSlct
{
font-family:webdings;
font-size:12pt;
cursor:default;
width:5%;
}

cellSlct=newRow.insertCell(-1)
cellSlct.appendChild(winDVDCart.document.createTex tNode("4"))

The text should display as an arrow pointing to the right


If you want a right arrow, use the proper HTML character entity, i.e.
'→' or '→'.
Jul 21 '05 #2
On Mon, 18 Jul 2005, David wrote:
however I am trying to use the "Webdings" font,
Don't do that!
http://ppewww.ph.gla.ac.uk/~flavell/...e-harmful.html
which is installed on my computer.
But not on mine.
All fonts show correctly using IE6.


No! Maybe Internet Exploder shows you the page as *you expected*.
But that isn't correct. IE is broken since it displays, e.g.
<font face="Symbol">&Ouml;</font>
as a square root sign. But &Ouml; is an umlaut, not a square root.
http://www.unics.uni-hannover.de/nht...quareroot.html

Jul 21 '05 #3
C A Upsdell wrote:
If you want a right arrow, use the proper HTML character entity, i.e.
'&rarr;' or '→'.


Well, the right arrow that I would LIKE to use is actually the HTML
character entity '&rArr;' or '⇒' but now IE has decided it doesn't
like that one and only displays a box. In addition, how would I put an HTML
character entity reference into my createTextNode statement, it doesn't seem
to interpret anything as anything more than text.

cellSlct.appendChild(winDVDCart.document.createTex tNode("&rArr;"))

How should this look? (sorry if this question should actually be posted
somewhere else, but since I started the topic here....)
Jul 21 '05 #4
David wrote:
C A Upsdell wrote:

If you want a right arrow, use the proper HTML character entity, i.e.
'&rarr;' or '→'.

Well, the right arrow that I would LIKE to use is actually the HTML
character entity '&rArr;' or '⇒' but now IE has decided it doesn't
like that one and only displays a box. In addition, how would I put an HTML
character entity reference into my createTextNode statement, it doesn't seem
to interpret anything as anything more than text.

cellSlct.appendChild(winDVDCart.document.createTex tNode("&rArr;"))

How should this look? (sorry if this question should actually be posted
somewhere else, but since I started the topic here....)


The character entity IS text.

Jul 21 '05 #5
C A Upsdell wrote:
David wrote:
C A Upsdell wrote:

If you want a right arrow, use the proper HTML character entity, i.e.
'&rarr;' or '→'.

Well, the right arrow that I would LIKE to use is actually the HTML
character entity '&rArr;' or '⇒' but now IE has decided it doesn't
like that one and only displays a box. In addition, how would I put an
HTML character entity reference into my createTextNode statement, it
doesn't seem to interpret anything as anything more than text.

cellSlct.appendChild(winDVDCart.document.createTex tNode("&rArr;"))

How should this look? (sorry if this question should actually be posted
somewhere else, but since I started the topic here....)


The character entity IS text.


Ok, so since the character entity IS text, then that should mean that I
wouldn't need the quotes around it? When I leave it without the quotes I
start getting script errors in other places in my document, obviously a
result of taking it out of quotes. How should I go about creating a text
node with that value in it? Also, any ideas why IE6 won't display the
&rArr; character but has no problems displaying the other one, &rarr; ??
Sorry for my ignorance on this topic, it is all kind of new to me.
Jul 21 '05 #6
On Tue, 19 Jul 2005, David wrote:
Ok, so since the character entity IS text, then that should mean
that I wouldn't need the quotes around it?
You're one step further away from what we usually discuss here, namely
some static HTML (or xhtml) with a stylesheet to propose presentation.

You're evidently generating something programmatically. How you do
that is your concern, I'm starting from the result of that program...

The important part, for the current discussion, is the HTML (it
defines the /content/), which makes it really off-topic for this
group, but I'm tackling the question where I found it, for now.

There are (potentially) three ways to represent a character: the coded
character itself, its numeric character reference &#number; (decimal
or hex), or, where available, a character entity &whatever;

If you decide which you prefer, and inject that with whatever software
it is that you're using, then the problem is solved, theoretically.
Also, any ideas why IE6 won't display the &rArr; character but has
no problems displaying the other one, &rarr; ??


Possibly a font limitation. The single arrows are in MS WGL4, so
they'd likely be in any current MS font that offers a wide repertoire
of basically Western characters. The double arrow is not, however.

But it seems to work for me if I choose Lucida Sans Unicode as IE's
default font.

hope this helps a bit

Remark: In general in a web context you have no idea which fonts your
readers may have available. Even if you guess, there are different
versions of the same-named font that have different (sometimes very
different) repertoires. So you do better, in a situation where
unusual characters are needed, /not/ to try to influence their font
choice from a stylesheet.
Jul 21 '05 #7
"David" <dk****@hotmail.com> wrote:
cellSlct.appendChild(winDVDCart.document.createTex tNode("&rArr;"))


Script elements contain character data, not parsed character data
(which may contain entites which will be parsed by the browser).

So you have to use Unicode to denote the character, "\u21D2" in this
case.

Make a post to comp.lang.javascript, if you want to follow-up on this
subject.

Bye,
Martin
Jul 21 '05 #8

On Tue, 19 Jul 2005, Alan J. Flavell wrote:
There are (potentially) three ways to represent a character: the coded
character itself, its numeric character reference &#number; (decimal
or hex), or, where available, a character entity &whatever;


I gather from other followups since, that the second and third options
aren't available to you in your particular context. Apologies if I caused
any confusion.

Jul 21 '05 #9
Alan J. Flavell wrote:

On Tue, 19 Jul 2005, Alan J. Flavell wrote:
There are (potentially) three ways to represent a character: the coded
character itself, its numeric character reference &#number; (decimal
or hex), or, where available, a character entity &whatever;


I gather from other followups since, that the second and third options
aren't available to you in your particular context. Apologies if I caused
any confusion.


No problem, I was able to use the Unicode character code "\u21D2" to get the
character I was looking for, though I am disappointed that the character for
&rArr; will not show up on IE6 under any font I try. Anyways, thanks to
all.
Jul 21 '05 #10
On Mon, 18 Jul 2005 15:22:35 -0700, "David" <dk****@hotmail.com> wrote
or quoted :
All fonts show
correctly using IE6. Any ideas?


Try http://mindprod.com/applets/fontshower.html

to see what fonts are installed on your machine and precisely what
they are called.

Whether it officially matters or not, it is a good idea to get the
case right and exactly where the spaces go.

You are not supposed to put quotes around the generic font names like
sans-serif

--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/...s_rumsfeld.htm

Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes
Jul 21 '05 #11
On Mon, 18 Jul 2005 15:22:35 -0700, "David" <dk****@hotmail.com> wrote
or quoted :
font-family:webdings;


Webdings may presume you have

<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">

It might not have proper Unicode mappings for the entities.

Try just using the unicode entity and leaving the font as is.

See http://mindprod.com/jgloss/unicode.html
or
http://mindprod.com/jgloss/htmlcheat...CIALCHARACTERS

--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/...s_rumsfeld.htm

Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes
Jul 21 '05 #12
On Wed, 20 Jul 2005, David wrote:
No problem, I was able to use the Unicode character code "\u21D2" to
get the character I was looking for, though I am disappointed that
the character for &rArr; will not show up on IE6 under any font I
try.


IE is very strange in some regards. I don't understand the internals,
but I've set out some of my observations, amongst other browsers, at
http://ppewww.ph.gla.ac.uk/~flavell/...ers-fonts.html

However, I'm definite that "Lucida Sans Unicode" contains this
character (I've browsed the font with SIL Viewglyph to be sure).

Arial (the regular font, not the big unicode one) doesn't have the
double arrow, on the other hand.

What struck me as completely bizarre was that when, by chance, I
enabled Japanese language support, IE started to display a whole lot
of extra characters of this kind - even ones which weren't present in
the selected font. Sure: once that has been done, it's hard to
disentangle what's really happening. But I think the SIL Viewglyph
font browser is telling the truth as regards which characters are
really in each font.

I admit that telling your readers that they'd get better display of
these characters by installing Japanese support is quite likely to
"get some funny looks", but it seems to be the case, even so. (Tried
with Win/2K Pro and XP Pro).

cheers
Jul 24 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2519
by: yoni cohen | last post by:
--I'm not a developer and am not very familiar with web design. But I had a quick question about Firefox I had hoped you might be able to answer. Thanks for your time and consideration!-- I just...
5
3996
by: news | last post by:
I've a site: http://gto.ie-studios.net/products.php that looks perfectly fine in Windows whether with IE or Firefox 1.0. But when viewed in the Linux version of Firefox 1.0, images get misaligned...
6
6077
by: mike | last post by:
I have a page that uses a some javascript and it works fine in IE but fails to work in Firefox. Basically what I'm trying to do is have 3 iframes on a page but only displaying one of them at a...
12
2240
by: news | last post by:
I'm having a heck of a time, and I'm hoping someone can take a quick look and see if they can recognize what might be the problem and point me the right direction. My blog page:...
35
2018
by: Aaron Gray | last post by:
Hi, I have some code I just cannot seem to get to work properly on FireFox. It is probably something simple. On FireFox the following code does not seem to terminate in the browser, but it...
2
17071
by: cbjewelz | last post by:
Hey all. So I'm having problems with cross browser alignments. I'm looking at Safari and Mozilla Firefox. I develop in Safari and so it looks perfect there however in Firefox my vertical...
7
4633
by: Xah Lee | last post by:
Look at this page http://xahlee.org/emacs/wrap-url.html Look at it in Firebox, look at it in Safari, in Opera, and look at it in Microsoft Internet Explorer. The only fucked up case, is...
3
3110
by: Tyrone Slothrop | last post by:
I recently converted a large site to Mambo. It has come to my attention that Mac users (IE and Firefox browsers) cannot view the content of the site, though they can view the navigation. Having...
0
2113
by: atarumorooka | last post by:
Hello, yes..it must be hard to try and help someone else coding but today is a full week of sadness and stress for IE CSS rendering and I need your help. Here you have a link that looks nice with...
5
3751
by: johnric | last post by:
I can't seem to get firefox to read the image size in my javascript. It will work in IE and firefox but firefox will not read the image size. Can anyone see the problem in my code? I am new to...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7123
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7326
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7498
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5627
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5053
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.