Login Page - Create Account

Support Board


Date/Time: Sat, 21 Dec 2024 17:22:25 +0000



Wingdings not working - Requesting SC Engineers

View Count: 2087

[2015-04-07 07:35:49]
CustomIndicators - Posts: 126
I'm trying to use the wingdings font on the chart. I've tried both corresponding letters like A, B, and C, but it just shows those letters on the chart in Ariel. I also tried to use the wingdings font codes from the windows char map, but those just resulted in the chart displaying the symbols Ú and Ù.

Here is what the code looks like:

void DrawWingdings(SCStudyGraphRef sc, unsigned int index, float value, unsigned int color)
{
  s_UseTool Tool;
  
  Tool.Clear(); // reset tool structure for our next use
  Tool.DrawingType = DRAWING_TEXT;
  Tool.BeginIndex = index;
  Tool.BeginValue = value;
  //Tool.Color = color;
  Tool.AddMethod = UTAM_ADD_OR_ADJUST;
  Tool.Region = 0;
  Tool.FontFace = "Wingdings";
  Tool.TextAlignment = DT_CENTER | DT_RIGHT;
  Tool.FontSize = 15;
  Tool.Text.Format("%c", 0xD9 );

  sc.UseTool(Tool);
}
// Example: DrawWingdings(sc, peakOneDT, peakOne, COLOR_BLUE);

Any idea what I did wrong, to get the Ú and Ù instead of the Wingdings up and down symbols?
Date Time Of Last Edit: 2015-04-07 07:55:22
[2015-04-07 17:32:03]
CustomIndicators - Posts: 126
Sierra Chart Engineers, can you please replicate this problem, and find out why it is pointing to the wrong characters? After lots of testing and research, I believe my code is correct.

I have used the same code, for other fonts. The Wingdings fonts are mainly what is faulting, from the looks of it. I believe the problem is on your end.
[2015-04-07 18:04:26]
Sierra Chart Engineering - Posts: 104368
It really is not known exactly what the answer to this would be because it is something that happens at the operating system level through its own internal font mapper.

When you specify a font face of "Wingdings", then this would be what is set into the logical font structure and this is given to the call to the operating system to create the actual font object. However, what the operating system in the end does with it, we do not know.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2015-04-08 15:29:31]
CustomIndicators - Posts: 126
Do you mind if I check out the code on your end? If so, where can I find it?

Also, do you know a font that does work, that has up and down arrows?
[2015-04-09 05:26:34]
CustomIndicators - Posts: 126
Can you check your code, and make sure that for Wingdings, you are setting it for SYMBOL_CHARSET instead of ANSI_CHARSET? That may be the problem.
[2015-04-14 09:24:22]
Sierra Chart Engineering - Posts: 104368
We have looked into this and we see what the problem is.

Indeed the character set was not set to SYMBOL_CHARSET. This will be solved in the next release.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2015-04-15 02:31:42]
CustomIndicators - Posts: 126
Thank you. Now, just so I know when to expect it, when will that release be?
[2015-04-15 05:19:30]
Sierra Chart Engineering - Posts: 104368
Update to the latest prerelease now. It has been released.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account