-
Notifications
You must be signed in to change notification settings - Fork 985
Bump ImageSharp.Drawing to 1.0.0 #2099
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
TODO:
|
|
TODO bits are done and tests all run; some examples are erroring but not sure if that's new. |
|
Need to think about why |
|
Only errors that seem to be generated now are related to missing fonts |
Jonarw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the one TODO, looks good to me!
| public override OxySize MeasureText(string text, string? fontFamily = null, double fontSize = 10, double fontWeight = 500) | ||
| { | ||
| return this.MeasureTextLoose(text, fontFamily, fontSize, fontWeight); | ||
| // TODO: should fontFamily be nullable? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Were you able to come to a conclusion on this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The RenderErrorMessage logic leaves it null, which I presume is intentional to allow the render context to pick a simple font if there are rendering errors, or something like that. The example library is also full of null font families, so I don't think we can change it in a hurry. I did spot a bug, though, which I've lazily pushed as a small addition to this PR.
I was going to refit ImageSharp completely, but then I realised that ImageSharp.Drawing is fine with version 1.0.0 still, so this just bumps it so that it's not a beta version.
Checklist
Changes
@oxyplot/admins