Exemplo n.º 1
0
        public DrawingGL(DrawContextGL dc)
        {
            DC = dc;

            mFontFaceW = new FontFaceW();
            //mFontFaceW.SetFont(@"C:\Windows\Fonts\msgothic.ttc", 0);
            mFontFaceW.SetResourceFont("/Fonts/mplus-1m-regular.ttf");
            mFontFaceW.SetSize(24);

            mFontRenderer = new FontRenderer();
            mFontRenderer.Init();

            FontTex tex = mFontFaceW.CreateTexture("X");

            FontTexW = tex.ImgW;
            FontTexH = tex.ImgH;
        }