Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsSVGLibartGlyphMetricsFT.h File Reference

Go to the source code of this file.

Functions

nsresult NS_NewSVGLibartGlyphMetricsFT (nsISVGRendererGlyphMetrics **result, nsISVGGlyphMetricsSource *src)
void NS_InitSVGLibartGlyphMetricsFTGlobals ()
void NS_FreeSVGLibartGlyphMetricsFTGlobals ()

Function Documentation

Definition at line 169 of file nsSVGLibartGlyphMetricsFT.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 149 of file nsSVGLibartGlyphMetricsFT.cpp.

{
  
  NS_ASSERTION(!nsSVGLibartGlyphMetricsFT::sFontAliases.IsInitialized(),
               "font aliases already initialized");
  nsSVGLibartGlyphMetricsFT::sFontAliases.Init(3);

  static NS_NAMED_LITERAL_STRING(arial, "arial");
  nsSVGLibartGlyphMetricsFT::sFontAliases.Put(NS_LITERAL_STRING("helvetica"),
                                              &arial);

  static NS_NAMED_LITERAL_STRING(courier, "courier new");
  nsSVGLibartGlyphMetricsFT::sFontAliases.Put(NS_LITERAL_STRING("courier"),
                                              &courier);

  static NS_NAMED_LITERAL_STRING(times, "times new roman");
  nsSVGLibartGlyphMetricsFT::sFontAliases.Put(NS_LITERAL_STRING("times"),
                                              &times);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 139 of file nsSVGLibartGlyphMetricsFT.cpp.

{
  *result = new nsSVGLibartGlyphMetricsFT(src);
  if (!*result) return NS_ERROR_OUT_OF_MEMORY;
  
  NS_ADDREF(*result);
  return NS_OK;
}

Here is the call graph for this function: