コード例 #1
0
		private FontBuilder(int code, bool hasLayout, bool useFlashType)
		{
			if (code == flash.swf.TagValues_Fields.stagDefineFont2)
				tag = new DefineFont2();
			else if (code == flash.swf.TagValues_Fields.stagDefineFont3)
				tag = new DefineFont3();
			else
				throw new SWFFontNotSupportedException("Cannot build DefineFont for SWF tag code " + code);
			
			tag.hasLayout = hasLayout;
			glyphEntryMap = new IntMap(100); //Sorted by code point order
			flashType = useFlashType;
		}
コード例 #2
0
		private FontBuilder(int code, bool hasLayout, bool useFlashType)
		{
			if (code == flash.swf.TagValues_Fields.stagDefineFont2)
				tag = new DefineFont2();
			else if (code == flash.swf.TagValues_Fields.stagDefineFont3)
				tag = new DefineFont3();
			else
				throw new SWFFontNotSupportedException("Cannot build DefineFont for SWF tag code " + code);
			
			tag.hasLayout = hasLayout;
			glyphEntryMap = new IntMap(100); //Sorted by code point order
			flashType = useFlashType;
		}