Пример #1
0
        //-------------------------------------------------------------------------------------------
        public ToolFont Clone(ToolFont font)
        {
            var clonedFont = new ToolFont();

            clonedFont.FontFamily   = font.FontFamily;
            clonedFont.FontStyle    = font.FontStyle;
            clonedFont.FontWeight   = font.FontWeight;
            clonedFont.FontStretch  = font.FontStretch;
            clonedFont.FontSize     = font.FontSize;
            clonedFont.FontLanguage = font.FontLanguage;

            return(clonedFont);
        }
Пример #2
0
        //-----------------------------------------------------------------------------------------------
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            if (FFont == null)
            {
                FFont = new ToolFont();
            }

            FXmlLanguage = XmlLanguage.GetLanguage(this.Font.FontLanguage);

            this.SetFontSizeList();
            this.SetLanguageList();

            this.SampleText = FSampleText;
            txtSample.Text  = FSampleText;
        }