Пример #1
0
        public PDFExporterOptionsForm(FontMappings fonts)
        {
            InitializeComponent();

            BuildFontCombo(fonts);
            UpdateOKButton();
        }
Пример #2
0
        // --------------------------------------------------------------------------------------

        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;
        }
Пример #3
0
        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);
        }