Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Functions | Variables
nsFontMetricsPh.cpp File Reference
#include "nsQuickSort.h"
#include "nsIServiceManager.h"
#include "nsFontMetricsPh.h"
#include "nsPhGfxLog.h"
#include "nsHashtable.h"
#include "nsIPref.h"
#include "nsReadableUtils.h"
#include <errno.h>
#include <string.h>

Go to the source code of this file.

Classes

struct  FontEnumData
struct  nsFontFamily
struct  EnumerateFamilyInfo

Defines

#define USER_DEFINED   "x-user-def"

Typedefs

typedef struct EnumerateFamilyInfo EnumerateFamilyInfo

Functions

static NS_DEFINE_CID (kPrefCID, NS_PREF_CID)
static nsresult InitGlobals ()

Variables

static nsHashtable * gFontMetricsCache = nsnull
static nsCString ** gFontNames = nsnull
static FontDetails * gFontDetails = nsnull
static int gnFonts = 0
static nsIPrefgPref = nsnull

Class Documentation

struct nsFontFamily

Definition at line 139 of file nsFontMetricsGTK.cpp.

Collaboration diagram for nsFontFamily:
Class Members
NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW
PLHashTable *
mCharSets
NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW
nsFontNodeArray
mNodes
struct EnumerateFamilyInfo

Definition at line 970 of file nsDeviceContextMac.cpp.

Collaboration diagram for EnumerateFamilyInfo:
Class Members
PRUnichar ** mArray
int mIndex

Define Documentation

#define USER_DEFINED   "x-user-def"

Definition at line 57 of file nsFontMetricsPh.cpp.


Typedef Documentation


Function Documentation

static nsresult InitGlobals ( void  ) [static]

Definition at line 87 of file nsFontMetricsPh.cpp.

{
  CallGetService(kPrefCID, &gPref);
  if (!gPref) return NS_ERROR_FAILURE;

       gFontMetricsCache = new nsHashtable();
       return NS_OK;
}

Here is the call graph for this function:

static NS_DEFINE_CID ( kPrefCID  ,
NS_PREF_CID   
) [static]

Variable Documentation

FontDetails* gFontDetails = nsnull [static]

Definition at line 52 of file nsFontMetricsPh.cpp.

nsHashtable* gFontMetricsCache = nsnull [static]

Definition at line 50 of file nsFontMetricsPh.cpp.

nsCString** gFontNames = nsnull [static]

Definition at line 51 of file nsFontMetricsPh.cpp.

int gnFonts = 0 [static]

Definition at line 53 of file nsFontMetricsPh.cpp.

nsIPref* gPref = nsnull [static]

Definition at line 54 of file nsFontMetricsPh.cpp.