Scribus
Open source desktop publishing at your fingertips
gtFont Class Reference

Public Types

enum  wasSetFlags {
  familyWasSet = 1, weightWasSet = 2, slantWasSet = 4, widthWasSet = 8,
  sizeWasSet = 16, effectWasSet = 32, fillColorWasSet = 64, fillShadeWasSet = 128,
  strokeColorWasSet = 256, strokeShadeWasSet = 512, hscaleWasSet = 1024, kerningWasSet = 2048
}
 

Public Member Functions

void noEffects ()
 
bool isToggled (FontEffect fe)
 
bool toggleEffect (FontEffect fe)
 
int getFlags ()
 
int getEffectsValue ()
 
void setName (QString newName)
 
void setFamily (QString newFamily)
 
QString getFamily ()
 
void setWeight (FontWeight newWeight)
 
void setWeight (QString newWeight)
 
QString getWeight ()
 
void setSlant (FontSlant newSlant)
 
void setSlant (QString newSlant)
 
QString getSlant ()
 
void setWidth (FontWidth newWidth)
 
void setWidth (QString newWidth)
 
QString getWidth ()
 
void setSize (int newSize)
 
void setSize (double newSize)
 
void setColor (QString newColor)
 
void setShade (int newShade)
 
void setStrokeColor (QString newColor)
 
void setStrokeShade (int newShade)
 
QString getName ()
 
QString getName (uint i)
 
int getSize ()
 
QString getColor ()
 
int getShade ()
 
QString getStrokeColor ()
 
int getStrokeShade ()
 
int getHscale ()
 
void setHscale (int newHscale)
 
int getKerning ()
 
void setKerning (int newKerning)
 
 gtFont (const gtFont &f)
 

Static Public Attributes

static const QString fontWeights []
 
static const QString fontSlants []
 
static const QString fontWidths []
 
static const int NAMECOUNT = 14
 

Member Data Documentation

const QString gtFont::fontSlants
static
Initial value:
=
{
"",
"Italic",
"Oblique"
}
const QString gtFont::fontWeights
static
Initial value:
=
{
"",
"Demi Bold",
"Extra Black",
"Extra Bold",
"Extra Heavy",
"Extra Light",
"Semi Bold",
"Black",
"Bold",
"Book",
"Demi",
"Heavy",
"Light",
"Lite",
"Medium",
"Regular",
"Roman"
}
const QString gtFont::fontWidths
static
Initial value:
=
{
"",
"Extra Condensed",
"Semi Condensed",
"Ultra Condensed",
"Extra Compressed",
"Semi Compressed",
"Ultra Compressed",
"Condensed",
"Compressed"
}

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