コード例 #1
0
ファイル: RequestFont.cs プロジェクト: BiDuc/PixelFarm
        //each platform/canvas has its own representation of this Font
        //this is just a request for specficic font presentation at a time
        //-----

        public RequestFont(string facename, float fontSizeInPts, FontStyle style = FontStyle.Regular)
            : this(facename, Len.Pt(fontSizeInPts), style)
        {
        }
コード例 #2
0
 public static RequestFont FromFile(string typefacePath, float sizeInPoints) => FromFile(typefacePath, Len.Pt(sizeInPoints));
コード例 #3
0
 public static Choice ChoiceFromFile(string typefacePath, float sizeInPoints) => ChoiceFromFile(typefacePath, Len.Pt(sizeInPoints));
コード例 #4
0
 public RequestFont(string fontFamily, float fontSizeInPts, ushort fontWeight = 400, RequestFontStyle cssFontStyle = RequestFontStyle.Regular)
     : this(fontFamily, Len.Pt(fontSizeInPts), fontWeight, cssFontStyle)
 {
 }