SystemFonts.Find will throw, not return null
See original GitHub issuehttps://github.com/SixLabors/Fonts/blob/master/src/SixLabors.Fonts/SystemFonts.cs#L36 It says
/// <returns>The family if installed otherwise null</returns>
public static FontFamily Find(string fontFamily) => Collection.Find(fontFamily);
This is not true, it will throw an exception. Simply fix the help documentation. The TryFind is available.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
systemfonts/src/win/DirectWriteFontManagerWindows.cpp at main
unsigned int len = MultiByteToWideChar(CP_UTF8, 0, input, -1, NULL, 0); ... If the default locale is returned, find that locale name, otherwise use...
Read more >SystemFonts.java - Android Code Search
First traverse families which have a 'name' attribute to create fallback map. for (final FontConfig.FontFamily xmlFamily : xmlFamilies) {.
Read more >How do I retrieve a font from the system in SDL?
@OlivierRogier: I am well aware that TTF_OpenFont() returns null; however none of the answers present are usable to me. Passing the absolute ...
Read more >Class FontSettings
Returns the value of the flag that specifies whether or not the rendering engine should use a substitute font when a font in...
Read more >How can I hide the default or system fonts from the type list?
I need to hide the system fonts and the ones that comes with the MacBook Pro and just being able to see in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jsgoupil That’s a really disappointing attitude.
We request individuals fill in the appropriate forms when raising issues because it helps us working on the library (in our spare time I might add with no obligation to you) to properly triage and prioritize issues.
Not only that, it helps others (such as yourself) to determine whether an issue you are encountering is a known issue or a new one, whether a fix is in the works or has even been released.
It’s important that when you visit the repository of an open source project you abide by the rules of that repository. Help us, to help you and others.
@JimBobSquarePants alright, then if that’s too big of a deal understanding my bug report, you can handle it.