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); }
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); }
public virtual void defineFont(DefineFont1 tag) { }