Bug 4197 - NSString DrawString actualFontSize should be out param
Summary: NSString DrawString actualFontSize should be out param
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 5.2
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Sebastien Pouliot
Depends on:
Reported: 2012-04-02 16:53 UTC by Eric Fikus
Modified: 2012-04-03 15:35 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Eric Fikus 2012-04-02 16:53:51 UTC

The iOS method takes a (CGFloat *) for actualFontSize: On input, a pointer to a floating-point value. On return, this value contains the actual font size that was used to render the string.

I was going to check the binding for NSString sizeWithFont:minFontSize:actualFontSize:forWidth:lineBreakMode: but can't seem to find this method in MonoTouch.
Comment 1 Sebastien Pouliot 2012-04-03 11:34:00 UTC
You're right about drawAtPoint:forWidth:withFont:minFontSize:actualFontSize:lineBreakMode:baselineAdjustment: it should a a "ref float"

and sizeWithFont:minFontSize:actualFontSize:forWidth:lineBreakMode: was not bound (originally) because of issues wrt "ref float".

I'll check (prety sure it's fixed) about the issue and fix/add them. Thanks for the report.
Comment 2 Sebastien Pouliot 2012-04-03 15:35:46 UTC
master: d606c82d83b9402a6a2b07c690fbac8315a6b46a
5.2-series: 3cc7634c9707d08698a2082c61f15472f3339e14

QA: unit tests added in both master and 5.2-series