Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for MapFont serialization #326

Merged
merged 1 commit into from
Apr 19, 2024
Merged

Conversation

TimPurdum
Copy link
Collaborator

Closes #320

MapFont serialization in Protobuf threw an exception because Dimension was not defined in the serialization.
Created a new MapFontSerializationRecord that converted Dimension to double, which matches what we do with other serializations using Dimension.

@TimPurdum TimPurdum self-assigned this Apr 6, 2024
@@ -38,7 +37,7 @@ public MapFont()
/// <param name="weight">
/// The text weight.
/// </param>
public MapFont(int? size, string? family, string? style, string? weight)
public MapFont(Dimension? size, string? family, string? style, string? weight)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dimension or double? for size... looking at the other size references below

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dimension for the C# class. We serialize this in Protobuf as a double. Notice at the bottom of the file you are looking at MapFontSerializationRecord (protobuf representation).

Copy link
Collaborator

@seahro seahro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did have a question about the MapFont using Dimension for size

@TimPurdum TimPurdum merged commit 478e859 into develop Apr 19, 2024
1 check passed
@TimPurdum TimPurdum deleted the bug/320-map-font-serialization branch April 19, 2024 23:52
@TimPurdum TimPurdum mentioned this pull request May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Many Graphics is doesn't work with TextSymbol with MapFont since Version 3.01
2 participants