Пример #1
0
        protected FontBasePainter(TrueTypeFont font, int pixelHeight)
        {
            Font = font;

            PixelHeight = pixelHeight;
            Scale       = font.GetScaleForPixelHeight(pixelHeight);
            SpaceWidth  = pixelHeight / 2;
            TabWidth    = pixelHeight * 4;
        }
Пример #2
0
 public TextPainter(TrueTypeFont font, int pixelHeight) : base(font, pixelHeight)
 {
 }
Пример #3
0
 public CachedSymbolPainter(TrueTypeFont font, int pixelHeight, int boxHeight = 0) : base(font, pixelHeight)
 {
     BoxHeight = boxHeight > 0 ? boxHeight : pixelHeight;
 }