Exemplo n.º 1
0
 public VectorFont(FontResource res, int size)
 {
     Size = size;
     if (GameController.OnGodot)
     {
         _font = new Godot.DynamicFont
         {
             FontData = res.FontData,
             Size     = size,
         };
     }
     else
     {
         Handle = IoCManager.Resolve <IFontManagerInternal>().MakeInstance(res.FontFaceHandle, size);
     }
 }
Exemplo n.º 2
0
 public VectorFont(FontResource res, int size)
 {
     Size   = size;
     Handle = IoCManager.Resolve <IFontManagerInternal>().MakeInstance(res.FontFaceHandle, size);
 }