Bug 32075 - [iOS9] NSLayoutManager.CGGlyphAtIndex should return NSGlyph, not int
Summary: [iOS9] NSLayoutManager.CGGlyphAtIndex should return NSGlyph, not int
Status: RESOLVED ANSWERED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 8.99 (iOS9 previews)
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-07-17 11:25 UTC by Larry O'Brien
Modified: 2015-07-17 12:00 UTC (History)
2 users (show)

Tags:
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:
Status:
RESOLVED ANSWERED

Description Larry O'Brien 2015-07-17 11:25:11 UTC
Bindings for NSLayoutManager.CGGlyphAtIndex(nuint) and CGGlyphAtIndex(nuint, bool) should return NSGlyph, not uint16:

- (NSGlyph)glyphAtIndex:(NSUInteger)glyphIndex
           isValidIndex:(BOOL *)isValidIndex
Comment 1 Rolf Bjarne Kvinge [MSFT] 2015-07-17 12:00:44 UTC
NSGlyph (and CGGlyph) is in fact a uint16 (from CGFont.h):

> /* A type to represent indexes in a CGFontRef. */
> typedef unsigned short CGFontIndex;
> /* A type to represent glyph identifiers in a CGFontRef. */
> typedef CGFontIndex CGGlyph;

So this is correct afaict