Esempio n. 1
0
        void UpdateCharSize()
        {
            if (m_CurrentFace != null)
            {
                if (m_Resolution != 0)
                {
                    ANT.ANT_Set_Char_Size(m_CurrentFace,
                                          (int)m_Width,  // char_width in 1/64th of points
                                          (int)m_Height, // char_height in 1/64th of points
                                          m_Resolution,  // horizontal device resolution
                                          m_Resolution); // vertical device resolution
                }
                else
                {
                    ANT.ANT_Set_Pixel_Sizes(m_CurrentFace,
                                            (int)(m_Width >> 6),   // pixel_width
                                            (int)(m_Height >> 6)); // pixel_height
                }

                UpdateSignature();
            }
        }