Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends

gfxFontEntry Class Reference

#include <gfxFont.h>

Inheritance diagram for gfxFontEntry:
Collaboration diagram for gfxFontEntry:

List of all members.

Public Member Functions

nsrefcnt AddRef (void)
nsrefcnt Release (void)
 gfxFontEntry (const nsAString &aName, gfxFontFamily *aFamily=0, PRBool aIsStandardFace=0)
 gfxFontEntry (const gfxFontEntry &aEntry)
virtual ~gfxFontEntry ()
const nsString_externalName () const
PRUint16 Weight () const
PRInt16 Stretch () const
PRBool IsUserFont () const
PRBool IsFixedPitch () const
PRBool IsItalic () const
PRBool IsBold () const
PRBool IsSymbolFont () const
PRBool HasCharacter (PRUint32 ch)
virtual PRBool TestCharacterMap (PRUint32 aCh)
virtual nsresult ReadCMAP ()
virtual PRBool MatchesGenericFamily (const nsACString &aGeneric) const
virtual PRBool SupportsLangGroup (const nsACString &aLangGroup) const
void SetFamily (gfxFontFamily *aFamily)
const nsString_externalFamilyName ()
already_AddRefed< gfxFontGetOrMakeFont (const gfxFontStyle *aStyle, PRBool aNeedsBold)

Public Attributes

nsString_external mName
PRPackedBool mItalic: 1
PRPackedBool mFixedPitch: 1
PRPackedBool mIsProxy: 1
PRPackedBool mIsValid: 1
PRPackedBool mIsBadUnderlineFont: 1
PRPackedBool mIsUserFont: 1
PRPackedBool mStandardFace: 1
PRPackedBool mSymbolFont: 1
PRUint16 mWeight
PRInt16 mStretch
PRPackedBool mCmapInitialized
gfxSparseBitSet mCharacterMap

Protected Member Functions

 gfxFontEntry ()
virtual nsresult GetFontTable (PRUint32 aTableTag, nsTArray< PRUint8 > &aBuffer)
virtual gfxFontCreateFontInstance (const gfxFontStyle *aFontStyle, PRBool aNeedsBold)

Protected Attributes

nsAutoRefCnt mRefCnt


class gfxPlatformFontList
class gfxMacPlatformFontList
class gfxFcFontEntry
class gfxFontFamily

Constructor & Destructor Documentation

gfxFontEntry::gfxFontEntry ( const nsAString aName,
gfxFontFamily aFamily = 0,
PRBool  aIsStandardFace = 0 
) [inline]
gfxFontEntry::gfxFontEntry ( const gfxFontEntry aEntry  )  [inline]
virtual gfxFontEntry::~gfxFontEntry (  )  [virtual]
gfxFontEntry::gfxFontEntry (  )  [inline, protected]

Member Function Documentation

nsrefcnt gfxFontEntry::AddRef ( void   )  [inline]
virtual gfxFont* gfxFontEntry::CreateFontInstance ( const gfxFontStyle aFontStyle,
PRBool  aNeedsBold 
) [inline, protected, virtual]

Reimplemented in gfxProxyFontEntry.

const nsString_external& gfxFontEntry::FamilyName (  ) 
virtual nsresult gfxFontEntry::GetFontTable ( PRUint32  aTableTag,
nsTArray< PRUint8 > &  aBuffer 
) [inline, protected, virtual]
already_AddRefed<gfxFont> gfxFontEntry::GetOrMakeFont ( const gfxFontStyle aStyle,
PRBool  aNeedsBold 
PRBool gfxFontEntry::HasCharacter ( PRUint32  ch  )  [inline]
PRBool gfxFontEntry::IsBold (  )  const [inline]
PRBool gfxFontEntry::IsFixedPitch (  )  const [inline]
PRBool gfxFontEntry::IsItalic (  )  const [inline]
PRBool gfxFontEntry::IsSymbolFont (  )  const [inline]
PRBool gfxFontEntry::IsUserFont (  )  const [inline]
virtual PRBool gfxFontEntry::MatchesGenericFamily ( const nsACString aGeneric  )  const [inline, virtual]
const nsString_external& gfxFontEntry::Name (  )  const [inline]
virtual nsresult gfxFontEntry::ReadCMAP (  )  [virtual]
nsrefcnt gfxFontEntry::Release ( void   )  [inline]
void gfxFontEntry::SetFamily ( gfxFontFamily aFamily  )  [inline]
PRInt16 gfxFontEntry::Stretch (  )  const [inline]
virtual PRBool gfxFontEntry::SupportsLangGroup ( const nsACString aLangGroup  )  const [inline, virtual]
virtual PRBool gfxFontEntry::TestCharacterMap ( PRUint32  aCh  )  [virtual]
PRUint16 gfxFontEntry::Weight (  )  const [inline]

Friends And Related Function Documentation

friend class gfxFcFontEntry [friend]
friend class gfxFontFamily [friend]
friend class gfxMacPlatformFontList [friend]
friend class gfxPlatformFontList [friend]

Member Data Documentation

nsAutoRefCnt gfxFontEntry::mRefCnt [protected]

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