IsFontSpecific() public method

public IsFontSpecific ( ) : bool
return bool
Esempio n. 1
0
        /** Each font used in a document has an instance of this class.
         * This class stores the characters used in the document and other
         * specifics unique to the current working document.
         * @param fontName the font name
         * @param indirectReference the indirect reference to the font
         * @param baseFont the <CODE>BaseFont</CODE>
         */
        internal FontDetails(PdfName fontName, PdfIndirectReference indirectReference, BaseFont baseFont)
        {
            this.fontName          = fontName;
            this.indirectReference = indirectReference;
            this.baseFont          = baseFont;
            fontType = baseFont.FontType;
            switch (fontType)
            {
            case BaseFont.FONT_TYPE_T1:
            case BaseFont.FONT_TYPE_TT:
                shortTag = new byte[256];
                break;

            case BaseFont.FONT_TYPE_CJK:
                cjkTag  = new IntHashtable();
                cjkFont = (CJKFont)baseFont;
                break;

            case BaseFont.FONT_TYPE_TTUNI:
                longTag  = new Dictionary <int, int[]>();
                ttu      = (TrueTypeFontUnicode)baseFont;
                symbolic = baseFont.IsFontSpecific();
                break;
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Each font used in a document has an instance of this class.
        /// This class stores the characters used in the document and other
        /// specifics unique to the current working document.
        /// </summary>
        /// <param name="fontName">the font name</param>
        /// <param name="indirectReference">the indirect reference to the font</param>
        /// <param name="baseFont">the  BaseFont </param>
        internal FontDetails(PdfName fontName, PdfIndirectReference indirectReference, BaseFont baseFont)
        {
            _fontName          = fontName;
            _indirectReference = indirectReference;
            _baseFont          = baseFont;
            _fontType          = baseFont.FontType;
            switch (_fontType)
            {
            case BaseFont.FONT_TYPE_T1:
            case BaseFont.FONT_TYPE_TT:
                _shortTag = new byte[256];
                break;

            case BaseFont.FONT_TYPE_CJK:
                _cjkTag  = new IntHashtable();
                _cjkFont = (CjkFont)baseFont;
                break;

            case BaseFont.FONT_TYPE_TTUNI:
                _longTag  = new Hashtable();
                _ttu      = (TrueTypeFontUnicode)baseFont;
                _symbolic = baseFont.IsFontSpecific();
                break;
            }
        }
Esempio n. 3
0
 /** Each font used in a document has an instance of this class.
  * This class stores the characters used in the document and other
  * specifics unique to the current working document.
  * @param fontName the font name
  * @param indirectReference the indirect reference to the font
  * @param baseFont the <CODE>BaseFont</CODE>
  */
 internal FontDetails(PdfName fontName, PdfIndirectReference indirectReference, BaseFont baseFont) {
     this.fontName = fontName;
     this.indirectReference = indirectReference;
     this.baseFont = baseFont;
     fontType = baseFont.FontType;
     switch (fontType) {
         case BaseFont.FONT_TYPE_T1:
         case BaseFont.FONT_TYPE_TT:
             shortTag = new byte[256];
             break;
         case BaseFont.FONT_TYPE_CJK:
             cjkTag = new IntHashtable();
             cjkFont = (CJKFont)baseFont;
             break;
         case BaseFont.FONT_TYPE_TTUNI:
             longTag = new Dictionary<int,int[]>();
             ttu = (TrueTypeFontUnicode)baseFont;
             symbolic = baseFont.IsFontSpecific();
             break;
     }
 }