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); }
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); }
internal FontEmbeddingDialog(SceneViewModel viewModel) { SourcedFontFamilyItem.DefaultPreviewFontFamilyName = ((FontFamily)this.FindResource((object)SystemFonts.MessageFontFamilyKey)).ToString(); this.model = new FontEmbeddingDialogModel(viewModel); this.DataContext = (object)this.model; this.InitializeComponent(); this.SizeToContent = SizeToContent.Manual; this.Width = 330.0; this.Height = 485.0; this.MinWidth = 225.0; this.MinHeight = 375.0; this.ResizeMode = ResizeMode.CanResizeWithGrip; this.Title = StringTable.FontEmbeddingDialogTitle; }