Пример #1
0
        public byte[] method_0()
        {
            if (this.byte_0 == null)
            {
                try
                {
                    switch (Class61.GetFontData(this.class53_0.Handle, Class46.smethod_0("ttcf"), 0U, (byte[])null, 0U))
                    {
                    case 0:
                    case uint.MaxValue:
                        this.byte_0 = this.method_2();
                        break;

                    default:
                        this.byte_0 = this.method_1();
                        break;
                    }
                }
                catch (Exception ex)
                {
                    throw new Exception(string.Format("Failed to load data for font {0}", (object)this.FaceName), ex);
                }
            }
            return(this.byte_0);
        }
Пример #2
0
        private byte[] method_2(string tableName)
        {
            uint dwTable = Class46.smethod_0(tableName);

            byte[] lpvBuffer = new byte[Class61.GetFontData(this.class53_0.Handle, dwTable, 0U, (byte[])null, 0U)];
            if (Class61.GetFontData(this.class53_0.Handle, dwTable, 0U, lpvBuffer, (uint)lpvBuffer.Length) == uint.MaxValue)
            {
                throw new Exception("Failed to retrieve table " + tableName);
            }
            return(lpvBuffer);
        }
Пример #3
0
 public static bool smethod_2(string string_2, string string_3)
 {
     return(Class46.smethod_0(string_2, string_3));
 }