public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Family = input.ReadString(); break; } case 16: { fontStyle_ = (global::Greenshot2.Editor.FileFormat.FontStyles)input.ReadEnum(); break; } case 24: { Size = input.ReadUInt32(); break; } case 32: { sizeUnit_ = (global::Greenshot2.Editor.FileFormat.FontSizeUnits)input.ReadEnum(); break; } } } }
public void MergeFrom(FontInfo other) { if (other == null) { return; } if (other.Family.Length != 0) { Family = other.Family; } if (other.FontStyle != 0) { FontStyle = other.FontStyle; } if (other.Size != 0) { Size = other.Size; } if (other.SizeUnit != 0) { SizeUnit = other.SizeUnit; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }