Sack Library Documentation
ContentsIndexReferenceHome
PreviousUpNext
sack::image::font_data_tag Structure
C++
struct font_data_tag {
  _32 magic;
  _32 nFamily;
  _32 nStyle;
  _32 nFile;
  _32 nWidth;
  _32 nHeight;
  _32 flags;
  _64 cachefile_time;
  TEXTCHAR names[];
};
Members 
Description 
_32 magic; 
A magic identifier from FontMagicIdentifiers. This structure might be pointed to as a RENDER_FONTDATA instead, and its magic identifier would be different. 
_32 nFamily; 
this is the family index in the internal font cache. 
_32 nStyle; 
This is the index into the font cache of this style. 
_32 nFile; 
This is the file index in the font cache. 
_32 nWidth; 
How wide to render the font in pixels. 
_32 nHeight; 
Height of the font to render output in pixels. 
_32 flags; 
This is the flags that the font was created with. Think only the low 2 bits are used to determine resolution of the font as 1, 2, or 8 bits. 
_64 cachefile_time; 
This is the timestamp of the cache file. If these don't match, the names are used to create the font. 
TEXTCHAR names[]; 
these is a list of names to create the font if the indexes are different. Think all names are concated together with a single '\0' between and a double '\0\0' at the end. 

This is the internal structure used to define the font cache, and data structures used to track renderings of fonts. Structures include desired size of the font in pixels. This data structure can be requested from the image library and can be used to recreate the font again in the future. This font came from a font choice dialog and includes all the IDs of the options selected.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.
Copyright (c) 2000+. All rights reserved.
What do you think about this topic? Send feedback!