[WIP] Implementation of an Easy Mode in KCM fonts module
Needs ReviewPublic

Authored by harmathy on Dec 10 2018, 5:56 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

This is a work in progress implementation of T7927

Diff Detail

Repository
R119 Plasma Desktop
Lint
Lint Skipped
Unit
Unit Tests Skipped
harmathy created this revision.Dec 10 2018, 5:56 PM
Restricted Application added a project: Plasma. · View Herald TranscriptDec 10 2018, 5:56 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
harmathy requested review of this revision.Dec 10 2018, 5:56 PM
harmathy edited the summary of this revision. (Show Details)Dec 10 2018, 6:14 PM
  1. This needs screenshots. :)
  2. Don't you think it's premature to submit code before we've settled on what it is we actually want? I don't see any consensus in T7927. Personally I am not at all sold on the idea of presenting users with ten font rendering options and expecting them to be able to choose their favorite. The differences between most of them are minuscule and seem all but impossible for someone who's not a font nerd to distinguish. The idea of visual previews seems sound, but I think we would need to limit them to choices that lay people actually have a chance of understanding and distinguishing between.

Please consider this work in progress. There are no reviewers. Is there another way to mark this as "not ready"?

kcms/fonts/fonts.cpp
505

This doesn't work on current kde-neon/dev/unstable

The Qt documentation http://doc.qt.io/qt-5/qqmlengine.html#addImageProvider says:

All required image providers should be added to the engine before any QML sources files are loaded.

At this point however qml files are already loaded.

Is there another way to mark this as "not ready"?

We typically write "WIP:" or "RFC:" in the title, you can also set the review status to "Changes planned"

harmathy retitled this revision from Implementation of an Easy Mode in KCM fonts module to [WIP] Implementation of an Easy Mode in KCM fonts module.Dec 11 2018, 11:38 AM
harmathy planned changes to this revision.Dec 11 2018, 11:43 AM

Thanks for the help.

davidedmundson added inline comments.
kcms/fonts/fonts.cpp
505

What prevents us moving this to the constructor?

yurchor added inline comments.
kcms/fonts/freetype-renderer.h
488

Typo: imperssion -> impression

489

Typo: parametrs -> parameters

493

Typo: anti-alising -> anti-aliasing

kcms/fonts/menupreview.cpp
251

Typo: temporariliy -> temporarily

harmathy updated this revision to Diff 47361.Dec 11 2018, 3:23 PM

fix some rendering issues, fix logical errors

harmathy marked 4 inline comments as done.Dec 11 2018, 3:24 PM
harmathy added inline comments.Dec 11 2018, 3:29 PM
kcms/fonts/freetype-renderer.cpp
342–345

sub-pixel rendered glyphs have unusual color haze