dotnet / dotnet/winforms

Test failure:System.Drawing.Tests.FontTests.FromLogFont_ValidLogFont_ReturnsExpected(fontStyle: Bold, weight: -2147483648, charSet: 0)

Open
#8,813 0 comments 0 reactions 0 assignees View on GitHub
area-System.Drawing
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

Test `System.Drawing.Tests.FontTests.FromLogFont_ValidLogFont_ReturnsExpected(fontStyle: Bold, weight: -2147483648, charSet: 0)` has failed:

```
Error message
System.ArgumentException : Only TrueType fonts are supported. This is not a TrueType font.

Stack trace
at System.Drawing.Font.FromLogFontInternal(LOGFONT& logFont, IntPtr hdc) in /_/src/System.Drawing.Common/src/System/Drawing/Font.Windows.cs:line 268
at System.Drawing.Font.FromLogFont(Object lf, IntPtr hdc) in /_/src/System.Drawing.Common/src/System/Drawing/Font.Windows.cs:line 326
at System.Drawing.Font.FromLogFont(Object lf) in /_/src/System.Drawing.Common/src/System/Drawing/Font.Windows.cs:line 247
at System.Drawing.Tests.FontTests.FromLogFont_ValidLogFont_ReturnsExpected(FontStyle fontStyle, Int32 weight, Byte charSet) in /_/src/System.Drawing.Common/tests/FontTests.cs:line 658
```

Build: -[20190918.39](https://dnceng.visualstudio.com/public/_build/results?buildId=359768
)(Master)

Details:
https://helix.dot.net/api/2019-06-17/jobs/d2810871-f05f-4b10-8aac-475b8fc1a1d9/workitems/System.Drawing.Common.Tests/console

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.