X
Tryk her for at gå til webstedets mobilversion.

Supportforum

Greek letters don't display anymore when I use fontname-"Symbol" in html/javascript. They work in Microsoft Edge.

Skrevet

I am writing code in javascript for astronomers and it uses symbol font for Greek letters. When I display the report on FireFox browser, the Greek letters do not appear instead they are in a different font. My report display fine with Microsoft Edge but I like FF better.

I am writing code in javascript for astronomers and it uses symbol font for Greek letters. When I display the report on FireFox browser, the Greek letters do not appear instead they are in a different font. My report display fine with Microsoft Edge but I like FF better.

Valgt løsning

Fonts like the Symbol font that map on the basic ASCII set may not work in Firefox.

It is best to always use the Unicode representation of characters to avoid font problems because in that case any font that supports those symbols can be used and it works on all platforms if you have a font that covers that Unicode range.

See also:

Læs dette svar i sammenhæng 0

Yderligere systemdetaljer

Installerede plugins

  • Adobe PDF Plug-In For Firefox and Netscape 11.0.18
  • Intel web components for Intel® Identity Protection Technology
  • Intel web components updater - Installs and updates the Intel web components
  • NPWLPG
  • Shockwave Flash 23.0 r0
  • Skype Web Plugin 7.16.0.22
  • WildTangent Games App V2 Presence Detector

Program

  • User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0

Yderligere information

Luk
FredMcD
  • Top 10 Contributor
4272 løsninger 59922 svar

Type about:preferences#content<enter> in the address bar. Across from fonts and colors, press the Advanced button. On the bottom, turn on Allow Web Sites To Choose Their Own.

Fonts Information - Detected via Flash http://browserspy.dk/fonts-flash.php?detail=1

Type '''about:preferences#content'''<enter> in the address bar. Across from '''fonts and colors,''' press the '''Advanced''' button. On the bottom, turn on '''Allow Web Sites To Choose Their Own.''' Fonts Information - Detected via Flash http://browserspy.dk/fonts-flash.php?detail=1

Spørgsmålsstiller

I followed your instructions but there was no allow web sites instead it said allow pages to choose their own fonts

I followed your instructions but there was no allow web sites instead it said allow pages to choose their own fonts
cor-el
  • Top 10 Contributor
  • Moderator
17585 løsninger 159081 svar

Valgt løsning

Fonts like the Symbol font that map on the basic ASCII set may not work in Firefox.

It is best to always use the Unicode representation of characters to avoid font problems because in that case any font that supports those symbols can be used and it works on all platforms if you have a font that covers that Unicode range.

See also:

Fonts like the Symbol font that map on the basic ASCII set may not work in Firefox. It is best to always use the Unicode representation of characters to avoid font problems because in that case any font that supports those symbols can be used and it works on all platforms if you have a font that covers that Unicode range. *https://developer.mozilla.org/Mozilla/Mozilla_Web_Developer_FAQ#Why_aren.E2.80.99t_symbol.2Fdingbat_fonts_working.3F See also: *http://www.alanwood.net/demos/symbol.html

Spørgsmålsstiller

I used the code for Greek letters instead of the letter and using Symbol font. It works ok but now I have to change all the thousands of letters in my data to create that special unicode.

I used the code for Greek letters instead of the letter and using Symbol font. It works ok but now I have to change all the thousands of letters in my data to create that special unicode.

Spørgsmålsstiller

I used javascript/canvas to display my Greek letters. I used if (Mid(AA[x],5,6)=="a"){context.fillText(Left(AA[x],4) + "\u03B1" + Right(AA[x],30),1,12);} In other words I broke up the text data into sections where I could convert the letter in Mid(AA[x],5,6) to a Greek letter when it is time to display on the screen. That way the letter stays normal in the data section.

I used javascript/canvas to display my Greek letters. I used if (Mid(AA[x],5,6)=="a"){context.fillText(Left(AA[x],4) + "\u03B1" + Right(AA[x],30),1,12);} In other words I broke up the text data into sections where I could convert the letter in Mid(AA[x],5,6) to a Greek letter when it is time to display on the screen. That way the letter stays normal in the data section.