Re: [AD] New font types

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 23 September 2002 13:10, Eric Botcazou wrote:
> > I think we have a minor misunderstanding here; I want to simply
> > drop a text file into some directory and have dat2c be able to
> > export my font structure.
>
> What do you mean exactly by "dat2c be able to export my font
> structure" ? Here is what I understand: you want dat2c to be able to
> convert a datafile into a C source file which contains a
> "constructor" function for your new font type that will get called by
> fixup_datafile() so that the vtable of the font structure is
> correctly set to the vtable your provide in your library.

Exactly; in addition, the font structure (which will be saved as a 
binary block in the datafile) needs to be exported to the relevant C 
structures, hopefully this can be done by writing a description of the 
C structures and datafile layout in a textfile.

> What I would like to have is the possibility to call load_datafile()
> on this datafile too, i.e a mechanism to set the vtable to an
> external library in this case too.

If I understand you right, you want to be able to load a normal FONT 
from a datafile, but have a different vtable other than color/mono? I 
don't really know how to do that, although I suppose we could add ids 
to the relevant vtables, but I was thinking more along the lines of 
just changing the object type in the datafile and registering a custom 
handler. Which would you prefer? (The latter does not require library 
changes).

Bye for now,
- -- 
Laurence Withers,  lwithers@xxxxxxxxxx
(GnuPG 04A646EA) http://www.lwithers.demon.co.uk/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9kCDVUdhclgSmRuoRAvvkAJ0bRaszepUgvSskXs8uvckd6xbswwCdEZMk
2IAJ95sqeBIAstrXuRfgmSY=
=SeRC
-----END PGP SIGNATURE-----



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/