7#ifndef PDF_ENCODING_COMMON_H
8#define PDF_ENCODING_COMMON_H
24 unsigned char CodeSpaceSize;
41 unsigned GetByteCode(
unsigned char byteIdx)
const;
42 void AppendTo(std::string&
str)
const;
43 void WriteHexTo(std::string&
str,
bool wrap =
true)
const;
47 using PdfCharCodeList = std::vector<PdfCharCode>;
61 explicit PdfCID(
unsigned id);
76 unsigned MetricsId = 0;
93 struct PODOFO_API PdfEncodingLimits
final
106 bool AreValid()
const;
111 bool HaveValidCodeSizeRange()
const;
115 unsigned char MinCodeSize;
116 unsigned char MaxCodeSize;
119 struct PODOFO_API PdfCIDSystemInfo final
136 return code.CodeSpaceSize << 24 | code.Code;
Convenient type for char array storage and/or buffer with std::string compatibility.
Definition basetypes.h:38
SPDX-FileCopyrightText: (C) 2022 Francesco Pretto ceztko@gmail.com SPDX-License-Identifier: LGPL-2....
Definition basetypes.h:16
Represent a CID (Character ID) with full code unit information.
Definition PdfEncodingCommon.h:52
A character code unit.
Definition PdfEncodingCommon.h:20
Represents a bundle of a CID and GID information.
Definition PdfEncodingCommon.h:88
PdfGID Gid
The identifier of the glyph in font program and PDF metrics.
Definition PdfEncodingCommon.h:90
Represents a GID (Glyph ID) with PDF metrics identifier.
Definition PdfEncodingCommon.h:74