Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsFontNode Struct Reference

#include <nsFontMetricsGTK.h>

Collaboration diagram for nsFontNode:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW
void 
FillStyleHoles (void)

Public Attributes

nsCAutoString mName
nsFontCharSetInfomCharSetInfo
nsFontStylemStyles [3]
PRUint8 mHolesFilled
PRUint8 mDummy

Detailed Description

Definition at line 119 of file nsFontMetricsGTK.h.


Member Function Documentation

Definition at line 4970 of file nsFontMetricsGTK.cpp.

{
  if (mHolesFilled) {
    return;
  }
  mHolesFilled = 1;

#ifdef DEBUG_DUMP_TREE
  DumpFamily(this);
#endif

  for (int i = 0; i < 3; i++) {
    if (mStyles[i]) {
      mStyles[i]->FillWeightHoles();
    }
  }

  // XXX If both italic and oblique exist, there is probably something
  // wrong. Try counting the fonts, and removing the one that has less.
  if (!mStyles[NS_FONT_STYLE_NORMAL]) {
    if (mStyles[NS_FONT_STYLE_ITALIC]) {
      mStyles[NS_FONT_STYLE_NORMAL] = mStyles[NS_FONT_STYLE_ITALIC];
    }
    else {
      mStyles[NS_FONT_STYLE_NORMAL] = mStyles[NS_FONT_STYLE_OBLIQUE];
    }
  }
  if (!mStyles[NS_FONT_STYLE_ITALIC]) {
    if (mStyles[NS_FONT_STYLE_OBLIQUE]) {
      mStyles[NS_FONT_STYLE_ITALIC] = mStyles[NS_FONT_STYLE_OBLIQUE];
    }
    else {
      mStyles[NS_FONT_STYLE_ITALIC] = mStyles[NS_FONT_STYLE_NORMAL];
    }
  }
  if (!mStyles[NS_FONT_STYLE_OBLIQUE]) {
    if (mStyles[NS_FONT_STYLE_ITALIC]) {
      mStyles[NS_FONT_STYLE_OBLIQUE] = mStyles[NS_FONT_STYLE_ITALIC];
    }
    else {
      mStyles[NS_FONT_STYLE_OBLIQUE] = mStyles[NS_FONT_STYLE_NORMAL];
    }
  }

#ifdef DEBUG_DUMP_TREE
  DumpFamily(this);
#endif
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 126 of file nsFontMetricsGTK.h.

Definition at line 129 of file nsFontMetricsGTK.h.

Definition at line 128 of file nsFontMetricsGTK.h.

Definition at line 125 of file nsFontMetricsGTK.h.

Definition at line 127 of file nsFontMetricsGTK.h.


The documentation for this struct was generated from the following files: