Scaled density is messing with my fonts

谁说我不能喝 提交于 2019-12-13 21:17:50

问题


I have several devices (smartphones and tablets)... but some of them have the value "scaledDensity" set in 1.5 (You can get this value using the DisplayMetrics class). This is a nuisance because all the fonts in my app on that devices are being scaled up by 50%... (All my fonts use "sp"). In fact, all the fonts in the device are scaled up...

Well... the questions are:

Why a manufacturer would want to do that thing... ?

How can I set my fonts to use a scaled density of 1.0?

Thanks!!!

来源:https://stackoverflow.com/questions/11106993/scaled-density-is-messing-with-my-fonts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!