Пример #1
0
        /// <summary>
        /// Measure of the text
        /// </summary>
        private SizeF GetTypoMeasure(string text)
        {
            ITypographer avtp = TypographerBroker.Instance;

            avtp.Text     = text;
            avtp.FontSize = Font.Size;
            avtp.FontName = Font.Name;
            return(avtp.Measure());
        }
Пример #2
0
        /// <summary>
        /// Measure of the char
        /// </summary>
        private SizeF GetTypoMeasure()
        {
            ITypographer avtp = TypographerBroker.Instance;

            avtp.Text      = Character.ToString();
            avtp.FontSize  = Font.Size;
            avtp.FontName  = Font.Name;
            avtp.FontStyle = Font.Style;
            return(avtp.Measure());
        }