question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SystemFonts.Find will throw, not return null

See original GitHub issue

https://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:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JimBobSquarePantscommented, Mar 17, 2020

@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.

1reaction
jsgoupilcommented, Mar 16, 2020

@JimBobSquarePants alright, then if that’s too big of a deal understanding my bug report, you can handle it.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found