Exemple #1
0
 public FontEmbedOption(SystemFontFamily systemFont, SceneViewModel viewModel, FontEmbeddingDialogModel embeddingModel)
 {
     this.systemFont              = systemFont;
     this.viewModel               = viewModel;
     this.embeddingModel          = embeddingModel;
     this.IsFontSubsettingAllowed = FontEmbedder.DoesFontFileSupportSubsetting(Enumerable.FirstOrDefault <string>((IEnumerable <string>)systemFont.FontSources) ?? string.Empty);
 }
Exemple #2
0
 public FontEmbedOption(ProjectFont projectFont, IProjectItem projectItem, SceneViewModel viewModel, FontEmbeddingDialogModel embeddingModel)
 {
     this.projectFont = projectFont;
     this.viewModel   = viewModel;
     this.InitializeEmbedOptions(projectItem);
     this.isEmbedded              = this.IsFontItemEmbedded;
     this.embeddingModel          = embeddingModel;
     this.IsFontSubsettingAllowed = FontEmbedder.DoesFontFileSupportSubsetting(projectFont.FontDocumentPath);
 }