PoDoFo
1.0.0-dev
|
This is the main class to handle the Standard14 metric data. More...
#include <PdfFontMetricsStandard14.h>
Inherits PoDoFo::PdfFontMetricsBase.
Public Member Functions | |
unsigned | GetGlyphCount () const override |
bool | TryGetGlyphWidth (unsigned gid, double &width) const override |
bool | HasUnicodeMapping () const override |
Determines if the metrics has a valid Unicode code point to gid map. | |
bool | TryGetGID (char32_t codePoint, unsigned &gid) const override |
Try to retrieve the mapped gid from Unicode code point. More... | |
double | GetDefaultWidthRaw () const override |
double | GetLineSpacing () const override |
Retrieve the line spacing for this font. More... | |
double | GetUnderlineThickness () const override |
Get the width of the underline for the current font size in PDF units. More... | |
double | GetUnderlinePosition () const override |
Return the position of the underline for the current font size in PDF units. More... | |
double | GetStrikeThroughPosition () const override |
Return the position of the strikethrough for the current font size in PDF units. More... | |
double | GetStrikeThroughThickness () const override |
Get the width of the strikethrough for the current font size in PDF units. More... | |
std::string_view | GetFontName () const override |
Get the actual /FontName, eg. More... | |
std::string_view | GetFontFamilyName () const override |
Get the actual /FontFamily, eg. More... | |
PdfFontStretch | GetFontStretch () const override |
int | GetWeightRaw () const override |
PdfFontDescriptorFlags | GetFlags () const override |
void | GetBoundingBox (std::vector< double > &bbox) const override |
Create the bounding box vector in PDF units. More... | |
double | GetItalicAngle () const override |
Get the italic angle of this font. More... | |
double | GetAscent () const override |
Get the ascent of this font in PDF units for the current font size. More... | |
double | GetDescent () const override |
Get the descent of this font in PDF units for the current font size. More... | |
double | GetLeadingRaw () const override |
double | GetCapHeight () const override |
The vertical coordinate of the top of flat capital letters, measured from the baseline. | |
double | GetXHeightRaw () const override |
double | GetStemV () const override |
The thickness, measured horizontally, of the dominant vertical stems of glyphs in the font. | |
double | GetStemHRaw () const override |
double | GetAvgWidthRaw () const override |
double | GetMaxWidthRaw () const override |
PdfFontFileType | GetFontFileType () const override |
bool | IsStandard14FontMetrics (PdfStandard14FontType &std14Font) const override |
unsigned | GetFontFileLength1 () const override |
Get /Length1 value for the font file, if available. | |
unsigned | GetFontFileLength2 () const override |
Get /Length2 value for the font file, if available. | |
unsigned | GetFontFileLength3 () const override |
Get /Length3 value for the font file, if available. | |
const Standard14FontData & | GetRawData () const |
Static Public Member Functions | |
static std::unique_ptr< const PdfFontMetricsStandard14 > | Create (PdfStandard14FontType fontType) |
Create a Standard14 font metrics. More... | |
static std::unique_ptr< const PdfFontMetricsStandard14 > | Create (PdfStandard14FontType fontType, const PdfObject &fontObj) |
static std::shared_ptr< const PdfFontMetricsStandard14 > | GetInstance (PdfStandard14FontType std14Font) |
Protected Member Functions | |
std::string_view | GetBaseFontName () const override |
Get a semantical base name for the font that can be used to compose the final name, eg. More... | |
bool | getIsItalicHint () const override |
bool | getIsBoldHint () const override |
datahandle | getFontFileDataHandle () const override |
This is the main class to handle the Standard14 metric data.
|
static |
Create a Standard14 font metrics.
fontObj | optionally try to read a /Widths entry from the supplied |
|
overridevirtual |
Get the ascent of this font in PDF units for the current font size.
Implements PoDoFo::PdfFontMetrics.
|
overrideprotectedvirtual |
Get a semantical base name for the font that can be used to compose the final name, eg.
from "AAAAAA+Arial,Bold" to "Arial"
Implements PoDoFo::PdfFontMetrics.
|
overridevirtual |
Create the bounding box vector in PDF units.
bbox | write the bounding box to this vector |
Implements PoDoFo::PdfFontMetrics.
|
overridevirtual |
Get the descent of this font in PDF units for the current font size.
This value is usually negative!
Implements PoDoFo::PdfFontMetrics.
|
overridevirtual |
|
overridevirtual |
Get the actual /FontName, eg.
"AAAAAA+Arial,Bold", if available
By default returns empty string
Implements PoDoFo::PdfFontMetrics.
|
overridevirtual |
Get the italic angle of this font.
Used to build the font dictionary
Implements PoDoFo::PdfFontMetrics.
|
overridevirtual |
Retrieve the line spacing for this font.
Implements PoDoFo::PdfFontMetrics.
|
overridevirtual |
Return the position of the strikethrough for the current font size in PDF units.
Implements PoDoFo::PdfFontMetrics.
|
overridevirtual |
Get the width of the strikethrough for the current font size in PDF units.
Implements PoDoFo::PdfFontMetrics.
|
overridevirtual |
Return the position of the underline for the current font size in PDF units.
Implements PoDoFo::PdfFontMetrics.
|
overridevirtual |
Get the width of the underline for the current font size in PDF units.
Implements PoDoFo::PdfFontMetrics.
|
overridevirtual |
Try to retrieve the mapped gid from Unicode code point.
Implements PoDoFo::PdfFontMetrics.