We are developing a app that will show a window in a 50" TV.
The problem we have is that texts in big size, say 72 points and more, does’nt aooear smooth. I would have thought that true type fonts will scale without problem.
any ideas ?
Clarion does not render fonts. It uses Windows API to create fonts and use them to output texts. If the physical dimensions of the pixel is large, the text is being displayed not smooth.
I know that, but, for example, if you put a text in word and escalate it, it appears perfect. And it is also a windows rendering. why that doesn’t happen in clarion.
See attached test program. I do not see sufficient artifacts if text is drawn using large fonts. First 2 strings are declared as PROMPTs and, hence, Clarion uses the DrawText API function. Last one is declared as STRING and, hence, it is drawing using the ExtTextOut API function.
TrueType and Type1 fonts do use Bezier curves for bounding glyphs. Windows is rendering Bezier curves quite good. Texts drawn using fonts of other types can have problems with rendering.
test.clw (650 Bytes)
Here’s a slightly Modified version of @also 's code
notice the 255 font size, when I tried a 256 it showed quite small.
PROGRAM
MAP
Test()
END
CODE
Test()
RETURN
! ------------------------------------------------------------------------------
Test PROCEDURE()
W WINDOW('Test'),AT(,,2750,1460),CENTER,GRAY,AUTO,SYSTEM,Maximize,FONT('Tahoma',10),RESIZE
TOOLBAR,AT(0,0,2750,24),USE(?TB)
BUTTON('Close'),AT(4,4,32,16),USE(?Close),STD(STD:Close)
END
PROMPT('72'),AT(10,10,60),USE(?P72),FONT(,72)
PROMPT('96'),AT(80,10,90),USE(?P96),FONT(,96)
STRING('128'),AT(180,10,160),USE(?P128),FONT(,128)
STRING('255- 0123456789AB'),AT(380,10,1920),USE(?P255),FONT(,255)
END
CODE
OPEN (W)
ACCEPT
END
CLOSE (W)
RETURN
i tried the programs and they work ok, but in my window I got this:
with a modest 48 points. I will try to understand what is happening.
thanks
That looks like the effect you get with a bitmapped font (e.g. MS Sans Serif).
You need a truetype font (e.g. Microsoft Sans Serif).
you are right; the font was a bitmapped font, I changed it and it works ok.
I didn’t think there were fonts bitmapped in the list.