コード例 #1
0
        private void InitFontList()
        {
            Poderosa.Win32.tagLOGFONT lf = new Poderosa.Win32.tagLOGFONT();
            Graphics g   = CreateGraphics();
            IntPtr   hDC = g.GetHdc();

            Poderosa.Win32.EnumFontFamExProc proc = new Poderosa.Win32.EnumFontFamExProc(FontProc);
            IntPtr lParam = new IntPtr(0);

            lf.lfCharSet = 1; //default
            Poderosa.Win32.EnumFontFamiliesEx(hDC, ref lf, proc, lParam, 0);
            //lf.lfCharSet = 128; //日本語
            //lParam = new IntPtr(128);
            //Poderosa.Win32.EnumFontFamiliesEx(hDC, ref lf, proc, lParam, 0);
            g.ReleaseHdc(hDC);
        }
コード例 #2
0
        private void InitFontList()
        {
            Poderosa.Win32.tagLOGFONT lf = new Poderosa.Win32.tagLOGFONT();
            Graphics g = CreateGraphics();
            IntPtr hDC = g.GetHdc();

            Poderosa.Win32.EnumFontFamExProc proc = new Poderosa.Win32.EnumFontFamExProc(FontProc);
            IntPtr lParam = new IntPtr(0);
            lf.lfCharSet = 1; //default
            Poderosa.Win32.EnumFontFamiliesEx(hDC, ref lf, proc, lParam, 0);
            //lf.lfCharSet = 128; //日本語
            //lParam = new IntPtr(128);
            //Poderosa.Win32.EnumFontFamiliesEx(hDC, ref lf, proc, lParam, 0);
            g.ReleaseHdc(hDC);
        }