コード例 #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);
     }
 }
コード例 #2
0
 public VectorFont(FontResource res, int size)
 {
     Size   = size;
     Handle = IoCManager.Resolve <IFontManagerInternal>().MakeInstance(res.FontFaceHandle, size);
 }