Here example code for a simple clock.
Generally, I have few problems with system font (Arial etc.)or bitmap fonts.
My big problems are with others True Type fonts.
I have tried a lot of 7 segments true type fonts unsuccessfully.
Thanks for help.

#include <acknex.h>
#include <default.c>
FONT* digit_font = "Arial#150b";//How for 7 segments True Type fonts ?
PANEL* clock_pan =
{
digits (200, 200, 2, digit_font, 1, sys_hours);
digits (400, 200, 2, digit_font, 1, sys_minutes);
digits (600, 200, 2, digit_font, 1, sys_seconds);
flags = SHOW | OUTLINE;
}

function main()
{
video_screen = 1;//full screen
screen_size.x = 1024;
screen_size.y = 768;
screen_color.blue = 150;
}

Last edited by frank58; 04/05/10 09:21.