Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsRegressionTestFontMetrics.cpp File Reference
#include "nsRegressionTestFontMetrics.h"

Go to the source code of this file.

Defines

#define MAPPING_FACTOR_FOR_SPACE   0.02f
#define MAPPING_FACTOR_FOR_LOWER_CASE   0.50f
#define MAPPING_FACTOR_FOR_OTHERS   0.70f

Functions

nsresult NS_NewRegressionTestFontMetrics (nsIFontMetrics **aMetrics)

Define Documentation

Definition at line 41 of file nsRegressionTestFontMetrics.cpp.

Definition at line 42 of file nsRegressionTestFontMetrics.cpp.

Definition at line 40 of file nsRegressionTestFontMetrics.cpp.


Function Documentation

Definition at line 46 of file nsRegressionTestFontMetrics.cpp.

{
  if (aMetrics == nsnull) {
    return NS_ERROR_NULL_POINTER;
  }

  nsRegressionTestFontMetrics  *fm = new nsRegressionTestFontMetrics();

  if (nsnull == fm) {
    return NS_ERROR_OUT_OF_MEMORY;
  }

  return CallQueryInterface(fm, aMetrics);
}

Here is the call graph for this function: