|
PdfFontType | GetType () const override |
|
bool | SupportsSubsetting () const override |
|
bool | TryCreateSubstituteFont (PdfFont *&substFont) const |
| Try get a replacement font based on this font characteristics. More...
|
|
bool | TryCreateSubstituteFont (PdfFontCreateFlags initFlags, PdfFont *&substFont) const |
|
void | WriteStringToStream (OutputStream &stream, const std::string_view &str) const |
| Write a string to a PdfObjectStream in a format so that it can be used with this font. More...
|
|
unsigned | GetGID (char32_t codePoint, PdfGlyphAccess access) const |
| Get the GID by the codePoint. More...
|
|
bool | TryGetGID (char32_t codePoint, PdfGlyphAccess access, unsigned &gid) const |
|
double | GetStringLength (const std::string_view &str, const PdfTextState &state) const |
| Retrieve the width of a given text string in PDF units when drawn with the current font. More...
|
|
bool | TryGetStringLength (const std::string_view &str, const PdfTextState &state, double &width) const |
|
double | GetEncodedStringLength (const PdfString &encodedStr, const PdfTextState &state) const |
| Retrieve the width of a given encoded PdfString in PDF units when drawn with the current font. More...
|
|
bool | TryGetEncodedStringLength (const PdfString &encodedStr, const PdfTextState &state, double &length) const |
|
bool | TryScanEncodedString (const PdfString &encodedStr, const PdfTextState &state, std::string &utf8str, std::vector< double > &lengths, std::vector< unsigned > &positions) const |
| Scan string decoding unicode codepoints and obtaining glyphs lengths. More...
|
|
double | GetWordSpacingLength (const PdfTextState &state) const |
|
double | GetSpaceCharLength (const PdfTextState &state) const |
|
double | GetCharLength (char32_t codePoint, const PdfTextState &state, bool ignoreCharSpacing=false) const |
|
bool | TryGetCharLength (char32_t codePoint, const PdfTextState &state, bool ignoreCharSpacing, double &width) const |
|
bool | TryGetCharLength (char32_t codePoint, const PdfTextState &state, double &width) const |
|
double | GetDefaultCharLength (const PdfTextState &state, bool ignoreCharSpacing=false) const |
|
void | AddSubsetGIDs (const PdfString &encodedStr) |
| Split the given string by white spaces. More...
|
|
double | GetLineSpacing (const PdfTextState &state) const |
| Retrieve the line spacing for this font. More...
|
|
double | GetUnderlineThickness (const PdfTextState &state) const |
| Get the width of the underline for the current font size in PDF units. More...
|
|
double | GetUnderlinePosition (const PdfTextState &state) const |
| Return the position of the underline for the current font size in PDF units. More...
|
|
double | GetStrikeThroughPosition (const PdfTextState &state) const |
| Return the position of the strikethrough for the current font size in PDF units. More...
|
|
double | GetStrikeThroughThickness (const PdfTextState &state) const |
| Get the width of the strikethrough for the current font size in PDF units. More...
|
|
double | GetAscent (const PdfTextState &state) const |
| Get the ascent of this font in PDF units for the current font size. More...
|
|
double | GetDescent (const PdfTextState &state) const |
| Get the descent of this font in PDF units for the current font size. More...
|
|
bool | IsStandard14Font () const |
|
bool | IsStandard14Font (PdfStandard14FontType &std14Font) const |
|
bool | IsCIDKeyed () const |
| True if the font is CID keyed.
|
|
virtual bool | IsObjectLoaded () const |
| True if the font is loaded from a PdfObject.
|
|
bool | IsSubsettingEnabled () const |
| Check if this is a subsetting font. More...
|
|
bool | IsEmbeddingEnabled () const |
|
const std::string & | GetSubsetPrefix () const |
|
const PdfEncoding & | GetEncoding () const |
| Returns a reference to the fonts encoding. More...
|
|
const PdfFontMetrics & | GetMetrics () const |
| Returns a handle to the fontmetrics object of this font. More...
|
|
const std::string & | GetName () const |
| Get the base font name of this font. More...
|
|
const UsedGIDsMap & | GetUsedGIDs () const |
|
PdfObject & | GetDescendantFontObject () |
|
|
void | embedFontSubset () override |
|
void | embedFont () override |
|
PdfObject * | getDescendantFontObject () override |
|
void | createWidths (PdfDictionary &fontDict, const CIDToGIDMap &glyphWidths) |
|
void | initImported () override |
| Initialization tasks for imported/created from scratch fonts.
|
|
PdfObject & | GetDescendantFont () |
|
PdfObject & | GetDescriptor () |
|
void | EmbedFontFile (PdfObject &descriptor) |
|
void | EmbedFontFileType1 (PdfObject &descriptor, const bufferview &data, unsigned length1, unsigned length2, unsigned length3) |
|
void | EmbedFontFileCFF (PdfObject &descriptor, const bufferview &data) |
|
void | EmbedFontFileTrueType (PdfObject &descriptor, const bufferview &data) |
|
void | EmbedFontFileOpenType (PdfObject &descriptor, const bufferview &data) |
|
virtual bool | tryMapCIDToGID (unsigned cid, unsigned &gid) const |
|
double | GetCIDLengthRaw (unsigned cid) const |
| Get the raw width of a CID identifier.
|
|
void | GetBoundingBox (PdfArray &arr) const |
|
void | FillDescriptor (PdfDictionary &dict) const |
| Fill the /FontDescriptor object dictionary.
|
|
A PdfFont that represents a CID-keyed font that has a TrueType/OpenType font backend (aka "CIDFontType2")