#include <BTFont.h>
Public Types | |
| enum | CodePath { Auto, Simple, Complex } |
Public Member Functions | |
| BTFont () | |
| BTFont (const FontDescription &, short letterSpacing, short wordSpacing) | |
| BTFont (const FontPlatformData &, bool isPrinting) | |
| ~BTFont () | |
| BTFont (const BTFont &) | |
| BTFont & | operator= (const BTFont &) |
| bool | operator== (const BTFont &other) const |
| bool | operator!= (const BTFont &other) const |
| const FontDescription & | fontDescription () const |
| int | pixelSize () const |
| float | size () const |
| void | update (PassRefPtr< FontSelector >) const |
| void | drawText (GraphicsContext *, const TextRun &, const TextStyle &, const FloatPoint &, int from=0, int to=-1) const |
| int | width (const TextRun &, const TextStyle &) const |
| int | width (const TextRun &) const |
| float | floatWidth (const TextRun &, const TextStyle &) const |
| float | floatWidth (const TextRun &) const |
| int | offsetForPosition (const TextRun &, const TextStyle &, int position, bool includePartialGlyphs) const |
| FloatRect | selectionRectForText (const TextRun &, const TextStyle &, const IntPoint &, int h, int from=0, int to=-1) const |
| bool | isSmallCaps () const |
| short | wordSpacing () const |
| short | letterSpacing () const |
| void | setWordSpacing (short s) |
| void | setLetterSpacing (short s) |
| bool | isFixedPitch () const |
| bool | isPrinterFont () const |
| FontFamily & | firstFamily () |
| const FontFamily & | family () const |
| bool | italic () const |
| unsigned | weight () const |
| bool | bold () const |
| bool | isPlatformFont () const |
| int | ascent () const |
| int | descent () const |
| int | height () const |
| int | lineSpacing () const |
| float | xHeight () const |
| unsigned | unitsPerEm () const |
| int | spaceWidth () const |
| int | tabWidth () const |
| const FontData * | primaryFont () const |
| const FontData * | fontDataAt (unsigned) const |
| const GlyphData & | glyphDataForCharacter (UChar32, bool mirror) const |
| const FontData * | fontDataForCharacters (const UChar *, int length) const |
Static Public Member Functions | |
| static void | setCodePath (CodePath) |
| static bool | isRoundingHackCharacter (UChar32 c) |
| static bool | treatAsSpace (UChar c) |
| static bool | treatAsZeroWidthSpace (UChar c) |
Static Public Attributes | |
| static CodePath | codePath |
| static const uint8_t | gRoundingHackCharacterTable [256] |
Friends | |
| struct | WidthIterator |
| WebCore::BTFont::BTFont | ( | ) |
| WebCore::BTFont::BTFont | ( | const FontDescription & | , | |
| short | letterSpacing, | |||
| short | wordSpacing | |||
| ) |
| WebCore::BTFont::BTFont | ( | const FontPlatformData & | , | |
| bool | isPrinting | |||
| ) |
| WebCore::BTFont::~BTFont | ( | ) |
| WebCore::BTFont::BTFont | ( | const BTFont & | ) |
| bool WebCore::BTFont::operator== | ( | const BTFont & | other | ) | const |
| bool WebCore::BTFont::operator!= | ( | const BTFont & | other | ) | const [inline] |
| const FontDescription& WebCore::BTFont::fontDescription | ( | ) | const [inline] |
| int WebCore::BTFont::pixelSize | ( | ) | const [inline] |
| float WebCore::BTFont::size | ( | ) | const [inline] |
| void WebCore::BTFont::update | ( | PassRefPtr< FontSelector > | ) | const |
| void WebCore::BTFont::drawText | ( | GraphicsContext * | , | |
| const TextRun & | , | |||
| const TextStyle & | , | |||
| const FloatPoint & | , | |||
| int | from = 0, |
|||
| int | to = -1 | |||
| ) | const |
| float WebCore::BTFont::floatWidth | ( | const TextRun & | ) | const |
| int WebCore::BTFont::offsetForPosition | ( | const TextRun & | , | |
| const TextStyle & | , | |||
| int | position, | |||
| bool | includePartialGlyphs | |||
| ) | const |
| FloatRect WebCore::BTFont::selectionRectForText | ( | const TextRun & | , | |
| const TextStyle & | , | |||
| const IntPoint & | , | |||
| int | h, | |||
| int | from = 0, |
|||
| int | to = -1 | |||
| ) | const |
| bool WebCore::BTFont::isSmallCaps | ( | ) | const [inline] |
| short WebCore::BTFont::wordSpacing | ( | ) | const [inline] |
| short WebCore::BTFont::letterSpacing | ( | ) | const [inline] |
| void WebCore::BTFont::setWordSpacing | ( | short | s | ) | [inline] |
| void WebCore::BTFont::setLetterSpacing | ( | short | s | ) | [inline] |
| bool WebCore::BTFont::isFixedPitch | ( | ) | const |
| bool WebCore::BTFont::isPrinterFont | ( | ) | const [inline] |
| FontFamily& WebCore::BTFont::firstFamily | ( | ) | [inline] |
| const FontFamily& WebCore::BTFont::family | ( | ) | const [inline] |
| bool WebCore::BTFont::italic | ( | ) | const [inline] |
| unsigned WebCore::BTFont::weight | ( | ) | const [inline] |
| bool WebCore::BTFont::bold | ( | ) | const [inline] |
| bool WebCore::BTFont::isPlatformFont | ( | ) | const [inline] |
| int WebCore::BTFont::ascent | ( | ) | const |
| int WebCore::BTFont::descent | ( | ) | const |
| int WebCore::BTFont::height | ( | ) | const [inline] |
| int WebCore::BTFont::lineSpacing | ( | ) | const |
| float WebCore::BTFont::xHeight | ( | ) | const |
| unsigned WebCore::BTFont::unitsPerEm | ( | ) | const |
| int WebCore::BTFont::spaceWidth | ( | ) | const |
| int WebCore::BTFont::tabWidth | ( | ) | const [inline] |
| const FontData* WebCore::BTFont::primaryFont | ( | ) | const |
| const FontData* WebCore::BTFont::fontDataAt | ( | unsigned | ) | const |
| static void WebCore::BTFont::setCodePath | ( | CodePath | ) | [static] |
| static bool WebCore::BTFont::isRoundingHackCharacter | ( | UChar32 | c | ) | [inline, static] |
| static bool WebCore::BTFont::treatAsSpace | ( | UChar | c | ) | [inline, static] |
| static bool WebCore::BTFont::treatAsZeroWidthSpace | ( | UChar | c | ) | [inline, static] |
friend struct WidthIterator [friend] |
CodePath WebCore::BTFont::codePath [static] |
const uint8_t WebCore::BTFont::gRoundingHackCharacterTable[256] [static] |