Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安卓字体大小自适应显示 fontBoosting on Android #2

Open
Germxu opened this issue Mar 29, 2021 · 0 comments
Open

安卓字体大小自适应显示 fontBoosting on Android #2

Germxu opened this issue Mar 29, 2021 · 0 comments
Labels
Browser New features on updated browser

Comments

@Germxu
Copy link
Owner

Germxu commented Mar 29, 2021

功能描述

webkit给移动端浏览器提供的一个特性的Text Autosizer特性,也叫做Font Boosting-字体提升、Font Inflation-字体膨胀。

作用

在手机上浏览网页时,很可能因为原始页面宽度较大,在手机屏幕上缩小后就看不清其中的文字了。而 Font Boosting 特性在这时会自动将其中的文字变大,可以让用户方便阅读页面中的文本。

触发条件

  • 在默认视口980的情况下,页面会在屏幕中缩小显示,并且文本比较多的情况下,会触发Text Autosizer;
  • 设置页面在视口中显示时缩小显示,并且文本比较多的情况下,会触发Text Autosizer;
  • 如果有以上情况,但是文本的量不都多,也是不会触发此问题的,请知晓;

问题解决方案

  • 在发生此问题的标签上设置高度;
  • 在发生此问题的标签上设置max-height

引文
引文
谷歌浏览器的font boosting[Text Autosizer]

@Germxu Germxu added the Browser New features on updated browser label Mar 29, 2021
@Germxu Germxu changed the title 安卓字体适应显示 fontBoosting on Android 安卓字体大小自适应显示 fontBoosting on Android Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Browser New features on updated browser
Projects
None yet
Development

No branches or pull requests

1 participant