Use UCUnits when converting TWIPs in pixels (and vice versa)

Bug #1535264 reported by Stefano Verzegnassi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Document Viewer App
Fix Released
Medium
Stefano Verzegnassi

Bug Description

We currently use DPIs when converting TWIPs (the size unit used in LibreOffice) in pixels (used for painting the document on the screen).
On desktop everything works as expected but on mobile devices we get some strange result.

Aquaris E4.5:
http://people.canonical.com/~alan/screenshots/device-2016-01-12-133308.png

One Plus One (same also on Meizu MX4):
http://people.canonical.com/~alan/screenshots/device-2016-01-12-133734.png

DESIRED SOLUTION:
We shouldn't use DPIs as reference while performing such convertion.
We should use UCUnits from the Ubuntu UI Toolkit instead: as long as DocViewer runs on a desktop or an Ubuntu mobile device, they grant the best result, since they also take in account the different form factor of the device. Extra, UCUnits *is* convergence-ready.

Tags: loviewer

Related branches

tags: added: loviewer
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-docviewer-app at revision 274, scheduled for release in ubuntu-docviewer-app, milestone ww02-2016

Changed in ubuntu-docviewer-app:
status: In Progress → Fix Committed
Changed in ubuntu-docviewer-app:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.