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

Skip to content
Commit 33588dab authored by Eric Fischer's avatar Eric Fischer
Browse files

Cherry-pick into donut: DO NOT MERGE

commit a9f1dd02

Make <font size> and <font height> in string resources respect density.

TextPaint gains a "density" field so that TextView can pass the density
along.  AbsoluteSizeSpan gains a new flag to indicate that its argument
is in dip instead of in physical pixels.  LineHeightSpan gains an inner
interface whose chooseHeight() method includes a TextPaint argument so
it can get at the density.  And when StringBlock creates the markup
objects, it now uses the density-aware versions.

These are all @hidden here since they are not part of the donut API.

Bug 2174236

Change-Id: I61b20d961707768d14387c37dd41ae38b21e7c7d
parent ac62c84a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment