Default autosize doesn't work with custom font
See original GitHub issueWith default font, default autosize works properly. The labels are clipped only at the end:
With custom font, labels are cut off at beginning and end:
I expect labels to be clipped only at the end.
Repro:
- Online editor with spec
- Open Chrome Developer Tools. Run in Console:
var link = document.createElement('link'); link.href = "https://fonts.googleapis.com/css?family=Montserrat"; link.rel = "stylesheet"; document.body.prepend(link);
- Now text is clipped.
- If you delete second Montserrat line, text will no longer be clipped.
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Autosizing of TextView doesn't work (Android O)
It should be automatically resized so it displays the whole text (all characters + not cropped) in the biggest possible textSize .
Read more >Autosize TextViews - Android Developers
There are three ways you can set up the autosizing of TextView , described in the sections that follow: Default; Granularity; Preset sizes....
Read more >Scaling Fonts Automatically | Apple Developer Documentation
In Interface Builder, select the text style from the Font menu, then select the Automatically Adjust Font checkbox to the right of Dynamic...
Read more >Use Custom Fonts - Tableau Help
To use a custom font in Tableau, the first step is to install it on the computers that are ... To resolve this...
Read more >How to use Dynamic Type with a custom font - a free SwiftUI ...
To work around this we need to create a custom ViewModifier that can scale up our font size based on the current accessibility...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks. Preloading the font was difficult with Create React App. Here’s how I did it, in case it helps anyone else.
Thanks for sharing!