Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd72f7e4 authored by Hans Boehm's avatar Hans Boehm
Browse files

Handle font with missing FIGURE SPACE.

Bug: 27203752

Calculate digit width explicitly instead of relying on FIGURE SPACE.

This makes the calculator work correctly, even with fonts that are
utterly unreasonable for this purpose, like Nova Round. The result
remains ugly, due to highly variable digit widths. But it is correct.

This should have little to no impact on Nexus devices. Empirically
digit widths with our default font are slightly less than the width
of a FIGURE SPACE.  This version of the change does require careful
cross-device testing.

Change-Id: Id6feb0f312bc237ba462165ba2dff7030e04ae3b
parent 52d477a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment