Back to index

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

#include <nsFontMetricsXlib.h>

Collaboration diagram for nsFontNodeXlib:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW
void 
FillStyleHoles (void)

Public Attributes

nsCAutoString mName
nsFontCharSetInfoXlibmCharSetInfo
nsFontStyleXlibmStyles [3]
PRUint8 mHolesFilled
PRUint8 mDummy

Detailed Description

Definition at line 229 of file nsFontMetricsXlib.h.


Member Function Documentation

Definition at line 4186 of file nsFontMetricsXlib.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 236 of file nsFontMetricsXlib.h.

Definition at line 239 of file nsFontMetricsXlib.h.

Definition at line 238 of file nsFontMetricsXlib.h.

Definition at line 235 of file nsFontMetricsXlib.h.

Definition at line 237 of file nsFontMetricsXlib.h.


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