English 中文(简体)
Resize UIFont Size
原标题:Resize UIFont Size

I m using the OHAttributedLabel as an UILabel replacement. I d like to calculate the size of my UIFont relying on the length of the text and the height of the OHAttributedLabel.

label.adjustsFontSizeToFitWidth = YES; doesn t work, OHAttributedLabel doesn t support it and I don t know how I could fix it.

是否有办法计算字体的大小?

提前感谢,

Nicolai

问题回答




相关问题
Possible/howto resize iframe on mouse focus?

I have two iframes next to each other at 50% width and am wondering if it s possible to resize one iframe to 80% when that iframe is moused over. Is it possible? If so, can someone post a small how-to ...

How to resize linked images dynamically in PHP?

On my site I have given an option to user to choose thier profile image Type link of an image Image is a url link, and first I want it to resize to 400x300 (image s original size doesn t matter), ...

Calculate the bounding box of a GDI+ drawing

I am drawing an image from MetaFile (emf) and then apply some rotation transformations to it all within the OnPaint of a UserControl. After applying those transformation how can I calculate the normal ...

Tile inside Accordion does not resize correctly

In a Flex application I m building I have an Accordion with a Tile component as shown: <mx:Accordion id="accordionShoppingBasket" width="100%" resizeToContent="true"> <mx:VBox width="100%...

Resizing an image

The code below works very well for resizing an image by aspect ratio by height and I can also create a separate function by width. But i m not always sure if an image will need to be shrunk by height ...

热门标签