Skip to content

Conversation

khaledhosny
Copy link
Contributor

Type of change

  • New feature

@@ -2813,17 +2816,19 @@ static int SFD_Dump( FILE *sfd, SplineFont *sf, EncMap *map, EncMap *normal,
for ( remap = map->remap; remap->infont!=-1; ++remap )
fprintf(sfd, "Remap: %x %x %d\n", (int) remap->firstenc, (int) remap->lastenc, (int) remap->infont );
}
if ( sf->display_size!=0 )
if ( sf->display_size!=0 && SaveEditorState )
fprintf( sfd, "DisplaySize: %d\n", sf->display_size );
if ( sf->display_layer!=ly_fore )
Copy link
Contributor

Choose a reason for hiding this comment

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

how is this not part of editor state?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

IIRC, this affects the exported font. The display layer is the layer that will be used for exported outlines.

@jtanx jtanx merged commit 68f5bb9 into fontforge:master Jul 3, 2022
@khaledhosny khaledhosny deleted the pref-save-editor-state branch July 5, 2022 16:40
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.

2 participants