コード例 #1
0
		public override void  defineFont(DefineFont1 tag)
		{
			open(tag);
			out_Renamed.Write(" id='" + id(tag) + "'");
			end();
			
			if (glyphs)
			{
				for (int i = 0; i < tag.glyphShapeTable.Length; i++)
				{
					indent();
					//UPGRADE_TODO: Method 'java.io.PrintWriter.println' was converted to 'System.IO.TextWriter.WriteLine' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioPrintWriterprintln_javalangString'"
					out_Renamed.WriteLine("<glyph>");
					
					Shape shape = tag.glyphShapeTable[i];
					indent_Renamed_Field++;
					printShapeWithTabs(shape);
					indent_Renamed_Field--;
					
					indent();
					//UPGRADE_TODO: Method 'java.io.PrintWriter.println' was converted to 'System.IO.TextWriter.WriteLine' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioPrintWriterprintln_javalangString'"
					out_Renamed.WriteLine("</glyph>");
				}
			}
			close(tag);
		}
コード例 #2
0
		public override void  defineFont(DefineFont1 tag)
		{
			int id = dict.add(tag);
			tagw.writeUI16(id);
			
			int count = tag.glyphShapeTable.Length;
			
			int offsetPos = tagw.Pos;
			
			// write offset placeholders
			for (int i = 0; i < count; i++)
			{
				tagw.writeUI16(0);
			}
			
			// now write glyphs and update the encoded offset table
			for (int i = 0; i < count; i++)
			{
				tagw.writeUI16at(offsetPos + 2 * i, tagw.Pos - offsetPos);
				encodeShape(tag.glyphShapeTable[i], tagw, flash.swf.TagValues_Fields.stagDefineShape3, 1, 0);
			}
			
			encodeTag(tag);
		}
コード例 #3
0
 public virtual void  defineFont(DefineFont1 tag)
 {
 }