Merge lp:~rpadovani/reminders-app/1316950 into lp:reminders-app

Proposed by Riccardo Padovani
Status: Merged
Approved by: David Planella
Approved revision: 128
Merged at revision: 129
Proposed branch: lp:~rpadovani/reminders-app/1316950
Merge into: lp:reminders-app
Diff against target: 11 lines (+1/-0)
1 file modified
src/app/qml/ui/NoteView.qml (+1/-0)
To merge this branch: bzr merge lp:~rpadovani/reminders-app/1316950
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
David Planella Approve
Review via email: mp+218829@code.launchpad.net

Commit message

Use Ubuntu Font as default for noteview

Description of the change

This fix uses a undocumented function to set the default font family.

The 'official' way to do this is to use http://qt-project.org/doc/qt-5/qwebsettings.html, but requires some work.

What do you think, is good anyway?

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
David Planella (dpm) wrote :

I'll review in more detail tomorrow, but a couple of things to bear in mind, which I hadn't thought about:

- From the web, you can set different types of font:
  - Helvetica
  - Times New Roman
  - Courier New
  - Georgia
  - Trebuchet
  - Verdana

We should not probably override those with the Ubuntu font (although we could). Another option would be to explicitly set the font to 'Ubuntu' for the notes that are created from Reminders.

Revision history for this message
David Planella (dpm) wrote :

So from what Olivier tells me, setting the standard font won't override those, it will only use the standard font set if there isn't one explicitly set, which is exactly what we want.

review: Approve
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/app/qml/ui/NoteView.qml'
2--- src/app/qml/ui/NoteView.qml 2014-05-07 07:55:08 +0000
3+++ src/app/qml/ui/NoteView.qml 2014-05-08 15:25:18 +0000
4@@ -72,6 +72,7 @@
5 loadHtml(html, "file:///")
6 }
7
8+ experimental.preferences.standardFontFamily: 'Ubuntu'
9 experimental.preferences.navigatorQtObjectEnabled: true
10 experimental.preferredMinimumContentsWidth: root.width
11 experimental.userScripts: [Qt.resolvedUrl("reminders-scripts.js")]

Subscribers

People subscribed via source and target branches