Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes

gfxFontFamily Class Reference

#include <gfxFont.h>

Inheritance diagram for gfxFontFamily:
Collaboration diagram for gfxFontFamily:

List of all members.

Public Member Functions

 gfxFontFamily (const nsAString &aName)
virtual ~gfxFontFamily ()
const nsString_externalName ()
virtual void LocalizedName (nsAString &aLocalizedName)
virtual PRBool HasOtherFamilyNames ()
nsTArray< nsRefPtr
< gfxFontEntry > > & 
GetFontList ()
void AddFontEntry (nsRefPtr< gfxFontEntry > aFontEntry)
void SetHasStyles (PRBool aHasStyles)
gfxFontEntryFindFontForStyle (const gfxFontStyle &aFontStyle, PRBool &aNeedsSyntheticBold)
void FindFontForChar (FontSearch *aMatchData)
virtual void ReadOtherFamilyNames (gfxPlatformFontList *aPlatformFontList)
void SetOtherFamilyNamesInitialized ()
virtual void ReadFaceNames (gfxPlatformFontList *aPlatformFontList, PRBool aNeedFullnamePostscriptNames)
virtual void FindStyleVariations ()
gfxFontEntryFindFont (const nsAString &aPostscriptName)
void ReadCMAP ()
void SetBadUnderlineFamily ()
PRBool IsBadUnderlineFamily () const
void SortAvailableFonts ()
void CheckForSimpleFamily ()

Protected Types

enum  {
  kRegularFaceIndex = 0, kBoldFaceIndex = 1, kItalicFaceIndex = 2, kBoldItalicFaceIndex = 3,
  kBoldMask = 0x01, kItalicMask = 0x02
}

Protected Member Functions

virtual PRBool FindWeightsForStyle (gfxFontEntry *aFontsForWeights[], PRBool anItalic, PRInt16 aStretch)
PRBool ReadOtherFamilyNamesForFace (gfxPlatformFontList *aPlatformFontList, FallibleTArray< PRUint8 > &aNameTable, PRBool useFullName=0)
void SetBadUnderlineFonts ()

Protected Attributes

nsString_external mName
nsTArray< nsRefPtr
< gfxFontEntry > > 
mAvailableFonts
PRPackedBool mOtherFamilyNamesInitialized
PRPackedBool mHasOtherFamilyNames
PRPackedBool mFaceNamesInitialized
PRPackedBool mHasStyles
PRPackedBool mIsSimpleFamily
PRPackedBool mIsBadUnderlineFamily

Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
kRegularFaceIndex 
kBoldFaceIndex 
kItalicFaceIndex 
kBoldItalicFaceIndex 
kBoldMask 
kItalicMask 

Constructor & Destructor Documentation

gfxFontFamily::gfxFontFamily ( const nsAString aName  )  [inline]
virtual gfxFontFamily::~gfxFontFamily (  )  [inline, virtual]

Member Function Documentation

void gfxFontFamily::AddFontEntry ( nsRefPtr< gfxFontEntry aFontEntry  )  [inline]
void gfxFontFamily::CheckForSimpleFamily (  ) 
gfxFontEntry* gfxFontFamily::FindFont ( const nsAString aPostscriptName  ) 
void gfxFontFamily::FindFontForChar ( FontSearch aMatchData  ) 
gfxFontEntry* gfxFontFamily::FindFontForStyle ( const gfxFontStyle aFontStyle,
PRBool aNeedsSyntheticBold 
)
virtual void gfxFontFamily::FindStyleVariations (  )  [inline, virtual]
virtual PRBool gfxFontFamily::FindWeightsForStyle ( gfxFontEntry aFontsForWeights[],
PRBool  anItalic,
PRInt16  aStretch 
) [protected, virtual]
nsTArray<nsRefPtr<gfxFontEntry> >& gfxFontFamily::GetFontList (  )  [inline]
virtual PRBool gfxFontFamily::HasOtherFamilyNames (  )  [virtual]
PRBool gfxFontFamily::IsBadUnderlineFamily (  )  const [inline]
virtual void gfxFontFamily::LocalizedName ( nsAString aLocalizedName  )  [virtual]
const nsString_external& gfxFontFamily::Name (  )  [inline]
void gfxFontFamily::ReadCMAP (  )  [inline]
virtual void gfxFontFamily::ReadFaceNames ( gfxPlatformFontList *  aPlatformFontList,
PRBool  aNeedFullnamePostscriptNames 
) [virtual]
virtual void gfxFontFamily::ReadOtherFamilyNames ( gfxPlatformFontList *  aPlatformFontList  )  [virtual]
PRBool gfxFontFamily::ReadOtherFamilyNamesForFace ( gfxPlatformFontList *  aPlatformFontList,
FallibleTArray< PRUint8 > &  aNameTable,
PRBool  useFullName = 0 
) [protected]
void gfxFontFamily::SetBadUnderlineFamily (  )  [inline]
void gfxFontFamily::SetBadUnderlineFonts (  )  [inline, protected]
void gfxFontFamily::SetHasStyles ( PRBool  aHasStyles  )  [inline]
void gfxFontFamily::SetOtherFamilyNamesInitialized (  )  [inline]
void gfxFontFamily::SortAvailableFonts (  ) 

Member Data Documentation


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