Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsFT2FontCatalog Class Reference

#include <nsFT2FontCatalog.h>

Inheritance diagram for nsFT2FontCatalog:
Inheritance graph
[legend]
Collaboration diagram for nsFT2FontCatalog:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSIFONTCATALOGSERVICE 
nsFT2FontCatalog ()
virtual ~nsFT2FontCatalog ()
nsIArray getFontCatalogEntries (in ACString familyName, in ACString language, in unsigned short weight, in unsigned short width, in unsigned short slant, in unsigned short spacing)

Public Attributes

const unsigned short kFCWeightAny = 0
const unsigned short kFCWeightLight = 300
const unsigned short kFCWeightBook = 400
const unsigned short kFCWeightMedium = 400
const unsigned short kFCWeightRegular = 400
const unsigned short kFCWeightDemi = 600
const unsigned short kFCWeightDemibold = 600
const unsigned short kFCWeightBold = 700
const unsigned short kFCWeighBlack = 900
const unsigned short kFCWidthAny = 0
const unsigned short kFCWidthNarrow = 3
const unsigned short kFCWidthSemicondensed = 4
const unsigned short kFCWidthBlock = 5
const unsigned short kFCWidthMedium = 5
const unsigned short kFCWidthNormal = 5
const unsigned short kFCWidthBold = 7
const unsigned short kFCWidthWide = 7
const unsigned short kFCWidthDoubleWide = 9
const unsigned short kFCSlantAny = 0
const unsigned short kFCSlantRoman = 1
const unsigned short kFCSlantItalic = 2
const unsigned short kFCSlantOblique = 3
const unsigned short kFCSlantReverseItalic = 4
const unsigned short kFCSlantReverseOblique = 5
const unsigned short kFCSpacingAny = 0
const unsigned short kFCSpacingMonospace = 1
const unsigned short kFCSpacingProportional = 2

Detailed Description

Definition at line 114 of file nsFT2FontCatalog.h.


Constructor & Destructor Documentation

Definition at line 119 of file nsFT2FontCatalog.cpp.

 : mFontCatalog(nsnull),
   mRange1Language(nsnull),
   mRange2Language(nsnull)
#endif
{
#if (defined(MOZ_ENABLE_FREETYPE2))
  nsresult rv;
  mAvailableFontCatalogService = PR_FALSE;

  mFt2 = do_GetService(NS_FREETYPE2_CONTRACTID, &rv);
  if (NS_FAILED(rv)) {
    // FreeType is not available
    return;
  }

  FT_Library lib;
  mFt2->GetLibrary(&lib);
  if (!lib) {
    // FreeType is not available
    return;
  }

  if (!InitGlobals(lib)) {
    // Font Catalog Service is not available
    return;
  }
  mAvailableFontCatalogService = PR_TRUE;
#endif
}

Here is the call graph for this function:

Definition at line 151 of file nsFT2FontCatalog.cpp.

{
#if (defined(MOZ_ENABLE_FREETYPE2))
  FreeGlobals();
#endif
}

Here is the call graph for this function:


Member Function Documentation

nsIArray nsIFontCatalogService::getFontCatalogEntries ( in ACString  familyName,
in ACString  language,
in unsigned short  weight,
in unsigned short  width,
in unsigned short  slant,
in unsigned short  spacing 
) [inherited]

Member Data Documentation

const unsigned short nsIFontCatalogService::kFCSlantAny = 0 [inherited]

Definition at line 111 of file nsIFontCatalogService.idl.

const unsigned short nsIFontCatalogService::kFCSlantItalic = 2 [inherited]

Definition at line 113 of file nsIFontCatalogService.idl.

const unsigned short nsIFontCatalogService::kFCSlantOblique = 3 [inherited]

Definition at line 114 of file nsIFontCatalogService.idl.

const unsigned short nsIFontCatalogService::kFCSlantReverseItalic = 4 [inherited]

Definition at line 115 of file nsIFontCatalogService.idl.

const unsigned short nsIFontCatalogService::kFCSlantReverseOblique = 5 [inherited]

Definition at line 116 of file nsIFontCatalogService.idl.

const unsigned short nsIFontCatalogService::kFCSlantRoman = 1 [inherited]

Definition at line 112 of file nsIFontCatalogService.idl.

const unsigned short nsIFontCatalogService::kFCSpacingAny = 0 [inherited]

Definition at line 119 of file nsIFontCatalogService.idl.

const unsigned short nsIFontCatalogService::kFCSpacingMonospace = 1 [inherited]

Definition at line 120 of file nsIFontCatalogService.idl.

const unsigned short nsIFontCatalogService::kFCSpacingProportional = 2 [inherited]

Definition at line 121 of file nsIFontCatalogService.idl.

const unsigned short nsIFontCatalogService::kFCWeighBlack = 900 [inherited]

Definition at line 97 of file nsIFontCatalogService.idl.

const unsigned short nsIFontCatalogService::kFCWeightAny = 0 [inherited]

Definition at line 89 of file nsIFontCatalogService.idl.

const unsigned short nsIFontCatalogService::kFCWeightBold = 700 [inherited]

Definition at line 96 of file nsIFontCatalogService.idl.

const unsigned short nsIFontCatalogService::kFCWeightBook = 400 [inherited]

Definition at line 91 of file nsIFontCatalogService.idl.

const unsigned short nsIFontCatalogService::kFCWeightDemi = 600 [inherited]

Definition at line 94 of file nsIFontCatalogService.idl.

const unsigned short nsIFontCatalogService::kFCWeightDemibold = 600 [inherited]

Definition at line 95 of file nsIFontCatalogService.idl.

const unsigned short nsIFontCatalogService::kFCWeightLight = 300 [inherited]

Definition at line 90 of file nsIFontCatalogService.idl.

const unsigned short nsIFontCatalogService::kFCWeightMedium = 400 [inherited]

Definition at line 92 of file nsIFontCatalogService.idl.

const unsigned short nsIFontCatalogService::kFCWeightRegular = 400 [inherited]

Definition at line 93 of file nsIFontCatalogService.idl.

const unsigned short nsIFontCatalogService::kFCWidthAny = 0 [inherited]

Definition at line 100 of file nsIFontCatalogService.idl.

const unsigned short nsIFontCatalogService::kFCWidthBlock = 5 [inherited]

Definition at line 103 of file nsIFontCatalogService.idl.

const unsigned short nsIFontCatalogService::kFCWidthBold = 7 [inherited]

Definition at line 106 of file nsIFontCatalogService.idl.

const unsigned short nsIFontCatalogService::kFCWidthDoubleWide = 9 [inherited]

Definition at line 108 of file nsIFontCatalogService.idl.

const unsigned short nsIFontCatalogService::kFCWidthMedium = 5 [inherited]

Definition at line 104 of file nsIFontCatalogService.idl.

const unsigned short nsIFontCatalogService::kFCWidthNarrow = 3 [inherited]

Definition at line 101 of file nsIFontCatalogService.idl.

const unsigned short nsIFontCatalogService::kFCWidthNormal = 5 [inherited]

Definition at line 105 of file nsIFontCatalogService.idl.

const unsigned short nsIFontCatalogService::kFCWidthSemicondensed = 4 [inherited]

Definition at line 102 of file nsIFontCatalogService.idl.

const unsigned short nsIFontCatalogService::kFCWidthWide = 7 [inherited]

Definition at line 107 of file nsIFontCatalogService.idl.


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