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

gfxUserFontSet Class Reference

#include <gfxUserFontSet.h>

Collaboration diagram for gfxUserFontSet:

List of all members.

Public Types

enum  {
  FLAG_FORMAT_UNKNOWN = 1, FLAG_FORMAT_OPENTYPE = 1 << 1, FLAG_FORMAT_TRUETYPE = 1 << 2, FLAG_FORMAT_TRUETYPE_AAT = 1 << 3,
  FLAG_FORMAT_EOT = 1 << 4, FLAG_FORMAT_SVG = 1 << 5, FLAG_FORMAT_WOFF = 1 << 6, FLAG_FORMAT_NOT_USED = ~((1 << 7)-1)
}
enum  LoadStatus {
  STATUS_LOADING = 0, STATUS_LOADED, STATUS_FORMAT_NOT_SUPPORTED, STATUS_ERROR,
  STATUS_END_OF_LIST
}

Public Member Functions

nsrefcnt AddRef (void)
nsrefcnt Release (void)
 gfxUserFontSet ()
virtual ~gfxUserFontSet ()
void AddFontFace (const nsAString &aFamilyName, const nsTArray< gfxFontFaceSrc > &aFontFaceSrcList, PRUint32 aWeight=0, PRUint32 aStretch=0, PRUint32 aItalicStyle=0, gfxSparseBitSet *aUnicodeRanges=0)
PRBool HasFamily (const nsAString &aFamilyName) const
gfxFontEntryFindFontEntry (const nsAString &aName, const gfxFontStyle &aFontStyle, PRBool &aNeedsBold)
virtual nsresult StartLoad (gfxFontEntry *aFontToLoad, const gfxFontFaceSrc *aFontFaceSrc)=0
PRBool OnLoadComplete (gfxFontEntry *aFontToLoad, const PRUint8 *aFontData, PRUint32 aLength, nsresult aDownloadStatus)
PRUint64 GetGeneration ()

Protected Member Functions

LoadStatus LoadNext (gfxProxyFontEntry *aProxyEntry)
void IncrementGeneration ()
gfxMixedFontFamilyGetFamily (const nsAString &aName) const
void RemoveFamily (const nsAString &aFamilyName)

Protected Attributes

nsAutoRefCnt mRefCnt
nsRefPtrHashtable
< nsStringHashKey,
gfxMixedFontFamily
mFontFamilies
PRUint64 mGeneration

Member Enumeration Documentation

anonymous enum
Enumerator:
FLAG_FORMAT_UNKNOWN 
FLAG_FORMAT_OPENTYPE 
FLAG_FORMAT_TRUETYPE 
FLAG_FORMAT_TRUETYPE_AAT 
FLAG_FORMAT_EOT 
FLAG_FORMAT_SVG 
FLAG_FORMAT_WOFF 
FLAG_FORMAT_NOT_USED 
Enumerator:
STATUS_LOADING 
STATUS_LOADED 
STATUS_FORMAT_NOT_SUPPORTED 
STATUS_ERROR 
STATUS_END_OF_LIST 

Constructor & Destructor Documentation

gfxUserFontSet::gfxUserFontSet (  ) 
virtual gfxUserFontSet::~gfxUserFontSet (  )  [virtual]

Member Function Documentation

void gfxUserFontSet::AddFontFace ( const nsAString aFamilyName,
const nsTArray< gfxFontFaceSrc > &  aFontFaceSrcList,
PRUint32  aWeight = 0,
PRUint32  aStretch = 0,
PRUint32  aItalicStyle = 0,
gfxSparseBitSet aUnicodeRanges = 0 
)
nsrefcnt gfxUserFontSet::AddRef ( void   )  [inline]
gfxFontEntry* gfxUserFontSet::FindFontEntry ( const nsAString aName,
const gfxFontStyle aFontStyle,
PRBool aNeedsBold 
)
gfxMixedFontFamily* gfxUserFontSet::GetFamily ( const nsAString aName  )  const [protected]
PRUint64 gfxUserFontSet::GetGeneration (  )  [inline]
PRBool gfxUserFontSet::HasFamily ( const nsAString aFamilyName  )  const [inline]
void gfxUserFontSet::IncrementGeneration (  )  [protected]
LoadStatus gfxUserFontSet::LoadNext ( gfxProxyFontEntry aProxyEntry  )  [protected]
PRBool gfxUserFontSet::OnLoadComplete ( gfxFontEntry aFontToLoad,
const PRUint8 *  aFontData,
PRUint32  aLength,
nsresult  aDownloadStatus 
)
nsrefcnt gfxUserFontSet::Release ( void   )  [inline]
void gfxUserFontSet::RemoveFamily ( const nsAString aFamilyName  )  [protected]
virtual nsresult gfxUserFontSet::StartLoad ( gfxFontEntry aFontToLoad,
const gfxFontFaceSrc aFontFaceSrc 
) [pure virtual]

Member Data Documentation

nsAutoRefCnt gfxUserFontSet::mRefCnt [protected]

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