• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KHTML

WebCore::Font

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

enum WebCore::Font::CodePath

Enumerator:
Auto 
Simple 
Complex 

Definition at line 258 of file Font.h.


Constructor & Destructor Documentation

WebCore::Font::Font (  ) 

WebCore::Font::Font ( const FontDescription &  ,
short  letterSpacing,
short  wordSpacing 
)

WebCore::Font::Font ( const FontPlatformData &  ,
bool  isPrinting 
)

WebCore::Font::~Font (  ) 

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


Member Function Documentation

int WebCore::Font::ascent (  )  const

int WebCore::Font::descent (  )  const

void WebCore::Font::drawText ( GraphicsContext *  ,
const TextRun &  ,
const FloatPoint &  ,
int  from = 0,
int  to = -1 
) const

const FontFamily& WebCore::Font::family (  )  const [inline]

Definition at line 196 of file Font.h.

FontFamily& WebCore::Font::firstFamily (  )  [inline]

Definition at line 195 of file Font.h.

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

const FontDescription& WebCore::Font::fontDescription (  )  const [inline]

Definition at line 163 of file Font.h.

FontSelector* WebCore::Font::fontSelector (  )  const

const GlyphData& WebCore::Font::glyphDataForCharacter ( UChar32  ,
bool  mirror,
bool  forceSmallCaps = false 
) const

int WebCore::Font::height (  )  const [inline]

Definition at line 213 of file Font.h.

bool WebCore::Font::isFixedPitch (  )  const

bool WebCore::Font::isPlatformFont (  )  const [inline]

Definition at line 202 of file Font.h.

bool WebCore::Font::isPrinterFont (  )  const [inline]

Definition at line 191 of file Font.h.

static bool WebCore::Font::isRoundingHackCharacter ( UChar32  c  )  [inline, static]

Definition at line 263 of file Font.h.

bool WebCore::Font::isSmallCaps (  )  const [inline]

Definition at line 179 of file Font.h.

bool WebCore::Font::italic (  )  const [inline]

Definition at line 198 of file Font.h.

short WebCore::Font::letterSpacing (  )  const [inline]

Definition at line 182 of file Font.h.

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]

Definition at line 159 of file Font.h.

Font& WebCore::Font::operator= ( const Font &   ) 

bool WebCore::Font::operator== ( const Font &  other  )  const

int WebCore::Font::pixelSize (  )  const [inline]

Definition at line 165 of file Font.h.

const SimpleFontData* WebCore::Font::primaryFont (  )  const [inline]

Definition at line 221 of file Font.h.

FontRenderingMode WebCore::Font::renderingMode (  )  const [inline]

Definition at line 193 of file Font.h.

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]

Definition at line 185 of file Font.h.

void WebCore::Font::setWordSpacing ( short  s  )  [inline]

Definition at line 184 of file Font.h.

float WebCore::Font::size (  )  const [inline]

Definition at line 166 of file Font.h.

int WebCore::Font::spaceWidth (  )  const

int WebCore::Font::tabWidth (  )  const [inline]

Definition at line 218 of file Font.h.

static bool WebCore::Font::treatAsSpace ( UChar  c  )  [inline, static]

Definition at line 270 of file Font.h.

static bool WebCore::Font::treatAsZeroWidthSpace ( UChar  c  )  [inline, static]

Definition at line 271 of file Font.h.

unsigned WebCore::Font::unitsPerEm (  )  const

void WebCore::Font::update ( PassRefPtr< FontSelector >   )  const

FontWeight WebCore::Font::weight (  )  const [inline]

Definition at line 199 of file Font.h.

int WebCore::Font::width ( const TextRun &   )  const

short WebCore::Font::wordSpacing (  )  const [inline]

Definition at line 181 of file Font.h.

float WebCore::Font::xHeight (  )  const


Member Data Documentation

CodePath WebCore::Font::codePath [static]

Definition at line 260 of file Font.h.

const uint8_t WebCore::Font::gRoundingHackCharacterTable[256] [static]

Definition at line 262 of file Font.h.


The documentation for this class was generated from the following file:
  • Font.h

KHTML

Skip menu "KHTML"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal