Hi I want to try the following code 'Raptor TinyCLR)
private static Window CreateWindow(DisplayController displayController)
{
var window = new Window
{
Height = (int) displayController.ActiveSettings.Height,
Width = (int) displayController.ActiveSettings.Width,
Background = new SolidColorBrush(GHIElectronics.TinyCLR.UI.Media.Color.FromArgb(255, 0, 0, 64))
};
var font = Resources.GetFont(Resources.FontResources.small);
OnScreenKeyboard.Font = font;
var listBox = new ListBox { Child = { Width = window.Width } };
for (var i = 0; i < 3; i++)
{
var text = new Text(font, $"Text item {i}");
text.SetMargin(5);
text.ForeColor = Colors.Yellow;
listBox.Items.Add(text);
}
I get the following error for the font
I have added the 2 fonts found in C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.4\Fonts
Ninab.tinyfft and small.tinyft in the Resources
Any hint on this ?
Thanks in advance