Resource availability: fonts

Tyro[a.c.edwards] nospam at home.com
Wed May 6 05:07:12 PDT 2009


On 5/6/2009 1:39 PM, grauzone wrote:
> Use
> ubyte[] fontbytes = cast(ubyte[])import("yourfont.ttf");

This will take care of making sure the font is available. How do you 
instruct the library (DFL in this case) that this variable contains the 
font or that after you write it back to the hard drive to refer to the 
file? A font that is not installed, but instead, simply residing in a 
folder of your choosing?


More information about the Digitalmars-d-learn mailing list