Orange-Confort-plus
Orange-Confort-plus copied to clipboard
Improve fonts settings
To explore (maybe):
- [ ] font picker should allow to preview font in the list (ala Word or Outlook).
- [ ] include
.woff2fonts instead of usingdata:, in extension — server still requiresdata:, probably? This is needed because thedata:protocol is forbidden on some sites via Content-Security-Policy (e.g. github.com or MDN). - [ ] give a shot to the
fontLoadingAPI to check whether a font is loaded or not, before trying top use it. - [ ] Using some modern CSS, we could ensure every fonts available in Confort+ is applied with the exact same physical properties, thus reducing the visual reflow when switching from one font to another. Alex Barashkov wrote "Advanced web font optimization techniques" on pixelPoint blog and it feels really accurate.
- [ ] Chrome has a
fontSettingsAPI that may help reduce the amount of code needed in chromium-based browser extension. - [ ] Firefox allows to drop custom fonts entirely through browserSettings.useDocumentFonts(), which could be an interesting behaviour for users who like their system font?