16 lines
340 B
C#
16 lines
340 B
C#
|
|
using System;
|
|||
|
|
using CoreText;
|
|||
|
|
using Foundation;
|
|||
|
|
|
|||
|
|
namespace Xwt.Gtk.Mac
|
|||
|
|
{
|
|||
|
|
public class GtkMacFontBackendHandler : Xwt.GtkBackend.GtkFontBackendHandler
|
|||
|
|
{
|
|||
|
|
protected override bool AddFontFile (string fontPath)
|
|||
|
|
{
|
|||
|
|
return CTFontManager.RegisterFontsForUrl (NSUrl.FromFilename (fontPath), CTFontManagerScope.Process) == null;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|