![]() | |
![]() | ![]() |
CL_Res_FontThe font resource. Parents: public CL_ResourceType DescriptionThis is the font resource type. It is used load CL_Font resources from a datafile. The resource system in ClanLib understand two types of fonts. An deprecated font system orignally developed in 1994 - designed to be used with Deluxe Paint IIe .pcx files. This is obsolete, and shouldn't be used anymore. We only mention it here so that you won't get confused, if you notice how some ClanLib demo application use strange lines using the three last colors in the palette to cut out the letters in the font. The new alpha based font system uses a much easier way to cut out the letters in the font. It uses the alpha value in the image to detect where a letter ends, and a new one begins. Simply divide the letters by a horizontal line of transparent pixels. Have a look at this address for an example: http://dark.x.dtu.dk/~mbn/clanlib/gfx/alpha_font.tga Class membersstatic CL_Font *load( CL_String res_id, CL_ResourceManager &manager) See AlsoNone |