Questions tagged [font-scaling]

Font scaling is an approach to map real-world dimensions to logical dimensions by changing the base size of fonts.

25 questions
5
votes
1 answer

React Native force component refresh when the app goes to foreground

My app displays some Texts. I need to re-render a Component when the font size changes via Settings --> Accessibility --> Font size: So basically this is se sequence: The app is opened (foreground). The user opens the Phone Settings so the app…
4
votes
0 answers

How to prevent the Display size from scaling?

I have make the changes in the app so the fonts will scale by using the sp for the textsizes but at the same time i also want to restrict the display size to scale my app. For reference I have used this link. But it will cause problems in some…
Gopal Awasthi
  • 423
  • 1
  • 6
  • 15
3
votes
3 answers

Prevent system font scaling - Jetpack Compose

I am trying to restric the app from affected fro system font scaling. I had gone through many solutions but none helped. Most of them tell use dp instead of sp for text sizes but in compose we can use only sp if i am right as it expects a Text…
3
votes
1 answer

Icon file invalid in Win7 only with fonts scaled to 125%

A customer has his fonts enlarged to 125% on Windows 7-64. This causes our app to crash with this error: System.ArgumentException: Argument 'picture' must be a picture that can be used as a Icon. To track down the problem, I loaded Visual Studio…
XKCD137
  • 357
  • 4
  • 14
2
votes
1 answer

Font scaling based on width of container in Bootstrap

How can one scale a block of text (with font-scaling) in Bootstrap Framework? Width of columns is the main difficulty, because it's fluid.
1
vote
1 answer

Scaling the font width only while keeping the font height the same using reportlab

I'm using Python and reportlab to generate PDFs. I would like to switch from the font CourierCondensed to Courier scaled by 90 %. However, I would like to scale the font width only, while keeping the font height the same. This is how my paragraph…
Hagbard
  • 3,430
  • 5
  • 28
  • 64
1
vote
0 answers

How to make text as large as possible while wrapping only twice in CSS?

How can I use CSS to make the font size of text as big as possible but only wrap twice? Example of what I mean: I'd like to turn this: into this: Here is the sample code I'm working with: