WebCore::Font Class Reference
#include <Font.h>
List of all members.
|
Public Types |
| enum | CodePath { Auto,
Simple,
Complex
} |
Public Member Functions |
| int | ascent () const |
| int | descent () const |
| void | drawText (GraphicsContext *, const TextRun &, const FloatPoint &, int from=0, int to=-1) const |
| const FontFamily & | family () const |
| FontFamily & | firstFamily () |
| float | floatWidth (const TextRun &run, int extraCharsAvailable, int &charsConsumed, String &glyphName) const |
| float | floatWidth (const TextRun &) const |
| | Font (const Font &) |
| | Font (const FontPlatformData &, bool isPrinting) |
| | Font (const FontDescription &, short letterSpacing, short wordSpacing) |
| | Font () |
| const FontData * | fontDataAt (unsigned) const |
| const FontData * | fontDataForCharacters (const UChar *, int length) const |
| const FontDescription & | fontDescription () const |
| FontSelector * | fontSelector () const |
| const GlyphData & | glyphDataForCharacter (UChar32, bool mirror, bool forceSmallCaps=false) const |
| int | height () const |
| bool | isFixedPitch () const |
| bool | isPlatformFont () const |
| bool | isPrinterFont () const |
| bool | isSmallCaps () const |
| bool | italic () const |
| short | letterSpacing () const |
| int | lineSpacing () const |
| int | offsetForPosition (const TextRun &, int position, bool includePartialGlyphs) const |
| bool | operator!= (const Font &other) const |
| Font & | operator= (const Font &) |
| bool | operator== (const Font &other) const |
| int | pixelSize () const |
| const SimpleFontData * | primaryFont () const |
| FontRenderingMode | renderingMode () const |
| FloatRect | selectionRectForText (const TextRun &, const IntPoint &, int h, int from=0, int to=-1) const |
| void | setLetterSpacing (short s) |
| void | setWordSpacing (short s) |
| float | size () const |
| int | spaceWidth () const |
| int | tabWidth () const |
| unsigned | unitsPerEm () const |
| void | update (PassRefPtr< FontSelector >) const |
| FontWeight | weight () const |
| int | width (const TextRun &) const |
| short | wordSpacing () const |
| float | xHeight () const |
| | ~Font () |
Static Public Member Functions |
| static bool | isRoundingHackCharacter (UChar32 c) |
| static void | setCodePath (CodePath) |
| static bool | treatAsSpace (UChar c) |
| static bool | treatAsZeroWidthSpace (UChar c) |
Static Public Attributes |
| static CodePath | codePath |
| static const uint8_t | gRoundingHackCharacterTable [256] |
Detailed Description
Definition at line 146 of file Font.h.
Member Enumeration Documentation
- Enumerator:
-
Definition at line 258 of file Font.h.
Constructor & Destructor Documentation
| WebCore::Font::Font |
( |
const FontDescription & |
, |
|
|
short |
letterSpacing, |
|
|
short |
wordSpacing | |
|
) |
| | |
| WebCore::Font::Font |
( |
const FontPlatformData & |
, |
|
|
bool |
isPrinting | |
|
) |
| | |
| WebCore::Font::Font |
( |
const Font & |
|
) |
|
Member Function Documentation
| int WebCore::Font::ascent |
( |
|
) |
const |
| int WebCore::Font::descent |
( |
|
) |
const |
| const FontFamily& WebCore::Font::family |
( |
|
) |
const [inline] |
| FontFamily& WebCore::Font::firstFamily |
( |
|
) |
[inline] |
| float WebCore::Font::floatWidth |
( |
const TextRun & |
run, |
|
|
int |
extraCharsAvailable, |
|
|
int & |
charsConsumed, |
|
|
String & |
glyphName | |
|
) |
| | const |
| float WebCore::Font::floatWidth |
( |
const TextRun & |
|
) |
const |
| const FontData* WebCore::Font::fontDataAt |
( |
unsigned |
|
) |
const |
| const FontData* WebCore::Font::fontDataForCharacters |
( |
const UChar * |
, |
|
|
int |
length | |
|
) |
| | const |
| FontSelector* WebCore::Font::fontSelector |
( |
|
) |
const |
| const GlyphData& WebCore::Font::glyphDataForCharacter |
( |
UChar32 |
, |
|
|
bool |
mirror, |
|
|
bool |
forceSmallCaps = false | |
|
) |
| | const |
| int WebCore::Font::height |
( |
|
) |
const [inline] |
| bool WebCore::Font::isFixedPitch |
( |
|
) |
const |
| bool WebCore::Font::isPlatformFont |
( |
|
) |
const [inline] |
| bool WebCore::Font::isPrinterFont |
( |
|
) |
const [inline] |
| static bool WebCore::Font::isRoundingHackCharacter |
( |
UChar32 |
c |
) |
[inline, static] |
| bool WebCore::Font::isSmallCaps |
( |
|
) |
const [inline] |
| bool WebCore::Font::italic |
( |
|
) |
const [inline] |
| short WebCore::Font::letterSpacing |
( |
|
) |
const [inline] |
| int WebCore::Font::lineSpacing |
( |
|
) |
const |
| int WebCore::Font::offsetForPosition |
( |
const TextRun & |
, |
|
|
int |
position, |
|
|
bool |
includePartialGlyphs | |
|
) |
| | const |
| bool WebCore::Font::operator!= |
( |
const Font & |
other |
) |
const [inline] |
| Font& WebCore::Font::operator= |
( |
const Font & |
|
) |
|
| bool WebCore::Font::operator== |
( |
const Font & |
other |
) |
const |
| int WebCore::Font::pixelSize |
( |
|
) |
const [inline] |
| const SimpleFontData* WebCore::Font::primaryFont |
( |
|
) |
const [inline] |
| FloatRect WebCore::Font::selectionRectForText |
( |
const TextRun & |
, |
|
|
const IntPoint & |
, |
|
|
int |
h, |
|
|
int |
from = 0, |
|
|
int |
to = -1 | |
|
) |
| | const |
| static void WebCore::Font::setCodePath |
( |
CodePath |
|
) |
[static] |
| void WebCore::Font::setLetterSpacing |
( |
short |
s |
) |
[inline] |
| void WebCore::Font::setWordSpacing |
( |
short |
s |
) |
[inline] |
| float WebCore::Font::size |
( |
|
) |
const [inline] |
| int WebCore::Font::spaceWidth |
( |
|
) |
const |
| int WebCore::Font::tabWidth |
( |
|
) |
const [inline] |
| static bool WebCore::Font::treatAsSpace |
( |
UChar |
c |
) |
[inline, static] |
| static bool WebCore::Font::treatAsZeroWidthSpace |
( |
UChar |
c |
) |
[inline, static] |
| unsigned WebCore::Font::unitsPerEm |
( |
|
) |
const |
| void WebCore::Font::update |
( |
PassRefPtr< FontSelector > |
|
) |
const |
| FontWeight WebCore::Font::weight |
( |
|
) |
const [inline] |
| int WebCore::Font::width |
( |
const TextRun & |
|
) |
const |
| short WebCore::Font::wordSpacing |
( |
|
) |
const [inline] |
| float WebCore::Font::xHeight |
( |
|
) |
const |
Member Data Documentation
The documentation for this class was generated from the following file: