Warning: "The minimum font size is larger than the current font size"

In my application, I am using a custom cell that has a set of labels, I see that xcode shows a warning about the font size in the custom xib cell file:

warning message file: //localhost/Users/mahmoudalgayed/Desktop/Ajurry-date/CustomCell.xib: warning: unsupported configuration: the minimum font size is larger than the current font size

Does anyone know how to get rid of this warning? thanks in advance

+6
source share
4 answers

You must set a minimum font size so that it does not exceed the current size. Have you set a minimum size?

+10
source

I had the same “Unsupported configuration” warning when using iOS 7 text styles (like Body, Footnote, Subhead ...) on UILabel . I fixed it by replacing the minimumFontSize attribute with adjustsFontSizeToFit="NO" .

+2
source

The error is related to the problem. If you have autorun enabled, sometimes by default the minimum font size is equal to the size exceeding your current font size. You may have adjusted the font to a smaller size, and as a result, the minimum font size is now larger than the actual font.

To correct the behavior, in the Autoshrink section, adjust the minimum font size to less than the current font size.

Alternatively, if you do not care about automatically compressing your text to fit the size of the label, you can set "Autoshrink" to "Fixed Font Size", which will also suppress the warning.

+2
source

Changing the font size did not work - I still got the error.

So I fixed this by changing the Autoshrink value from "Minimum Font Size" to "Minimum Font Scale"

enter image description here

0
source

Source: https://habr.com/ru/post/913079/


All Articles