Exemple #1
0
        /// <summary> If supported, includes a character from the given font face.
        ///
        /// </summary>
        /// <param name="c">
        /// </param>
        public GlyphEntry addChar(FontFace face, char c)
        {
            GlyphEntry ge = (GlyphEntry)glyphEntryMap.get_Renamed(c);

            if (ge == null)
            {
                ge = face.getGlyphEntry(c);

                if (ge != null)
                {
                    //Add to this tag's collection
                    glyphEntryMap.put(c, ge);
                }
            }

            if (flashType && ge != null && ge.zoneRecord == null && zoneRecordBuilder != null)
            {
                ge.zoneRecord = zoneRecordBuilder.build(c);
            }

            return(ge);
        }
		/// <summary> If supported, includes a character from the given font face.
		/// 
		/// </summary>
		/// <param name="c">
		/// </param>
		public GlyphEntry addChar(FontFace face, char c)
		{
			GlyphEntry ge = (GlyphEntry) glyphEntryMap.get_Renamed(c);
			
			if (ge == null)
			{
				ge = face.getGlyphEntry(c);
				
				if (ge != null)
				{
					//Add to this tag's collection
					glyphEntryMap.put(c, ge);
				}
			}
			
			if (flashType && ge != null && ge.zoneRecord == null && zoneRecordBuilder != null)
			{
				ge.zoneRecord = zoneRecordBuilder.build(c);
			}
			
			return ge;
		}