ReadFont() 공개 정적인 메소드

public static ReadFont ( OTFontFile.OTFile file, uint FontFileNumber, uint filepos ) : OTFontVal
file OTFontFile.OTFile
FontFileNumber uint
filepos uint
리턴 OTFontVal
예제 #1
0
        public new OTFontVal GetFont(uint i)
        {
            OTFontVal f = null;

            Debug.Assert(i < m_nFonts);
            Debug.Assert(m_FontFileType != FontFileType.INVALID);
            if (i > 0)
            {
                Debug.Assert(m_FontFileType == FontFileType.COLLECTION);
            }

            if (i < m_nFonts)
            {
                if (m_FontFileType == FontFileType.SINGLE)
                {
                    f = OTFontVal.ReadFont(this, 0, 0);
                }
                else if (m_FontFileType == FontFileType.COLLECTION)
                {
                    Debug.Assert(m_ttch != null);
                    if (m_ttch != null)
                    {
                        uint nDirOffset = (uint)m_ttch.DirectoryOffsets[(int)i];

                        f = OTFontVal.ReadFont(this, i, nDirOffset);
                    }
                }
            }

            return(f);
        }