|
pdfmm 0.9.20
|
#include <PdfFontMetricsStandard14.h>
Public Member Functions | |
| void | GetBoundingBox (std::vector< double > &bbox) const override |
| double | GetLineSpacing () const override |
| double | GetUnderlineThickness () const override |
| double | GetUnderlinePosition () const override |
| double | GetStrikeOutPosition () const override |
| double | GetStrikeOutThickness () const override |
| double | GetAscent () const override |
| double | GetDescent () const override |
| std::string | GetBaseFontName () const override |
| unsigned | GetWeight () const override |
| double | GetCapHeight () const override |
| double | GetXHeight () const override |
| double | GetStemV () const override |
| double | GetItalicAngle () const override |
| bool | IsSymbol () const override |
| std::string_view | GetFontData () const override |
| bool | IsBold () const override |
| bool | IsItalic () const override |
| bool | FontNameHasBoldItalicInfo () const override |
Public Member Functions inherited from mm::PdfFontMetrics | |
| double | GetGlyphWidth (unsigned gid) const |
| virtual void | SubstituteGIDs (std::vector< unsigned > &gids, std::vector< unsigned char > &backwardMap) const |
| unsigned | GetGID (char32_t codePoint) const |
| virtual void | GetBoundingBox (std::vector< double > &bbox) const =0 |
| virtual double | GetLineSpacing () const =0 |
| virtual double | GetUnderlineThickness () const =0 |
| virtual double | GetUnderlinePosition () const =0 |
| virtual double | GetStrikeOutPosition () const =0 |
| virtual double | GetStrikeOutThickness () const =0 |
| virtual double | GetAscent () const =0 |
| virtual double | GetDescent () const =0 |
| virtual std::string_view | GetFontData () const |
| virtual const PdfObject * | GetFontDataObject () const |
| std::string | GetFontNameSafe (bool baseFirst=false) const |
| virtual std::string | GetBaseFontName () const |
| virtual std::string | GetFontName () const |
| virtual unsigned | GetWeight () const =0 |
| virtual double | GetCapHeight () const =0 |
| virtual double | GetXHeight () const =0 |
| virtual double | GetStemV () const =0 |
| virtual double | GetItalicAngle () const =0 |
| virtual bool | IsBold () const =0 |
| virtual bool | IsItalic () const =0 |
| virtual bool | FontNameHasBoldItalicInfo () const |
| PdfFontMetricsType | GetType () const |
| virtual bool | IsSymbol () const =0 |
Additional Inherited Members | |
Static Public Member Functions inherited from mm::PdfFontMetrics | |
| static PdfFontMetricsType | GetFontMetricsTypeFromFilename (const std::string_view &filename) |
Protected Member Functions inherited from mm::PdfFontMetrics | |
| void | SetType (PdfFontMetricsType eFontType) |
This is the main class to handle the Standard14 metric data.
|
overridevirtual |
State whether font name reports if the font is bold or italic, such has in "Helvetica-Bold"
Reimplemented from mm::PdfFontMetrics.
|
overridevirtual |
Get the ascent of this font in PDF units for the current font size.
Implements mm::PdfFontMetrics.
|
overridevirtual |
Get a base name for the font that can be used to compose the final name, eg. "Arial"
Return empty string by default
Reimplemented from mm::PdfFontMetrics.
|
overridevirtual |
Create the bounding box vector in PDF units
| bbox | write the bounding box to this vector |
Implements mm::PdfFontMetrics.
|
overridevirtual |
The vertical coordinate of the top of flat capital letters, measured from the baseline
Implements mm::PdfFontMetrics.
|
overridevirtual |
Get the descent of this font in PDF units for the current font size. This value is usually negative!
Implements mm::PdfFontMetrics.
|
overridevirtual |
Get the actual font data for a file loaded font, if available
For font data coming from the /FontFile keys, use GetFontDataObject()
Reimplemented from mm::PdfFontMetrics.
|
overridevirtual |
Get the italic angle of this font. Used to build the font dictionay
Implements mm::PdfFontMetrics.
|
overridevirtual |
Retrieve the line spacing for this font
Implements mm::PdfFontMetrics.
|
overridevirtual |
The thickness, measured horizontally, of the dominant vertical stems of glyphs in the font
Implements mm::PdfFontMetrics.
|
overridevirtual |
Return the position of the strikeout for the current font size in PDF units
Implements mm::PdfFontMetrics.
|
overridevirtual |
Get the width of the strikeout for the current font size in PDF units
Implements mm::PdfFontMetrics.
|
overridevirtual |
Return the position of the underline for the current font size in PDF units
Implements mm::PdfFontMetrics.
|
overridevirtual |
Get the width of the underline for the current font size in PDF units
Implements mm::PdfFontMetrics.
|
overridevirtual |
Get the weight of this font. Used to build the font dictionay
Implements mm::PdfFontMetrics.
|
overridevirtual |
The font’s x height: the vertical coordinate of the top of flat nonascending lowercase letters (like the letter x), measured from the baseline, in fonts that have Latin characters
Implements mm::PdfFontMetrics.
|
overridevirtual |
Get whether the font style is bold
Implements mm::PdfFontMetrics.
|
overridevirtual |
Get whether the font style is italic
Implements mm::PdfFontMetrics.
|
overridevirtual |
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.
Implements mm::PdfFontMetrics.