#include <PdfFontMetrics.h>
Public Member Functions | |
virtual void | GetWidthArray (PdfVariant &var, unsigned int nFirst, unsigned int nLast) const =0 |
virtual double | GetGlyphWidth (int nGlyphId) const =0 |
virtual double | GetGlyphWidth (const char *pszGlyphname) const =0 |
virtual void | GetBoundingBox (PdfArray &array) const =0 |
double | StringWidth (const PdfString &rsString) const |
double | StringWidth (const char *pszText, pdf_long nLength=0) const |
double | StringWidth (const pdf_utf16be *pszText, unsigned int nLength=0) const |
double | StringWidth (const wchar_t *pszText, unsigned int nLength=0) const |
unsigned long | StringWidthMM (const char *pszText, unsigned int nLength=0) const |
unsigned long | StringWidthMM (const pdf_utf16be *pszText, unsigned int nLength=0) const |
unsigned long | StringWidthMM (const wchar_t *pszText, unsigned int nLength=0) const |
virtual double | CharWidth (unsigned char c) const =0 |
virtual double | UnicodeCharWidth (unsigned short c) const =0 |
unsigned long | CharWidthMM (unsigned char c) const |
virtual double | GetLineSpacing () const =0 |
unsigned long | GetLineSpacingMM () const |
virtual double | GetUnderlineThickness () const =0 |
unsigned long | GetUnderlineThicknessMM () const |
virtual double | GetUnderlinePosition () const =0 |
long | GetUnderlinePositionMM () const |
virtual double | GetStrikeOutPosition () const =0 |
unsigned long | GetStrikeOutPositionMM () const |
virtual double | GetStrikeoutThickness () const =0 |
unsigned long | GetStrikeoutThicknessMM () const |
const char * | GetFilename () const |
virtual const char * | GetFontData () const =0 |
virtual pdf_long | GetFontDataLen () const =0 |
virtual const char * | GetFontname () const =0 |
const char * | GetSubsetFontnamePrefix () const |
virtual unsigned int | GetWeight () const =0 |
virtual double | GetAscent () const =0 |
virtual double | GetPdfAscent () const =0 |
virtual double | GetDescent () const =0 |
virtual double | GetPdfDescent () const =0 |
virtual int | GetItalicAngle () const =0 |
void | SetFontSize (float fSize) |
float | GetFontSize () const |
void | SetFontScale (float fScale) |
float | GetFontScale () const |
void | SetFontCharSpace (float fCharSpace) |
float | GetFontCharSpace () const |
EPdfFontType | GetFontType () const |
virtual long | GetGlyphId (long lUnicode) const =0 |
virtual bool | IsSymbol () const =0 |
Static Public Member Functions | |
EPdfFontType | FontTypeFromFilename (const char *pszFilename) |
Protected Member Functions | |
void | SetFontType (EPdfFontType eFontType) |
|
Retrieve the width of the given character in PDF units in the current font
|
|
Retrieve the width of the given character in 1/1000th mm in the current font
|
|
Try to detect the internal fonttype from the file extension of a fontfile.
|
|
Get the ascent of this font in PDF units for the current font size.
|
|
Create the bounding box array as required by the PDF reference so that it can be written directly to a PDF file.
|
|
Get the descent of this font in PDF units for the current font size. This value is usually negative!
|
|
Get a pointer to the path of the font file.
|
|
Retrieve the current character spacing of this metrics object
|
|
Get a pointer to the actual font data - if it was loaded from memory.
|
|
Get the length of the actual font data - if it was loaded from memory.
|
|
Get a string with the postscript name of the font.
|
|
Retrieve the current horizontal scaling of this metrics object
|
|
Retrieve the current font size of this metrics object
|
|
|
|
Get the glyph id for a unicode character in the current font.
|
|
Get the width of a single named glyph
|
|
Get the width of a single glyph id
|
|
Get the italic angle of this font. Used to build the font dictionay
|
|
Retrieve the line spacing for this font
|
|
Retrieve the line spacing for this font
|
|
Get the ascent of this font Used to build the font dictionay
|
|
Get the descent of this font Used to build the font dictionay
|
|
Return the position of the strikeout for the current font size in PDF units
|
|
Return the position of the strikeout for the current font size in 1/1000th mm
|
|
Get the width of the strikeout for the current font size in PDF units
|
|
Get the width of the strikeout for the current font size in 1/1000th mm
|
|
|
|
Return the position of the underline for the current font size in PDF units
|
|
Return the position of the underline for the current font size in 1/1000th mm
|
|
Get the width of the underline for the current font size in PDF units
|
|
Get the width of the underline for the current font size in 1/1000th mm
|
|
Get the weight of this font. Used to build the font dictionay
|
|
Create a width array for this font which is a required part of every font dictionary.
|
|
Symbol fonts do need special treatment in a few cases. Use this method to check if the current font is a symbol font. Symbold fonts are detected by checking if they use FT_ENCODING_MS_SYMBOL as internal encoding.
|
|
Set the character spacing of this metrics object
|
|
Set the horizontal scaling of the font for compressing (< 100) and expanding (>100) This is typically called from PdfFont for you.
|
|
Set the font size of this metrics object for width and height calculations. This is typically called from PdfFont for you.
|
|
Set the fonttype.
|
|
Retrieve the width of a given text string in PDF units when drawn with the current font
|
|
Retrieve the width of a given text string in PDF units when drawn with the current font
|
|
Retrieve the width of a given text string in PDF units when drawn with the current font
|
|
Retrieve the width of a given text string in PDF units when drawn with the current font
|
|
Retrieve the width of a given text string in 1/1000th mm when drawn with the current font
|
|
Retrieve the width of a given text string in 1/1000th mm when drawn with the current font
|
|
Retrieve the width of a given text string in 1/1000th mm when drawn with the current font
|
|
Retrieve the width of the given character in PDF units in the current font
|