Calculate font size from 16 density independent pixels (dp) by using:
size = 16 * ppi/160 * display_factor
We are specifying font size 16dp, and assuming 1dp = 160ppi.
Also apply scaling factor 2 (display_factor).
Differential D28849
loader: use display pixel density for font autoselection tsoome on Feb 22 2021, 9:14 AM. Authored by Tags None Referenced Files
Details
Calculate font size from 16 density independent pixels (dp) by using: We are specifying font size 16dp, and assuming 1dp = 160ppi. test with different systems and resolutions
Diff Detail
Event TimelineComment Actions Works for me, now the font seems fine on a 2160p monitor, and there's no black bar at the bottom of the screen. Comment Actions Don't really have much knowledge in this area to provide a meaningful review I'm afraid.
|