Classes | Public Types | Public Member Functions | Protected Attributes

gfxTextRunFactory Class Reference

#include <gfxFont.h>

Inheritance diagram for gfxTextRunFactory:

List of all members.

Classes

struct  Parameters
 This record contains all the parameters needed to initialize a textrun. More...

Public Types

enum  {
  CACHE_TEXT_FLAGS = 0xF0000000, USER_TEXT_FLAGS = 0x0FFF0000, PLATFORM_TEXT_FLAGS = 0x0000F000, TEXTRUN_TEXT_FLAGS = 0x00000FFF,
  SETTABLE_FLAGS = CACHE_TEXT_FLAGS | USER_TEXT_FLAGS, TEXT_IS_PERSISTENT = 0x0001, TEXT_IS_ASCII = 0x0002, TEXT_IS_RTL = 0x0004,
  TEXT_ENABLE_SPACING = 0x0008, TEXT_ENABLE_HYPHEN_BREAKS = 0x0010, TEXT_IS_8BIT = 0x0020, TEXT_NEED_BOUNDING_BOX = 0x0040,
  TEXT_DISABLE_OPTIONAL_LIGATURES = 0x0080, TEXT_OPTIMIZE_SPEED = 0x0100
}

Public Member Functions

nsrefcnt AddRef (void)
nsrefcnt Release (void)
virtual ~gfxTextRunFactory ()

Protected Attributes

nsAutoRefCnt mRefCnt

Member Enumeration Documentation

anonymous enum
Enumerator:
CACHE_TEXT_FLAGS 
USER_TEXT_FLAGS 
PLATFORM_TEXT_FLAGS 
TEXTRUN_TEXT_FLAGS 
SETTABLE_FLAGS 
TEXT_IS_PERSISTENT 

When set, the text string pointer used to create the text run is guaranteed to be available during the lifetime of the text run.

TEXT_IS_ASCII 

When set, the text is known to be all-ASCII (< 128).

TEXT_IS_RTL 

When set, the text is RTL.

TEXT_ENABLE_SPACING 

When set, spacing is enabled and the textrun needs to call GetSpacing on the spacing provider.

TEXT_ENABLE_HYPHEN_BREAKS 

When set, GetHyphenationBreaks may return true for some character positions, otherwise it will always return false for all characters.

TEXT_IS_8BIT 

When set, the text has no characters above 255 and it is stored in the textrun in 8-bit format.

TEXT_NEED_BOUNDING_BOX 

When set, the RunMetrics::mBoundingBox field will be initialized properly based on glyph extents, in particular, glyph extents that overflow the standard font-box (the box defined by the ascent, descent and advance width of the glyph).

When not set, it may just be the standard font-box even if glyphs overflow.

TEXT_DISABLE_OPTIONAL_LIGATURES 

When set, optional ligatures are disabled.

Ligatures that are required for legible text should still be enabled.

TEXT_OPTIMIZE_SPEED 

When set, the textrun should favour speed of construction over quality.

This may involve disabling ligatures and/or kerning or other effects.


Constructor & Destructor Documentation

virtual gfxTextRunFactory::~gfxTextRunFactory (  )  [inline, virtual]

Member Function Documentation

nsrefcnt gfxTextRunFactory::AddRef ( void   )  [inline]
nsrefcnt gfxTextRunFactory::Release ( void   )  [inline]

Member Data Documentation

nsAutoRefCnt gfxTextRunFactory::mRefCnt [protected]

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