D6795: Honor system font settings

Kai Uwe Broulik noreply at phabricator.kde.org
Thu Jul 20 09:36:43 UTC 2017


broulik created this revision.
Restricted Application added a project: Plasma.
Restricted Application added a subscriber: plasma-devel.

REVISION SUMMARY
  This adds a `FontsPlugin` that will apply system font settings to the browser as far as it can get.
  It only applies the font family for normal and monospace font but neither font size (since Chrome expects that in pixels but we use points) nor style (italic, bold)

TEST PLAN
  F3815344: Screenshot_20170720_113420.png <https://phabricator.kde.org/F3815344>
  
  Before:
  F3815345: Screenshot_20170720_113508.png <https://phabricator.kde.org/F3815345>
  After:
  F3815346: Screenshot_20170720_113526.png <https://phabricator.kde.org/F3815346>
  
  Verified that:
  
  - Fonts are applied on browser startup
  - Changing fonts in System Settings is applied immediately
  - Disabling the plugin reverts fonts back to browser's built-in defaults
  - Enabling the plugin applies fonts again
  - Changing fonts in System Settings is ignored when plugin is disabled

REPOSITORY
  R856 Plasma Browser Integration

REVISION DETAIL
  https://phabricator.kde.org/D6795

AFFECTED FILES
  extension/_locales/en/messages.json
  extension/constants.js
  extension/extension.js
  extension/manifest.json
  extension/options.html
  host/CMakeLists.txt
  host/fonts.cpp
  host/fonts.h
  host/main.cpp

To: broulik, davidedmundson, fvogt
Cc: plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, lukas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170720/52e032f9/attachment-0001.html>


More information about the Plasma-devel mailing list