Resource availability: fonts

Lars T. Kyllingstad public at kyllingen.NOSPAMnet
Tue May 5 23:53:46 PDT 2009


grauzone wrote:
> Use
> ubyte[] fontbytes = cast(ubyte[])import("yourfont.ttf");

That is so cool.

I've seen the import() expression mentioned here on the NG before. It 
returns a string containing the imported source file, right? Is it 
mentioned anywhere in the docs? I can't seem to find it.

-Lars


More information about the Digitalmars-d-learn mailing list