Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- mGdiFont = new System.Drawing.Font(family, fontSize, FontStyle.Regular, GraphicsUnit.Pixel);
- var maxTextureSize = target.GetMaximumTextureSize();
- mTextureSize = Math.Min(Math.Min(maxTextureSize.Height, maxTextureSize.Width), 1024);
- byte[] letters = new byte[223];
- for (int i = 33; i < letters.Length; ++i)
- {
- letters[i - 33] = (byte)i;
- }
- var encoding = Encoding.GetEncoding(1256);
- string str = encoding.GetString(letters);
- str = new string(str.Except(new char[] { '\0' }).ToArray());
- }
- private List<Texture> mFontTextures = new List<Texture>();
- private int mTextureSize;
- private System.Drawing.Font mGdiFont;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment