H. Utku Maden
a1f4e6a4dc
Due to unforseen naming conflicts, the project has been rebranded under the ReFuel umbrealla and will now be referred to as Dashboard from now on. Other changes will occur to suit the library more for the engine whilst keeping the freestanding nature of the library. Rename folder. Rename to Dashboard.OpenTK Rename to Dashboard.Media.Defaults. Do the last renames and path fixes.
24 lines
508 B
C#
24 lines
508 B
C#
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using System.IO;
|
|
using Dashboard.PAL;
|
|
|
|
namespace Dashboard.Media.Defaults
|
|
{
|
|
public class FreeTypeFontFactory : IFontFactory
|
|
{
|
|
public bool TryOpen(Stream stream, [NotNullWhen(true)] out QFont font)
|
|
{
|
|
try
|
|
{
|
|
font = new QFontFreeType(stream);
|
|
return true;
|
|
}
|
|
catch
|
|
{
|
|
font = null;
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
} |