private System.Drawing.Font textFont, Arrow;
In the Initialize() section I have added:
Font textFont = new Font("Lucida Console", 8);
Font Arrow = new Font("Wingdings 3", 8);
Then in the OnBarUpdate() section I added the following:
DrawText("Tag1", false, "u", 0, High[0], 0, Color.Black, Arrow, StringAlignment.Far, Color.Transparent, Color.Transparent,0);
The text prints, but it uses the default font, instead of the font I specified.
I can force it to use the desired font by specifying it directly in the DrawText statement as below, but I shouldn't have to do that. Where am I going wrong?
DrawText("Tag1", false, "u", 0, High[0], 0, Color.Black, new Font("Wingdings 3", 8), StringAlignment.Far, Color.Transparent, Color.Transparent,0);
Comment