[TFilterGIF] [Index] [TFont]

Class TFont


File: <toad/font.hh>

Represents fonts to be used with TPen.

Super Classes

TOADBase

Attributes

public XFontStruct *fs
public string mask

Methods

Ascent
public int Ascent()
Descent
public int Descent()
GetHeightOfTextFromWidth
public unsigned GetHeightOfTextFromWidth(const string &text, unsigned width)
public unsigned GetHeightOfTextFromWidth(const char* text, unsigned width)
Height
public int Height()
SetFont
public void SetFont(EFamily, EStyle, int)
SetFromGC
public void SetFromGC(GC)
public void SetFromGC(void*)
TFont
public TFont()
public TFont(EFamily, EStyle, int)
public virtual ~TFont()
Creates a new font.

family

  • SANS
  • SANSSERIF
  • SERIF
  • TYPEWRITER

    style

    • PLAIN
    • REGULAR
    • BOLD
    • ITALIC
    • BOLD_ITALIC
    • OBLIQUE
    • BOLD_OBLIQUE
  • TextWidth
    public int TextWidth(const string&)
    public int TextWidth(const char*)
    public int TextWidth(const char*, int len)
    public int TextWidth(const unsigned char *s)
    public int TextWidth(const unsigned char *s, int len)
    build_fontname
    public void build_fontname(EFamily family, EStyle style, int size)
    count_words_and_lines
    public void count_words_and_lines(const char*, unsigned*, unsigned*)
    make_wordlist
    public TWord * make_wordlist(const char*, unsigned)

    This page was generated with Stupid -- Another stupid C++ to HTML generator
    Written 1998,99 by The Wizards of Zilog
    Copyright © 1998,99 by the TOAD Project