public PDFExporterOptionsForm(FontMappings fonts) { InitializeComponent(); BuildFontCombo(fonts); UpdateOKButton(); }
// -------------------------------------------------------------------------------------- public PDFExporterCore(String typeId, Translator trans) { m_TypeId = typeId; m_Trans = trans; m_TempFolder = (Path.GetTempPath() + typeId); m_FontMappings = new FontMappings(); m_BaseFontSize = 10f; m_BaseFontName = "Verdana"; m_ApplyBaseFontToAllContent = true; }
private void BuildFontCombo(FontMappings fonts) { comboInstalledFont.SelectedItem = null; foreach (var fileFont in fonts.FileToNames) { foreach (var fontName in fileFont.Value) { comboInstalledFont.Items.Add(fontName); } } FormsUtil.RecalcDropWidth(comboInstalledFont); }