dotnet / dotnet/macios

It would be nice if CTFont constructor's matrix parameter was "in" instead of "ref"

Open
#13,622 1 comment 0 reactions 0 assignees View on GitHub
copilot-candidate enhancement good first issue
Dominant language
C#
Stars
2.9k
Forks
576
Avg merge
2d 13h
Merged PRs (30d)
96

Description

This might be a problem throughout Xamarin.Mac and Monotouch, but CTFont constructor is currently defined as:

```cs
public CTFont(CTFontDescriptor descriptor, nfloat size, CTFontOptions options, ref CGAffineTransform matrix);
```

whereas the native side is:

```cs
CTFontRef CTFontCreateWithName ( CFStringRef name, CGFloat size, const CGAffineTransform *matrix );
```

not being an "in" parameter means I can't pass a temporary object to the constructor, which is a very minor but avoidable PITA, if the native API was bound better.

---

Source: https://bugzilla.xamarin.com/28/28349/bug.html

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.