1
0
mirror of synced 2025-01-30 19:43:47 +01:00
OpenTaiko/TJAPlayer3/Helpers/HPrivateFastFont.cs

32 lines
916 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TJAPlayer3
{
internal class HPrivateFastFont
{
static string DefaultFont = "MS UI Gothic";
public static CPrivateFastFont tInstantiateFont(string fontName, int scale)
{
if (!string.IsNullOrEmpty(fontName))
return (new CPrivateFastFont(new FontFamily(fontName), scale));
return (new CPrivateFastFont(new FontFamily(DefaultFont), scale));
}
public static CPrivateFastFont tInstantiateMainFont(int scale)
{
return tInstantiateFont(TJAPlayer3.ConfigIni.FontName, scale);
}
public static CPrivateFastFont tInstantiateBoxFont(int scale)
{
return tInstantiateFont(TJAPlayer3.ConfigIni.BoxFontName, scale);
}
}
}