Sack Library Documentation
ContentsIndexReferenceHome
PreviousUpNext
sack::image::font_global_tag Structure
fntglobal.h  sack::image::font_global_tag Structure  Send Feedback
C++
struct font_global_tag {
  FT_Library library;
  _32 nFonts;
  FONT_ENTRY * pFontCache;
  CRITICALSECTION cs;
};
typedef struct font_global_tag {
  FT_Library library;
  _32 nFonts;
  FONT_ENTRY * pFontCache;
  CRITICALSECTION cs;
} FONT_GLOBAL;
Members 
Description 
FT_Library library; 
This is the freetype instance variable that font rendering uses. Thread access to rendering is controlled, only a single thread may render using this instance at a time. 
FONT_ENTRY * pFontCache; 

This is an overview of the internal font cache. The Fonts.cache file is a semi-compressed quick reference table of compressed strings.

The cache is an array of PFONT_ENTRY. Each entry has a name; it is the name of the font as described by the font file.

each PFONT_ENTRY has an array of PFONT_STYLE. Each style has a name; it is usually something like Regular, Bold, Italic... Styles also have a flag whether it is mono spaced.
each PFONT_STYLE has an array of PSIZE_FILE. Each size_file entry has an array of PSIZES. Each size_file also has a path and filename associated. At this point, the file may be different. It may also have a link to alternate files which are the same font (style name and family name match...).
each PSIZES describes a possible rendering size of the font. If it is -1,-1, the font is scalable, otherwise specific x by y needs to be specified.

So To Reiterate  

Global information kept by the specific font subsystem. This was seperated from the guts of Image Global, because PSI Font Picker dialog wants to get information from here (to browse the font cache for instance).

sack::image::font_global_tag Structure

fntglobal.h, sack::image::font_global_tag Structure
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!