Exemple #1
0
        xy getExtent()
        {
            if (Font == null)
            {
                return(new xy(-1, -1));
            }
            double Save = Font.FontSize;

            Font.FontSize = Size;
            xy Result = Font.getEnvText(Text);

            Font.FontSize = Save;
            return(Result);
        }
Exemple #2
0
 /// <summary>
 /// gets the minimal rectangle, which includes the text s.
 /// </summary>
 /// <param name="F">font</param>
 /// <param name="s">text</param>
 /// <returns>the minimal rectangle.</returns>
 public xy getEnvText(Font F, string s)
 {
     return(F.getEnvText(s));
 }