public Font3D(string fontcharlist, int codepage) { Head = new byte[] { (byte)'T', (byte)'A', (byte)'M', (byte)'F', (byte)'N', (byte)'T', (byte)'3', (byte)'D' }; //filesize = 0; pageCode = codepage; string temstr = TEXTCOLL.Reduce(File.ReadAllText(fontcharlist, Encoding.GetEncoding(codepage))); //charscount = CODETBL.unicode.Length; charscount = temstr.Length; chs = new CHAR3D[charscount]; //char[] temchar = CODETBL.unicode.ToCharArray(); char[] temchar = temstr.ToCharArray(); for (int i = 0; i < charscount; i++) { chs[i].value = temchar[i].ToString(); chs[i].code = temchar[i]; } }
public Font3D() { Head = new byte[] { (byte)'T', (byte)'A', (byte)'M', (byte)'F', (byte)'T', (byte)'3', (byte)'D', 0 }; //filesize = 0; pageCode = 1200; string temstr = TEXTCOLL.Reduce(CODETBL.unicode); //charscount = CODETBL.unicode.Length; charscount = temstr.Length; chs = new CHAR3D[charscount]; //char[] temchar = CODETBL.unicode.ToCharArray(); char[] temchar = temstr.ToCharArray(); for (int i = 0; i < charscount; i++) { chs[i].value = temchar[i].ToString(); chs[i].code = temchar[i]; } }