webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Classes | Public Member Functions | Static Public Member Functions | List of all members
WebCore::Font Class Reference

#include <Font.h>

Inheritance diagram for WebCore::Font:
WTF::RefCounted< Font > WTF::RefCounted< Font > WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase

Public Member Functions

WEBCORE_EXPORT ~Font ()
 
const FontPlatformDataplatformData () const
 
const OpenTypeMathDatamathData () const
 
const FontsmallCapsFont (const FontDescription &) const
 
const FontnoSynthesizableFeaturesFont () const
 
const FontemphasisMarkFont (const FontDescription &) const
 
const FontbrokenIdeographFont () const
 
const FontnonSyntheticItalicFont () const
 
const FontvariantFont (const FontDescription &description, FontVariant variant) const
 
bool variantCapsSupportsCharacterForSynthesis (FontVariantCaps, UChar32) const
 
const FontverticalRightOrientationFont () const
 
const FontuprightOrientationFont () const
 
bool hasVerticalGlyphs () const
 
bool isTextOrientationFallback () const
 
FontMetricsfontMetrics ()
 
const FontMetricsfontMetrics () const
 
float sizePerUnit () const
 
float maxCharWidth () const
 
void setMaxCharWidth (float maxCharWidth)
 
float avgCharWidth () const
 
void setAvgCharWidth (float avgCharWidth)
 
FloatRect boundsForGlyph (Glyph) const
 
float widthForGlyph (Glyph) const
 
FloatRect platformBoundsForGlyph (Glyph) const
 
float platformWidthForGlyph (Glyph) const
 
float spaceWidth () const
 
float adjustedSpaceWidth () const
 
void setSpaceWidths (float spaceWidth)
 
Glyph spaceGlyph () const
 
void setSpaceGlyph (Glyph spaceGlyph)
 
Glyph zeroWidthSpaceGlyph () const
 
void setZeroWidthSpaceGlyph (Glyph spaceGlyph)
 
bool isZeroWidthSpaceGlyph (Glyph glyph) const
 
Glyph zeroGlyph () const
 
void setZeroGlyph (Glyph zeroGlyph)
 
GlyphData glyphDataForCharacter (UChar32) const
 
Glyph glyphForCharacter (UChar32) const
 
RefPtr< FontsystemFallbackFontForCharacter (UChar32, const FontDescription &, bool isForPlatformFont) const
 
const GlyphPageglyphPage (unsigned pageNumber) const
 
void determinePitch ()
 
Pitch pitch () const
 
bool isCustomFont () const
 
bool isLoading () const
 
String description () const
 
bool applyTransforms (GlyphBufferGlyph *, GlyphBufferAdvance *, size_t glyphCount, bool enableKerning, bool requiresShaping) const
 
WEBCORE_EXPORT ~Font ()
 
const FontPlatformDataplatformData () const
 
const OpenTypeMathDatamathData () const
 
const FontsmallCapsFont (const FontDescription &) const
 
const FontnoSynthesizableFeaturesFont () const
 
const FontemphasisMarkFont (const FontDescription &) const
 
const FontbrokenIdeographFont () const
 
const FontnonSyntheticItalicFont () const
 
const FontvariantFont (const FontDescription &description, FontVariant variant) const
 
bool variantCapsSupportsCharacterForSynthesis (FontVariantCaps, UChar32) const
 
const FontverticalRightOrientationFont () const
 
const FontuprightOrientationFont () const
 
bool hasVerticalGlyphs () const
 
bool isTextOrientationFallback () const
 
FontMetricsfontMetrics ()
 
const FontMetricsfontMetrics () const
 
float sizePerUnit () const
 
float maxCharWidth () const
 
void setMaxCharWidth (float maxCharWidth)
 
float avgCharWidth () const
 
void setAvgCharWidth (float avgCharWidth)
 
FloatRect boundsForGlyph (Glyph) const
 
float widthForGlyph (Glyph) const
 
FloatRect platformBoundsForGlyph (Glyph) const
 
float platformWidthForGlyph (Glyph) const
 
float spaceWidth () const
 
float adjustedSpaceWidth () const
 
void setSpaceWidths (float spaceWidth)
 
Glyph spaceGlyph () const
 
void setSpaceGlyph (Glyph spaceGlyph)
 
Glyph zeroWidthSpaceGlyph () const
 
void setZeroWidthSpaceGlyph (Glyph spaceGlyph)
 
bool isZeroWidthSpaceGlyph (Glyph glyph) const
 
Glyph zeroGlyph () const
 
void setZeroGlyph (Glyph zeroGlyph)
 
GlyphData glyphDataForCharacter (UChar32) const
 
Glyph glyphForCharacter (UChar32) const
 
RefPtr< FontsystemFallbackFontForCharacter (UChar32, const FontDescription &, bool isForPlatformFont) const
 
const GlyphPageglyphPage (unsigned pageNumber) const
 
void determinePitch ()
 
Pitch pitch () const
 
bool isCustomFont () const
 
bool isLoading () const
 
String description () const
 
bool applyTransforms (GlyphBufferGlyph *, GlyphBufferAdvance *, size_t glyphCount, bool enableKerning, bool requiresShaping) const
 
- Public Member Functions inherited from WTF::RefCounted< Font >
void deref () const
 
void deref () const
 
void deref () const
 
- Public Member Functions inherited from WTF::RefCountedBase
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 

Static Public Member Functions

static Ref< Fontcreate (const FontPlatformData &platformData, bool isCustomFont=false, bool isLoading=false, bool isTextOrientationFallback=false)
 
static const FontsystemFallback ()
 
static Ref< Fontcreate (const FontPlatformData &platformData, bool isCustomFont=false, bool isLoading=false, bool isTextOrientationFallback=false)
 
static const FontsystemFallback ()
 

Additional Inherited Members

- Protected Member Functions inherited from WTF::RefCounted< Font >
 RefCounted ()
 
 RefCounted ()
 
 RefCounted ()
 
 ~RefCounted ()
 
 ~RefCounted ()
 
 ~RefCounted ()
 
- Protected Member Functions inherited from WTF::RefCountedBase
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 

Constructor & Destructor Documentation

◆ ~Font() [1/2]

WebCore::Font::~Font ( )

◆ ~Font() [2/2]

WEBCORE_EXPORT WebCore::Font::~Font ( )

Member Function Documentation

◆ adjustedSpaceWidth() [1/2]

float WebCore::Font::adjustedSpaceWidth ( ) const
inline

◆ adjustedSpaceWidth() [2/2]

float WebCore::Font::adjustedSpaceWidth ( ) const
inline

◆ applyTransforms() [1/2]

bool WebCore::Font::applyTransforms ( GlyphBufferGlyph glyphs,
GlyphBufferAdvance advances,
size_t  glyphCount,
bool  enableKerning,
bool  requiresShaping 
) const

◆ applyTransforms() [2/2]

bool WebCore::Font::applyTransforms ( GlyphBufferGlyph ,
GlyphBufferAdvance ,
size_t  glyphCount,
bool  enableKerning,
bool  requiresShaping 
) const

◆ avgCharWidth() [1/2]

float WebCore::Font::avgCharWidth ( ) const
inline

◆ avgCharWidth() [2/2]

float WebCore::Font::avgCharWidth ( ) const
inline

◆ boundsForGlyph() [1/2]

FloatRect WebCore::Font::boundsForGlyph ( Glyph  ) const

◆ boundsForGlyph() [2/2]

ALWAYS_INLINE FloatRect WebCore::Font::boundsForGlyph ( Glyph  glyph) const

◆ brokenIdeographFont() [1/2]

const Font & WebCore::Font::brokenIdeographFont ( ) const

◆ brokenIdeographFont() [2/2]

const Font& WebCore::Font::brokenIdeographFont ( ) const

◆ create() [1/2]

static Ref<Font> WebCore::Font::create ( const FontPlatformData platformData,
bool  isCustomFont = false,
bool  isLoading = false,
bool  isTextOrientationFallback = false 
)
inlinestatic

◆ create() [2/2]

static Ref<Font> WebCore::Font::create ( const FontPlatformData platformData,
bool  isCustomFont = false,
bool  isLoading = false,
bool  isTextOrientationFallback = false 
)
inlinestatic

◆ description() [1/2]

String WebCore::Font::description ( ) const

◆ description() [2/2]

String WebCore::Font::description ( ) const

◆ determinePitch() [1/2]

void WebCore::Font::determinePitch ( )

◆ determinePitch() [2/2]

void WebCore::Font::determinePitch ( )

◆ emphasisMarkFont() [1/2]

const Font* WebCore::Font::emphasisMarkFont ( const FontDescription ) const

◆ emphasisMarkFont() [2/2]

const Font * WebCore::Font::emphasisMarkFont ( const FontDescription fontDescription) const

◆ fontMetrics() [1/4]

FontMetrics& WebCore::Font::fontMetrics ( )
inline

◆ fontMetrics() [2/4]

FontMetrics& WebCore::Font::fontMetrics ( )
inline

◆ fontMetrics() [3/4]

const FontMetrics& WebCore::Font::fontMetrics ( ) const
inline

◆ fontMetrics() [4/4]

const FontMetrics& WebCore::Font::fontMetrics ( ) const
inline

◆ glyphDataForCharacter() [1/2]

GlyphData WebCore::Font::glyphDataForCharacter ( UChar32  character) const

◆ glyphDataForCharacter() [2/2]

GlyphData WebCore::Font::glyphDataForCharacter ( UChar32  ) const

◆ glyphForCharacter() [1/2]

Glyph WebCore::Font::glyphForCharacter ( UChar32  character) const

◆ glyphForCharacter() [2/2]

Glyph WebCore::Font::glyphForCharacter ( UChar32  ) const

◆ glyphPage() [1/2]

const GlyphPage * WebCore::Font::glyphPage ( unsigned  pageNumber) const

◆ glyphPage() [2/2]

const GlyphPage* WebCore::Font::glyphPage ( unsigned  pageNumber) const

◆ hasVerticalGlyphs() [1/2]

bool WebCore::Font::hasVerticalGlyphs ( ) const
inline

◆ hasVerticalGlyphs() [2/2]

bool WebCore::Font::hasVerticalGlyphs ( ) const
inline

◆ isCustomFont() [1/2]

bool WebCore::Font::isCustomFont ( ) const
inline

◆ isCustomFont() [2/2]

bool WebCore::Font::isCustomFont ( ) const
inline

◆ isLoading() [1/2]

bool WebCore::Font::isLoading ( ) const
inline

◆ isLoading() [2/2]

bool WebCore::Font::isLoading ( ) const
inline

◆ isTextOrientationFallback() [1/2]

bool WebCore::Font::isTextOrientationFallback ( ) const
inline

◆ isTextOrientationFallback() [2/2]

bool WebCore::Font::isTextOrientationFallback ( ) const
inline

◆ isZeroWidthSpaceGlyph() [1/2]

bool WebCore::Font::isZeroWidthSpaceGlyph ( Glyph  glyph) const
inline

◆ isZeroWidthSpaceGlyph() [2/2]

bool WebCore::Font::isZeroWidthSpaceGlyph ( Glyph  glyph) const
inline

◆ mathData() [1/2]

const OpenTypeMathData * WebCore::Font::mathData ( ) const

◆ mathData() [2/2]

const OpenTypeMathData* WebCore::Font::mathData ( ) const

◆ maxCharWidth() [1/2]

float WebCore::Font::maxCharWidth ( ) const
inline

◆ maxCharWidth() [2/2]

float WebCore::Font::maxCharWidth ( ) const
inline

◆ nonSyntheticItalicFont() [1/2]

const Font & WebCore::Font::nonSyntheticItalicFont ( ) const

◆ nonSyntheticItalicFont() [2/2]

const Font& WebCore::Font::nonSyntheticItalicFont ( ) const

◆ noSynthesizableFeaturesFont() [1/2]

const Font& WebCore::Font::noSynthesizableFeaturesFont ( ) const

◆ noSynthesizableFeaturesFont() [2/2]

const Font & WebCore::Font::noSynthesizableFeaturesFont ( ) const

◆ pitch() [1/2]

Pitch WebCore::Font::pitch ( ) const
inline

◆ pitch() [2/2]

Pitch WebCore::Font::pitch ( ) const
inline

◆ platformBoundsForGlyph() [1/2]

FloatRect WebCore::Font::platformBoundsForGlyph ( Glyph  ) const

◆ platformBoundsForGlyph() [2/2]

FloatRect WebCore::Font::platformBoundsForGlyph ( Glyph  glyph) const

◆ platformData() [1/2]

const FontPlatformData& WebCore::Font::platformData ( ) const
inline

◆ platformData() [2/2]

const FontPlatformData& WebCore::Font::platformData ( ) const
inline

◆ platformWidthForGlyph() [1/2]

float WebCore::Font::platformWidthForGlyph ( Glyph  ) const

◆ platformWidthForGlyph() [2/2]

float WebCore::Font::platformWidthForGlyph ( Glyph  glyph) const

◆ setAvgCharWidth() [1/2]

void WebCore::Font::setAvgCharWidth ( float  avgCharWidth)
inline

◆ setAvgCharWidth() [2/2]

void WebCore::Font::setAvgCharWidth ( float  avgCharWidth)
inline

◆ setMaxCharWidth() [1/2]

void WebCore::Font::setMaxCharWidth ( float  maxCharWidth)
inline

◆ setMaxCharWidth() [2/2]

void WebCore::Font::setMaxCharWidth ( float  maxCharWidth)
inline

◆ setSpaceGlyph() [1/2]

void WebCore::Font::setSpaceGlyph ( Glyph  spaceGlyph)
inline

◆ setSpaceGlyph() [2/2]

void WebCore::Font::setSpaceGlyph ( Glyph  spaceGlyph)
inline

◆ setSpaceWidths() [1/2]

void WebCore::Font::setSpaceWidths ( float  spaceWidth)
inline

◆ setSpaceWidths() [2/2]

void WebCore::Font::setSpaceWidths ( float  spaceWidth)
inline

◆ setZeroGlyph() [1/2]

void WebCore::Font::setZeroGlyph ( Glyph  zeroGlyph)
inline

◆ setZeroGlyph() [2/2]

void WebCore::Font::setZeroGlyph ( Glyph  zeroGlyph)
inline

◆ setZeroWidthSpaceGlyph() [1/2]

void WebCore::Font::setZeroWidthSpaceGlyph ( Glyph  spaceGlyph)
inline

◆ setZeroWidthSpaceGlyph() [2/2]

void WebCore::Font::setZeroWidthSpaceGlyph ( Glyph  spaceGlyph)
inline

◆ sizePerUnit() [1/2]

float WebCore::Font::sizePerUnit ( ) const
inline

◆ sizePerUnit() [2/2]

float WebCore::Font::sizePerUnit ( ) const
inline

◆ smallCapsFont() [1/2]

const Font* WebCore::Font::smallCapsFont ( const FontDescription ) const

◆ smallCapsFont() [2/2]

const Font * WebCore::Font::smallCapsFont ( const FontDescription fontDescription) const

◆ spaceGlyph() [1/2]

Glyph WebCore::Font::spaceGlyph ( ) const
inline

◆ spaceGlyph() [2/2]

Glyph WebCore::Font::spaceGlyph ( ) const
inline

◆ spaceWidth() [1/2]

float WebCore::Font::spaceWidth ( ) const
inline

◆ spaceWidth() [2/2]

float WebCore::Font::spaceWidth ( ) const
inline

◆ systemFallback() [1/2]

static const Font* WebCore::Font::systemFallback ( )
inlinestatic

◆ systemFallback() [2/2]

static const Font* WebCore::Font::systemFallback ( )
inlinestatic

◆ systemFallbackFontForCharacter() [1/2]

RefPtr< Font > WebCore::Font::systemFallbackFontForCharacter ( UChar32  character,
const FontDescription description,
bool  isForPlatformFont 
) const

◆ systemFallbackFontForCharacter() [2/2]

RefPtr<Font> WebCore::Font::systemFallbackFontForCharacter ( UChar32  ,
const FontDescription ,
bool  isForPlatformFont 
) const

◆ uprightOrientationFont() [1/2]

const Font & WebCore::Font::uprightOrientationFont ( ) const

◆ uprightOrientationFont() [2/2]

const Font& WebCore::Font::uprightOrientationFont ( ) const

◆ variantCapsSupportsCharacterForSynthesis() [1/2]

bool WebCore::Font::variantCapsSupportsCharacterForSynthesis ( FontVariantCaps  fontVariantCaps,
UChar32  character 
) const

◆ variantCapsSupportsCharacterForSynthesis() [2/2]

bool WebCore::Font::variantCapsSupportsCharacterForSynthesis ( FontVariantCaps  ,
UChar32   
) const

◆ variantFont() [1/2]

const Font* WebCore::Font::variantFont ( const FontDescription description,
FontVariant  variant 
) const
inline

◆ variantFont() [2/2]

const Font* WebCore::Font::variantFont ( const FontDescription description,
FontVariant  variant 
) const
inline

◆ verticalRightOrientationFont() [1/2]

const Font& WebCore::Font::verticalRightOrientationFont ( ) const

◆ verticalRightOrientationFont() [2/2]

const Font & WebCore::Font::verticalRightOrientationFont ( ) const

◆ widthForGlyph() [1/2]

ALWAYS_INLINE float WebCore::Font::widthForGlyph ( Glyph  glyph) const

◆ widthForGlyph() [2/2]

float WebCore::Font::widthForGlyph ( Glyph  ) const

◆ zeroGlyph() [1/2]

Glyph WebCore::Font::zeroGlyph ( ) const
inline

◆ zeroGlyph() [2/2]

Glyph WebCore::Font::zeroGlyph ( ) const
inline

◆ zeroWidthSpaceGlyph() [1/2]

Glyph WebCore::Font::zeroWidthSpaceGlyph ( ) const
inline

◆ zeroWidthSpaceGlyph() [2/2]

Glyph WebCore::Font::zeroWidthSpaceGlyph ( ) const
inline

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