Public Member Functions | Static Public Member Functions | Public Attributes

gfxFontStyle Struct Reference

#include <gfxFont.h>

Collaboration diagram for gfxFontStyle:

List of all members.

Public Member Functions

 gfxFontStyle ()
 gfxFontStyle (PRUint8 aStyle, PRUint16 aWeight, PRInt16 aStretch, gfxFloat aSize, nsIAtom *aLanguage, float aSizeAdjust, PRPackedBool aSystemFont, PRPackedBool aFamilyNameQuirks, PRPackedBool aPrinterFont, const nsString_external &aFeatureSettings, const nsString_external &aLanguageOverride)
 gfxFontStyle (const gfxFontStyle &aStyle)
gfxFloat GetAdjustedSize (gfxFloat aspect) const
PLDHashNumber Hash () const
PRInt8 ComputeWeight () const
PRBool Equals (const gfxFontStyle &other) const

Static Public Member Functions

static void ParseFontFeatureSettings (const nsString_external &aFeatureString, nsTArray< gfxFontFeature > &aFeatures)
static PRUint32 ParseFontLanguageOverride (const nsString_external &aLangTag)

Public Attributes

PRUint8 style: 7
PRPackedBool systemFont: 1
PRPackedBool printerFont: 1
PRPackedBool familyNameQuirks: 1
PRUint16 weight
PRInt16 stretch
gfxFloat size
float sizeAdjust
nsRefPtr< nsIAtomlanguage
PRUint32 languageOverride
nsTArray< gfxFontFeaturefeatureSettings

Constructor & Destructor Documentation

gfxFontStyle::gfxFontStyle (  ) 
gfxFontStyle::gfxFontStyle ( PRUint8  aStyle,
PRUint16  aWeight,
PRInt16  aStretch,
gfxFloat  aSize,
nsIAtom aLanguage,
float  aSizeAdjust,
PRPackedBool  aSystemFont,
PRPackedBool  aFamilyNameQuirks,
PRPackedBool  aPrinterFont,
const nsString_external aFeatureSettings,
const nsString_external aLanguageOverride 
gfxFontStyle::gfxFontStyle ( const gfxFontStyle aStyle  ) 

Member Function Documentation

PRInt8 gfxFontStyle::ComputeWeight (  )  const
PRBool gfxFontStyle::Equals ( const gfxFontStyle other  )  const [inline]
gfxFloat gfxFontStyle::GetAdjustedSize ( gfxFloat  aspect  )  const [inline]
PLDHashNumber gfxFontStyle::Hash (  )  const [inline]
static void gfxFontStyle::ParseFontFeatureSettings ( const nsString_external aFeatureString,
nsTArray< gfxFontFeature > &  aFeatures 
) [static]
static PRUint32 gfxFontStyle::ParseFontLanguageOverride ( const nsString_external aLangTag  )  [static]

Member Data Documentation

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