Конфигурация Firefox - Для чего нужен параметр font.internaluseonly.changed?

1886
BadHorsie

В конфигурации Firefox ( about:config) значение выделено жирным шрифтом:

font.internaluseonly.changed user set boolean true 

Для чего предназначен этот параметр и что означает это значение?

Firefox 40.0

2

2 ответа на вопрос

2
user2428118

After reading some pieces of the Firefox source code related to the preference and a Bugzilla ticket that's related to it, I've come to the conclusion that the preference works serves as a kind of "trigger" when the fonts installed on a computer change.

Web pages can specify what font should be used for (parts of) a web page, and to which font a browser should fall back if that font is unavailable. To quote the Mozilla Developer Network article about this:

The font-family CSS property lets you specify a prioritized list of font family names and/or generic family names for the selected element. Values are separated by a comma to indicate that they are alternatives. The browser will select the first font on the list that is installed on the computer or that can be downloaded using a @font-face at-rule.

But what will happen if somebody installs or removes a font while Firefox is running? Well, turns out the Firefox developers have thought of that. Firefox is asking the operating system to notify it if the list of installed fonts changes and, if that happens, it will notify the parts of the browser responsible for rendering the correct fonts on web pages that they should re-fetch the font list and use that for determining which fonts to show.

But how will get the "font change listener" get that information across to the parts of Firefox where it's needed? Apparently, the easiest way to do that is by flipping a preference (from true to false or from false to true, doesn't matter); Firefox components can easily watch a preference for changes, and if it changes, the components responsible for font handling know they should re-fetch the font list.

0
MC10

В соответствии с этим он используется для предпочтений поддержки FreeType 2 в Linux. Единственная информация, которую предоставляет документация:

font.internaluseonly.changed

ЗАБРОНИРОВАНО: не изменять

Это обсуждалось в ветке здесь . Если оно выделено жирным шрифтом, это означает, что оно было установлено пользователем или чем-то еще. Вы можете сбросить его до значения по умолчанию и посмотреть, что произойдет.

Если значение сбрасывается (пустое и не выделено жирным шрифтом) после сброса настроек, тогда этот префикс больше не существует и будет удален после закрытия и перезапуска Firefox.

Пользователь решил сбросить настройки и предпочтения исчезли. Они также сказали, что у них возникли проблемы, когда символы были перемешаны при наборе текста. Сброс этого предпочтения исправил это для них.