early Unicode font support

0 views
Skip to first unread message

John Bridges

unread,
May 22, 2008, 8:43:30 PM5/22/08
to after...@googlegroups.com
New build of AfterGRASP is up for download:

http://www.aftergrasp.com/download/agsetup_20080522.exe

----------------------------------------------------------------------------
Thu, 22 May 2008

THIS IS A RAW FOR TEST ONLY BUILD, EXPECT PROBLEMS!

More error checking added as part of a diagnostic including rewriting part
of the AVL trees template used in several parts of AG.

EXTREME changes to all font load, save and draw code to support unicode
fonts. Previously Unicode was only functional in a very limited way with
no anti-aliasing, saved fonts or bitmap font support. It really was really
only for printing, and in fact was broken in recent builds.

Because FONTLOAD and FONTSAVE have been completely rewritten, expect
bugs. In particular the loading of older font formats, GLF from
GLPRO, and AGF (variations 0, 1, 2 and 3) had to be rewritten.

FONTSAVE and FONTSAVECOMPRESSED now produce a AGF type 4 font
which has a variable size font widths table, and a index of
which character bitmaps are included. FONTSAVE and FONTSAVECOMPRESSED
now use the same underlying code (the old fontsave was so simple
it wasn't worth making a more generalized version).
This AGF type 4 font will only load in this and future builds of
AfterGRASP.

Known issues in this copy include overly large space character
sizing.

Example of Unicode text:

windowsize 1000 800 32
drawclear white
color black
; set texthtmlwinfont on
; set texthtmlantifont off
fontstyle init 512
set texthtml on
text "<html>&#351;i Ofer&#259; consultan&#355;&#259;
tehnic&#259; &#351;i o gam&#259; variat&#259; de sigilan&#355;i
&#351;i."
wait
exitnow

----------------------------------------------------------------------------

Reply all
Reply to author
Forward
0 new messages