public void Write(BinaryWriter writer, MieFont.NFormatType formatType) { this.KerningTable.Write(writer); switch (formatType) { case MieFont.NFormatType.Unknown: break; case MieFont.NFormatType.Type1: break; case MieFont.NFormatType.Type2: //// 日本語データの構造 this.KerningPairBase.Write(writer); this.FontFallbackFontAssets.Write(writer); break; case MieFont.NFormatType.Type3: break; case MieFont.NFormatType.Type4: break; case MieFont.NFormatType.Type5: break; case MieFont.NFormatType.PoE2: //// オリジナルのデータ構造 this.KerningPairBase.Write(writer); writer.Write(this.LigaturesFileID); writer.Write(this.LigaturesPathID); writer.Write(this.InumStartAt); writer.Write(this.IsIlluminated); MieFont.WritePadding(writer); this.FontFallbackFontAssets.Write(writer); break; default: throw new Exception($"Unknown format type({formatType})"); } this.FontCreationSetting.Write(writer); this.FontWeights.Write(writer); writer.Write(this.NormalStyle); writer.Write(this.NormalSpaceingOffset); writer.Write(this.BoldStyle); writer.Write(this.BoldSpacing); writer.Write(this.ItalicStyle); writer.Write(this.TabSize); }
public void Write(BinaryWriter writer, MieFont.NFormatType formatType) { //// ToDo: ファイル名や内部名の長さを求める処理を追加。 writer.Write(this.GameObjectFileID); writer.Write(this.GameObjectPathID); writer.Write(this.GameObjectEnables); MieFont.WritePadding(writer); writer.Write(this.ScriptFileID); writer.Write(this.ScriptPathID); MieFont.WriteString(writer, this.FileName); writer.Write(this.FileNameHashCode); writer.Write(this.MaterialFileID); writer.Write(this.MaterialPathID); writer.Write(this.MaterialHashCode); writer.Write(this.FontAssetType); this.FontInfo.Write(writer, formatType); writer.Write(this.AtlasFileID); writer.Write(this.AtlasPathID); }