Enable AAT font embed render in Firefox

Mac က Firefox မှာ Unicode Font embed မမြင်ရပါဘူး။ မြင်ရအောင်လို့ config ရဲ့ Setting ကို ပြင်ဖို့လိုပါတယ်။ Address bar မှာ about:config ဆိုပြီး ရိုက်လိုက်ပါ။

gfx.downloadable_fonts.sanitize

ကို ရှာပြီး false လုပ်ပေးလိုက်ပါ။ page ကို refresh ပြန်ချကြည့်ပါ။ AAT အလုပ်လုပ်သွားတာကို တွေ့ရပါမယ်။

The font will work as intended if it is installed locally on the Mac. It doesn’t render correctly when downloaded using @font-face because the OTS font sanitizer does not support parsing and checking the ‘morx’ table needed for AAT layout, so it strips this table from the downloaded .ttf file.

You can confirm this by disabling the sanitizer (set gfx.downloadable_fonts.sanitize to false in about:config) and reloading the page. However, note that this setting may allow web pages with broken or malicious downloadable fonts to disrupt/crash the browser or even the OS, so it is not recommended for normal use.

— Jonathan Kew

ref: https://bugzilla.mozilla.org/show_bug.cgi?id=768322

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.