|
pdfmm 0.9.20
|
#include <PdfFontTrueType.h>
Protected Member Functions | |
| void | embedFontFile (PdfObject &descriptor) override |
| void | initImported () override |
Protected Member Functions inherited from mm::PdfFontSimple | |
| PdfFontSimple (PdfDocument &doc, const PdfFontMetricsConstPtr &metrics, const PdfEncoding &encoding) | |
| virtual void | embedFontFile (PdfObject &descriptor)=0 |
Protected Member Functions inherited from mm::PdfFont | |
| PdfFont (PdfDocument &doc, const PdfFontMetricsConstPtr &metrics, const PdfEncoding &encoding) | |
| virtual bool | TryMapCIDToGID (unsigned cid, unsigned &gid) const |
| virtual bool | TryMapGIDToCID (unsigned gid, unsigned &cid) const |
| double | GetCIDWidthRaw (unsigned cid) const |
| void | FillDescriptor (PdfDictionary &dict) const |
| virtual void | initImported () |
Additional Inherited Members | |
Public Member Functions inherited from mm::PdfFont | |
| void | WriteStringToStream (PdfStream &stream, const std::string_view &str) const |
| void | WriteStringToStream (std::ostream &stream, const std::string_view &str) const |
| double | GetStringWidth (const std::string_view &view, const PdfTextState &state) const |
| bool | TryGetStringWidth (const std::string_view &view, const PdfTextState &state, double &width) const |
| double | GetStringWidth (const PdfString &encodedStr, const PdfTextState &state) const |
| bool | TryGetStringWidth (const PdfString &encodedStr, const PdfTextState &state, double &width) const |
| double | GetCharWidth (char32_t codePoint, const PdfTextState &state, bool ignoreCharSpacing=false) const |
| double | GetLineSpacing (const PdfTextState &state) const |
| double | GetUnderlineThickness (const PdfTextState &state) const |
| double | GetUnderlinePosition (const PdfTextState &state) const |
| double | GetStrikeOutPosition (const PdfTextState &state) const |
| double | GetStrikeOutThickness (const PdfTextState &state) const |
| double | GetAscent (const PdfTextState &state) const |
| double | GetDescent (const PdfTextState &state) const |
| bool | IsLoaded () const |
| bool | IsSubsettingEnabled () const |
| const std::string & | GetSubsetPrefix () const |
| const PdfName & | GetIdentifier () const |
| const PdfEncoding & | GetEncoding () const |
| const PdfFontMetrics & | GetMetrics () const |
| const std::string & | GetName () const |
Static Public Member Functions inherited from mm::PdfFont | |
| static std::unique_ptr< PdfFont > | Create (PdfDocument &doc, const PdfFontMetricsConstPtr &metrics, const PdfEncoding &encoding, PdfFontInitOptions flags) |
| static std::unique_ptr< PdfFont > | CreateStandard14 (PdfDocument &doc, PdfStandard14FontType baseFont, const PdfEncoding &encoding, PdfFontInitOptions flags) |
| static bool | TryCreateFromObject (PdfObject &obj, std::unique_ptr< PdfFont > &font) |
| static std::string | ExtractBaseName (const std::string_view &fontName, bool &isBold, bool &isItalic) |
| static std::string | ExtractBaseName (const std::string_view &fontName) |
A PdfFont implementation that can be used to embedd truetype fonts into a PDF file or to draw with truetype fonts.
TrueType fonts are always embedded as suggested in the PDF reference.
|
overrideprotectedvirtual |
Embed the font file directly into the PDF file.
| pDescriptor | font descriptor object |
Implements mm::PdfFontSimple.
|
overrideprotectedvirtual |
Inititialization tasks for imported/created from scratch fonts
Reimplemented from mm::PdfFont.