為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Font doesn't italic on canvas

  • 5 回覆
  • 2 有這個問題
  • 11 次檢視
  • 最近回覆由 cor-el

more options

Hi all! I'm a web developer. I'm making a web for making infographic by canvas. But I have a problem about render italic on Firefox Here is my test page http://jsfiddle.net/suongphanthanh/79arnomz/ You can see the custom font from google and It doesn't render as italic. Other default font is working. Can somebody help me? Thanks for every ideas!

Hi all! I'm a web developer. I'm making a web for making infographic by canvas. But I have a problem about render italic on Firefox Here is my test page http://jsfiddle.net/suongphanthanh/79arnomz/ You can see the custom font from google and It doesn't render as italic. Other default font is working. Can somebody help me? Thanks for every ideas!

所有回覆 (5)

more options

The result appears to render in italics on my end.

Try Firefox Safe Mode to see if the problem goes away. Firefox Safe Mode is a troubleshooting mode that temporarily turns off hardware acceleration, resets some settings, and disables add-ons (extensions and themes).

If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:

  • Click the menu button New Fx Menu, click Help Help-29 and select Restart with Add-ons Disabled.

If Firefox is not running, you can start Firefox in Safe Mode as follows:

  • On Windows: Hold the Shift key when you open the Firefox desktop or Start menu shortcut.
  • On Mac: Hold the option key while starting Firefox.
  • On Linux: Quit Firefox, go to your Terminal and run firefox -safe-mode
    (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)

When the Firefox Safe Mode window appears, select "Start in Safe Mode".

SafeMode-Fx35

If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme, or hardware acceleration. Please follow the steps in the Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems article to find the cause.

To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.

When you figure out what's causing your issues, please let us know. It might help others with the same problem.

more options

From what I can see, that particular font doesn't have an italic style:

Firefox sometimes substitutes a different font face to cover missing styles, but not for this one for some reason.

more options

Wesley Branton said

The result appears to render in italics on my end. Try Firefox Safe Mode to see if the problem goes away. Firefox Safe Mode is a troubleshooting mode that temporarily turns off hardware acceleration, resets some settings, and disables add-ons (extensions and themes). If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:
  • Click the menu button New Fx Menu, click Help Help-29 and select Restart with Add-ons Disabled.
If Firefox is not running, you can start Firefox in Safe Mode as follows:
  • On Windows: Hold the Shift key when you open the Firefox desktop or Start menu shortcut.
  • On Mac: Hold the option key while starting Firefox.
  • On Linux: Quit Firefox, go to your Terminal and run firefox -safe-mode
    (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
When the Firefox Safe Mode window appears, select "Start in Safe Mode".
SafeMode-Fx35
If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme, or hardware acceleration. Please follow the steps in the Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems article to find the cause. To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again. When you figure out what's causing your issues, please let us know. It might help others with the same problem.

Thanks for your idea. I got it. I found out it come from firefox theme. But I'm making a website and I cannot ask my users switch to safe mode everytime they access my website. jscher2000 said

From what I can see, that particular font doesn't have an italic style: Firefox sometimes substitutes a different font face to cover missing styles, but not for this one for some reason.

But I it's working on other browser and Firefox safe mode!

Thanks a lots for coming with me!

由 suongphanthanh 於 修改

more options

Hmm, yes, it works in Firefox's Safe Mode. Or in regular mode with hardware acceleration disabled. So it's something about hardware acceleration, but I have no idea what.

more options

I assume that this is a font issue and Firefox selects the font from the available variants in this font-family.

  • Bug 644385 - Arial Narrow, Arial Black fonts do not show on page (comment 8)
When DirectWrite rendering is used rather than GDI rendering, font families are grouped differently How a browser reacts here will depend on which font subsystem it's using. Windows has two different font subsystems: GDI and DirectWrite.