7#ifndef CORE_FXGE_DIB_FX_DIB_H_
8#define CORE_FXGE_DIB_FX_DIB_H_
30using FX_ARGB = uint32_t;
31using FX_CMYK = uint32_t;
34using FX_COLORREF = uint32_t;
69constexpr uint32_t
FXSYS_BGR(uint8_t b, uint8_t g, uint8_t r) {
70 return (b << 16) | (g << 8) | r;
78 return (bgr >> 8) & 0xff;
82 return (bgr >> 16) & 0xff;
86 return static_cast<
unsigned int>(alpha * 255.f + 0.5f);
91 return static_cast<uint16_t>(format) & 0xff;
96 return (
static_cast<uint16_t>(format) & 0xff) / 8;
100 return !!(
static_cast<uint16_t>(format) & 0x100);
105constexpr FX_CMYK
CmykEncode(uint32_t c, uint32_t m, uint32_t y, uint32_t k) {
106 return (c << 24) | (m << 16) | (y << 8) | k;
118constexpr FX_ARGB
ArgbEncode(uint32_t a, uint32_t r, uint32_t g, uint32_t b) {
119 return (a << 24) | (r << 16) | (g << 8) | b;
124#define FXARGB_A(argb) ((uint8_t)((argb) >> 24
))
125#define FXARGB_R(argb) ((uint8_t)((argb) >> 16
))
126#define FXARGB_G(argb) ((uint8_t)((argb) >> 8
))
127#define FXARGB_B(argb) ((uint8_t)(argb))
128#define FXARGB_MUL_ALPHA(argb, alpha)
129 (((((argb) >> 24
) * (alpha) / 255
) << 24
) | ((argb)&0xffffff
))
131#define FXRGB2GRAY(r, g, b) (((b)*11
+ (g)*59
+ (r)*30
) / 100
)
132#define FXDIB_ALPHA_MERGE(backdrop, source, source_alpha)
133 (((backdrop) * (255
- (source_alpha)) + (source) * (source_alpha)) / 255
)
134#define FXARGB_GETDIB(p)
135 ((((uint8_t*)(p))[0
]) | (((uint8_t*)(p))[1
] << 8
) |
136 (((uint8_t*)(p))[2
] << 16
) | (((uint8_t*)(p))[3
] << 24
))
137#define FXARGB_SETDIB(p, argb)
138 ((uint8_t*)(p))[0
] = (uint8_t)(argb),
139 ((uint8_t*)(p))[1
] = (uint8_t)((argb) >> 8
),
140 ((uint8_t*)(p))[2
] = (uint8_t)((argb) >> 16
),
141 ((uint8_t*)(p))[3
] = (uint8_t)((argb) >> 24
)
142#define FXARGB_SETRGBORDERDIB(p, argb)
143 ((uint8_t*)(p))[3
] = (uint8_t)(argb >> 24
),
144 ((uint8_t*)(p))[0
] = (uint8_t)((argb) >> 16
),
145 ((uint8_t*)(p))[1
] = (uint8_t)((argb) >> 8
),
146 ((uint8_t*)(p))[2
] = (uint8_t)(argb)
147#define FXCMYK_TODIB(cmyk)
148 ((uint8_t)((cmyk) >> 24
) | ((uint8_t)((cmyk) >> 16
)) << 8
|
149 ((uint8_t)((cmyk) >> 8
)) << 16
| ((uint8_t)(cmyk) << 24
))
150#define FXARGB_TOBGRORDERDIB(argb)
151 ((uint8_t)(argb >> 16
) | ((uint8_t)(argb >> 8
)) << 8
|
152 ((uint8_t)(argb)) << 16
| ((uint8_t)(argb >> 24
) << 24
))
ByteString GetStyleName() const
absl::optional< std::array< uint8_t, 2 > > GetOs2Panose()
size_t GetCharMapCount() const
int GetCharMapEncodingIdByIndex(size_t index) const
bool IsFixedWidth() const
bool SelectCharMap(fxge::FontEncoding encoding)
bool HasGlyphNames() const
absl::optional< std::array< uint32_t, 2 > > GetOs2CodePageRange()
int16_t GetAscender() const
std::unique_ptr< CFX_Path > LoadGlyphPath(uint32_t glyph_index, int dest_width, bool is_vertical, const CFX_SubstFont *subst_font)
fxge::FontEncoding GetCharMapEncodingByIndex(size_t index) const
int GetGlyphWidth(uint32_t glyph_index, int dest_width, int weight, const CFX_SubstFont *subst_font)
int GetAdjustedDescender() const
std::unique_ptr< CFX_GlyphBitmap > RenderGlyph(const CFX_Font *pFont, uint32_t glyph_index, bool bFontStyle, const CFX_Matrix &matrix, int dest_width, int anti_alias)
int GetGlyphCount() const
void SetCharMap(CharMap map)
absl::optional< std::array< uint32_t, 4 > > GetOs2UnicodeRange()
static RetainPtr< CFX_Face > New(FT_Library library, RetainPtr< Retainable > pDesc, pdfium::span< const FT_Byte > data, FT_Long face_index)
int16_t GetDescender() const
void SetCharMapByIndex(size_t index)
pdfium::span< uint8_t > GetData() const
int GetCharMapPlatformIdByIndex(size_t index) const
static RetainPtr< CFX_Face > Open(FT_Library library, const FT_Open_Args *args, FT_Long face_index)
int GetNameIndex(const char *name)
const FXFT_FaceRec * GetRec() const
CharMap GetCurrentCharMap() const
absl::optional< fxge::FontEncoding > GetCurrentCharMapEncoding() const
int GetCharIndex(uint32_t code)
std::vector< CharCodeAndIndex > GetCharCodesAndIndices(char32_t max_char)
int GetAdjustedAscender() const
ByteString GetFamilyName() const
uint16_t GetUnitsPerEm() const
size_t GetSfntTable(uint32_t table, pdfium::span< uint8_t > buffer)
static absl::optional< StandardFont > GetStandardFontName(ByteString *name)
void AddInstalledFont(const ByteString &name, FX_Charset charset)
void SetSystemFontInfo(std::unique_ptr< SystemFontInfoIface > pFontInfo)
bool HasLocalizedFont(ByteStringView name) const
static constexpr uint32_t MakeTag(char c1, char c2, char c3, char c4)
static bool IsFixedFont(StandardFont font)
static constexpr int kNumStandardFonts
bool HasInstalledFont(ByteStringView name) const
CFX_FontMapper(CFX_FontMgr *mgr)
void LoadInstalledFonts()
size_t GetFaceSize() const
static bool IsStandardFontName(const ByteString &name)
ByteString GetFaceName(size_t index) const
static bool IsSymbolicFont(StandardFont font)
RetainPtr< CFX_Face > FindSubstFont(const ByteString &face_name, bool is_truetype, uint32_t flags, int weight, int italic_angle, FX_CodePage code_page, CFX_SubstFont *subst_font)
std::unique_ptr< SystemFontInfoIface > TakeSystemFontInfo()
static ByteString GetDefaultFontNameByCharset(FX_Charset nCharset)
int GetSubstFontItalicAngle() const
int GetGlyphWidth(uint32_t glyph_index, int dest_width, int weight) const
const CFX_GlyphBitmap * LoadGlyphBitmap(uint32_t glyph_index, bool bFontStyle, const CFX_Matrix &matrix, int dest_width, int anti_alias, CFX_TextRenderOptions *text_options) const
const CFX_Path * LoadGlyphPath(uint32_t glyph_index, int dest_width) const
absl::optional< FX_RECT > GetBBox() const
int GetGlyphWidth(uint32_t glyph_index) const
static const CharsetFontMap kDefaultTTFMap[]
std::unique_ptr< CFX_Path > LoadGlyphPathImpl(uint32_t glyph_index, int dest_width) const
absl::optional< FX_RECT > GetRawBBox() const
ByteString GetPsName() const
void SetFontType(FontType type)
ByteString GetBaseFontName() const
absl::optional< FX_RECT > GetGlyphBBox(uint32_t glyph_index)
bool IsFixedWidth() const
bool LoadEmbedded(pdfium::span< const uint8_t > src_span, bool force_vertical, uint64_t object_tag)
pdfium::span< uint8_t > GetFontSpan() const
int GetGlyphWidthImpl(uint32_t glyph_index, int dest_width, int weight) const
static const char kDefaultAnsiFontName[]
ByteString GetFaceName() const
static const char kUniversalDefaultFontName[]
static FX_Charset GetCharSetFromUnicode(uint16_t word)
static const char kUntitledFontName[]
FXFT_FaceRec * GetFaceRec() const
void LoadSubst(const ByteString &face_name, bool bTrueType, uint32_t flags, int weight, int italic_angle, FX_CodePage code_page, bool bVertical)
CFX_SubstFont * GetSubstFont() const
uint64_t GetObjectTag() const
RetainPtr< CFX_Face > GetFace() const
FontType GetFontType() const
ByteString GetFamilyName() const
float GetLineDashPhase() const
float GetLineWidth() const
CFX_GraphStateData::LineCap GetLineCap() const
CFX_GraphStateData::LineJoin GetLineJoin() const
virtual const CPDF_IndexedCS * AsIndexedCS() const
static RetainPtr< CPDF_ColorSpace > Load(CPDF_Document *pDoc, const CPDF_Object *pObj, std::set< const CPDF_Object * > *pVisited)
static void InitializeGlobals()
~CPDF_ColorSpace() override
virtual uint32_t v_Load(CPDF_Document *pDoc, const CPDF_Array *pArray, std::set< const CPDF_Object * > *pVisited)=0
static void DestroyGlobals()
virtual const CPDF_PatternCS * AsPatternCS() const
virtual bool IsNormal() const
virtual void EnableStdConversion(bool bEnabled)
std::vector< float > CreateBufAndSetDefaultColor() const
CPDF_ColorSpace(Family family)
virtual bool GetRGB(pdfium::span< const float > pBuf, float *R, float *G, float *B) const =0
static uint32_t ComponentsForFamily(Family family)
static RetainPtr< CPDF_ColorSpace > AllocateColorSpaceForID(CPDF_Document *pDocument, uint32_t family_id)
virtual void TranslateImageLine(pdfium::span< uint8_t > dest_span, pdfium::span< const uint8_t > src_span, int pixels, int image_width, int image_height, bool bTransMask) const
static RetainPtr< CPDF_ColorSpace > GetStockCSForName(const ByteString &name)
bool HasSameArray(const CPDF_Object *pObj) const
bool IsStdConversionEnabled() const
void SetComponentsForStockCS(uint32_t nComponents)
static RetainPtr< CPDF_ColorSpace > GetStockCS(Family family)
uint32_t CountComponents() const
virtual void GetDefaultValue(int iComponent, float *value, float *min, float *max) const
const CPDF_Color * GetStrokeColor() const
const CPDF_Color * GetFillColor() const
bool GetRGB(int *R, int *G, int *B) const
bool IsColorSpaceRGB() const
void SetPropertiesHolder(RetainPtr< CPDF_Dictionary > pHolder, const ByteString &property_name)
~CPDF_ContentMarkItem() override
const ByteString & GetName() const
RetainPtr< CPDF_Dictionary > GetParam()
const ByteString & GetPropertyName() const
ParamType GetParamType() const
RetainPtr< const CPDF_Dictionary > GetParam() const
void SetDirectDict(RetainPtr< CPDF_Dictionary > pDict)
void AddMarkWithDirectDict(ByteString name, RetainPtr< CPDF_Dictionary > pDict)
bool RemoveMark(CPDF_ContentMarkItem *pMarkItem)
void AddMarkWithPropertiesHolder(const ByteString &name, RetainPtr< CPDF_Dictionary > pDict, const ByteString &property_name)
bool ContainsItem(const CPDF_ContentMarkItem *pItem) const
const CPDF_ContentMarkItem * GetItem(size_t index) const
size_t CountItems() const
CPDF_ContentMarkItem * GetItem(size_t index)
std::unique_ptr< CPDF_ContentMarks > Clone()
int GetMarkedContentID() const
size_t FindFirstDifference(const CPDF_ContentMarks *other) const
void AddMark(ByteString name)
void MaybePurgeFontFileStreamAcc(RetainPtr< CPDF_StreamAcc > &&pStreamAcc) override
RetainPtr< CPDF_ColorSpace > GetColorSpace(const CPDF_Object *pCSObj, const CPDF_Dictionary *pResources)
void ClearStockFont() override
RetainPtr< CPDF_IccProfile > GetIccProfile(RetainPtr< const CPDF_Stream > pProfileStream)
RetainPtr< CPDF_Pattern > GetPattern(RetainPtr< CPDF_Object > pPatternObj, const CFX_Matrix &matrix)
std::unique_ptr< CPDF_Font::FormIface > CreateForm(CPDF_Document *pDocument, RetainPtr< CPDF_Dictionary > pPageResources, RetainPtr< CPDF_Stream > pFormStream) override
RetainPtr< CPDF_Font > AddFont(std::unique_ptr< CFX_Font > pFont, FX_Charset charset)
RetainPtr< CPDF_Font > GetStandardFont(const ByteString &fontName, const CPDF_FontEncoding *pEncoding)
RetainPtr< CPDF_Font > GetFont(RetainPtr< CPDF_Dictionary > pFontDict)
RetainPtr< CPDF_ShadingPattern > GetShading(RetainPtr< CPDF_Object > pPatternObj, const CFX_Matrix &matrix)
void MaybePurgeImage(uint32_t dwStreamObjNum) override
RetainPtr< CPDF_Image > GetImage(uint32_t dwStreamObjNum)
~CPDF_DocPageData() override
RetainPtr< CPDF_ColorSpace > GetColorSpaceGuarded(const CPDF_Object *pCSObj, const CPDF_Dictionary *pResources, std::set< const CPDF_Object * > *pVisited)
RetainPtr< CPDF_StreamAcc > GetFontFileStreamAcc(RetainPtr< const CPDF_Stream > pFontStream) override
bool IsForceClear() const
static CPDF_DocPageData * FromDocument(const CPDF_Document *pDoc)
RetainPtr< CPDF_Font > AddStandardFont(const ByteString &fontName, const CPDF_FontEncoding *pEncoding)
static constexpr size_t kEncodingTableSize
bool IsIdentical(const CPDF_FontEncoding *pAnother) const
CPDF_FontEncoding(FontEncoding predefined_encoding)
wchar_t UnicodeFromCharCode(uint8_t charcode) const
void SetUnicode(uint8_t charcode, wchar_t unicode)
int CharCodeFromUnicode(wchar_t unicode) const
RetainPtr< CPDF_Object > Realize(WeakPtr< ByteStringPool > pPool) const
int GetItalicAngle() const
virtual FX_RECT GetCharBBox(uint32_t charcode)=0
virtual bool IsTrueTypeFont() const
virtual const CPDF_CIDFont * AsCIDFont() const
UnownedPtr< CPDF_Document > const m_pDocument
virtual int GetCharWidthF(uint32_t charcode)=0
const FX_RECT & GetFontBBox() const
virtual void WillBeDestroyed()
int GetTypeDescent() const
static bool UseTTCharmapMSSymbol(const RetainPtr< CFX_Face > &face)
int FallbackGlyphFromCharcode(int fallbackFont, uint32_t charcode)
void LoadFontDescriptor(const CPDF_Dictionary *pFontDesc)
virtual CPDF_CIDFont * AsCIDFont()
RetainPtr< CPDF_Dictionary > m_pFontDict
static constexpr uint32_t kInvalidCharCode
static int TT2PDF(FT_Pos m, const RetainPtr< CFX_Face > &face)
absl::optional< FX_Charset > GetSubstFontCharset() const
virtual bool IsType1Font() const
virtual bool IsVertWriting() const
RetainPtr< CPDF_StreamAcc > m_pFontFile
CPDF_Font(CPDF_Document *pDocument, RetainPtr< CPDF_Dictionary > pFontDict)
void LoadUnicodeMap() const
static RetainPtr< CPDF_Font > Create(CPDF_Document *pDoc, RetainPtr< CPDF_Dictionary > pFontDict, FormFactoryIface *pFactory)
virtual uint32_t CharCodeFromUnicode(wchar_t Unicode) const
virtual int GlyphFromCharCode(uint32_t charcode, bool *pVertGlyph)=0
static bool UseTTCharmapMacRoman(const RetainPtr< CFX_Face > &face)
const CFX_Font * GetFont() const
static bool UseTTCharmapMSUnicode(const RetainPtr< CFX_Face > &face)
virtual const CPDF_TrueTypeFont * AsTrueTypeFont() const
virtual const CPDF_Type1Font * AsType1Font() const
std::unique_ptr< CPDF_ToUnicodeMap > m_pToUnicodeMap
RetainPtr< const CPDF_Dictionary > GetFontDict() const
void SetResourceName(const ByteString &name)
virtual bool IsCIDFont() const
std::vector< std::unique_ptr< CFX_Font > > m_FontFallbacks
virtual WideString UnicodeFromCharCode(uint32_t charcode) const
virtual const CPDF_Type3Font * AsType3Font() const
static RetainPtr< CPDF_Font > GetStockFont(CPDF_Document *pDoc, ByteStringView fontname)
static bool UseTTCharmap(const RetainPtr< CFX_Face > &face, int platform_id, int encoding_id)
virtual size_t CountChar(ByteStringView pString) const
void AppendChar(ByteString *str, uint32_t charcode) const
int GetStringWidth(ByteStringView pString)
RetainPtr< CPDF_Dictionary > GetMutableFontDict()
virtual CPDF_Type1Font * AsType1Font()
ByteString m_BaseFontName
ByteString GetBaseFontName() const
virtual bool HasFontWidths() const
virtual bool IsType3Font() const
virtual CPDF_Type3Font * AsType3Font()
bool FontDictIs(const CPDF_Dictionary *pThat) const
static const char * GetAdobeCharName(FontEncoding base_encoding, const std::vector< ByteString > &charnames, uint32_t charcode)
ByteString m_ResourceName
virtual CPDF_TrueTypeFont * AsTrueTypeFont()
const ByteString & GetResourceName() const
int GetFontWeight() const
virtual int AppendChar(char *buf, uint32_t charcode) const
uint32_t GetFontDictObjNum() const
virtual uint32_t GetNextChar(ByteStringView pString, size_t *pOffset) const
uint32_t FallbackFontFromCharcode(uint32_t charcode)
virtual bool IsUnicodeCompatible() const =0
bool IsStandardFont() const
static FX_RECT GetCharBBoxForFace(const RetainPtr< CFX_Face > &face)
CPDF_Document * GetDocument() const
int GetTypeAscent() const
CFX_Font * GetFontFallback(int position)
float GetStrokeAlpha() const
float GetFillAlpha() const
BlendMode GetBlendType() const
ByteString GetBlendMode() const
void SetImage(RetainPtr< CPDF_Image > pImage)
const CFX_Matrix & matrix() const
bool ProcessPageObjects(fxcrt::ostringstream *buf)
CPDF_PageContentGenerator(CPDF_PageObjectHolder *pObjHolder)
~CPDF_PageContentGenerator()
void UpdateStream(size_t stream_index, fxcrt::ostringstream *buf)
size_t AddStream(fxcrt::ostringstream *buf)
~CPDF_PageContentManager()
CPDF_PageContentManager(CPDF_PageObjectHolder *page_obj_holder, CPDF_Document *document)
void SetBackgroundAlphaNeeded(bool needed)
absl::optional< ByteString > GraphicsMapSearch(const GraphicsData &gd)
bool BackgroundAlphaNeeded() const
void StartParse(std::unique_ptr< CPDF_ContentParser > pParser)
RetainPtr< const CPDF_Dictionary > GetDict() const
std::map< FontData, ByteString > m_FontsMap
RetainPtr< CPDF_Dictionary > m_pPageResources
RetainPtr< const CPDF_Dictionary > GetResources() const
virtual bool IsPage() const
void SetResources(RetainPtr< CPDF_Dictionary > pDict)
size_t GetPageObjectCount() const
const_iterator end() const
virtual ~CPDF_PageObjectHolder()
bool HasDirtyStreams() const
const CFX_Matrix & GetLastCTM() const
const_iterator begin() const
const std::vector< CFX_FloatRect > & GetMaskBoundingBoxes() const
void GraphicsMapInsert(const GraphicsData &gd, const ByteString &str)
void AddImageMaskBoundingBox(const CFX_FloatRect &box)
CPDF_Document * GetDocument() const
bool HasImageMask() const
void LoadTransparencyInfo()
std::map< GraphicsData, ByteString > m_GraphicsMap
void AppendPageObject(std::unique_ptr< CPDF_PageObject > pPageObj)
void FontsMapInsert(const FontData &fd, const ByteString &str)
absl::optional< ByteString > FontsMapSearch(const FontData &fd)
bool ErasePageObjectAtIndex(size_t index)
CPDF_PageObjectHolder(CPDF_Document *pDoc, RetainPtr< CPDF_Dictionary > pDict, RetainPtr< CPDF_Dictionary > pPageResources, RetainPtr< CPDF_Dictionary > pResources)
ParseState GetParseState() const
RetainPtr< CPDF_Dictionary > GetMutableDict()
void ContinueParse(PauseIndicatorIface *pPause)
RetainPtr< CPDF_Dictionary > m_pResources
CPDF_PageObject * GetPageObjectByIndex(size_t index) const
std::unique_ptr< CPDF_PageObject > RemovePageObject(CPDF_PageObject *pPageObj)
const CPDF_Transparency & GetTransparency() const
RetainPtr< CPDF_Dictionary > GetMutableResources()
RetainPtr< const CPDF_Dictionary > GetPageResources() const
RetainPtr< CPDF_Dictionary > GetMutablePageResources()
CPDF_Transparency m_Transparency
const CFX_FloatRect & GetBBox() const
std::set< int32_t > TakeDirtyStreams()
const CPDF_ColorState & color_state() const
void SetDirty(bool value)
const CPDF_GeneralState & general_state() const
const ByteString & GetResourceName() const
const CPDF_ClipPath & clip_path() const
virtual Type GetType() const =0
CPDF_GeneralState & mutable_general_state()
const CPDF_ContentMarks * GetContentMarks() const
void SetResourceName(const ByteString &resource_name)
const CFX_GraphState & graph_state() const
bool has_winding_filltype() const
const CFX_Matrix & matrix() const
bool has_alternate_filltype() const
bool has_no_filltype() const
const CFX_Matrix & parent_matrix() const
void SetPatternToFormMatrix()
virtual CPDF_ShadingPattern * AsShadingPattern()
const CFX_Matrix & pattern_to_form() const
RetainPtr< CPDF_Object > pattern_obj() const
virtual CPDF_TilingPattern * AsTilingPattern()
CPDF_Pattern(CPDF_Document *pDoc, RetainPtr< CPDF_Object > pObj, const CFX_Matrix &parentMatrix)
CPDF_Document * document() const
CPDF_SimpleFont(CPDF_Document *pDocument, RetainPtr< CPDF_Dictionary > pFontDict)
std::vector< ByteString > m_CharNames
~CPDF_SimpleFont() override
uint16_t m_GlyphIndex[kInternalTableSize]
int GlyphFromCharCode(uint32_t charcode, bool *pVertGlyph) override
static constexpr size_t kInternalTableSize
int GetCharWidthF(uint32_t charcode) override
void LoadCharMetrics(int charcode)
CPDF_FontEncoding m_Encoding
uint32_t CharCodeFromUnicode(wchar_t Unicode) const override
bool IsUnicodeCompatible() const override
void LoadCharWidths(const CPDF_Dictionary *font_desc)
FX_RECT m_CharBBox[kInternalTableSize]
FX_RECT GetCharBBox(uint32_t charcode) override
void LoadPDFEncoding(bool bEmbedded, bool bTrueType)
uint16_t m_CharWidth[kInternalTableSize]
FontEncoding m_BaseEncoding
bool HasFontWidths() const override
void LoadDifferences(const CPDF_Dictionary *encoding)
const CPDF_FontEncoding * GetEncoding() const
WideString UnicodeFromCharCode(uint32_t charcode) const override
virtual void LoadGlyphMap()=0
ByteString GetImageDecoder() const
ByteString ComputeDigest() const
void LoadAllDataFiltered()
void LoadAllDataFilteredWithEstimatedSize(uint32_t estimated_size)
CPDF_StreamAcc & operator=(const CPDF_StreamAcc &)=delete
pdfium::span< const uint8_t > GetSpan() const
CPDF_StreamAcc(const CPDF_StreamAcc &)=delete
uint64_t KeyForCache() const
int GetLength1ForTest() const
~CPDF_StreamAcc() override
void LoadAllDataImageAcc(uint32_t estimated_size)
RetainPtr< const CPDF_Dictionary > GetImageParam() const
RetainPtr< const CPDF_Stream > GetStream() const
DataVector< uint8_t > DetachData()
~CPDF_StringArchiveStream() override
CPDF_StringArchiveStream(fxcrt::ostringstream *stream)
FX_FILESIZE CurrentOffset() const override
bool WriteBlock(pdfium::span< const uint8_t > buffer) override
CFX_Matrix GetTextMatrix() const
float GetFontSize() const
TextRenderingMode GetTextRenderMode() const
CPDF_Transparency(const CPDF_Transparency &other)
CPDF_Transparency & operator=(const CPDF_Transparency &other)
bool IsTrueTypeFont() const override
void LoadGlyphMap() override
CPDF_TrueTypeFont * AsTrueTypeFont() override
const CPDF_TrueTypeFont * AsTrueTypeFont() const override
~CPDF_TrueTypeFont() override
void LoadGlyphMap() override
CPDF_Type1Font * AsType1Font() override
const CPDF_Type1Font * AsType1Font() const override
bool IsBase14Font() const
~CPDF_Type1Font() override
bool IsType1Font() const override
void SetPattern(RetainPtr< CPDF_Pattern > pPattern)
void SetComps(pdfium::span< const float > comps)
RetainPtr< CPDF_Pattern > GetPattern() const
pdfium::span< const float > GetComps() const
PatternValue(const PatternValue &that)
FT_Long GetAxisMax(size_t index) const
ScopedFXFTMMVar(FXFT_FaceRec *face)
FT_Pos GetAxisDefault(size_t index) const
FT_Long GetAxisMin(size_t index) const
static ByteString Format(const char *pFormat,...)
ByteString & operator=(ByteString &&that) noexcept
CharType operator[](const size_t index) const
constexpr size_t kMaxPatternColorComps
pdfium::span< const uint16_t > UnicodesForPredefinedCharSet(FontEncoding encoding)
wchar_t UnicodeFromAppleRomanCharCode(uint8_t charcode)
const char * CharNameFromPredefinedCharSet(FontEncoding encoding, uint8_t charcode)
uint32_t CharCodeFromUnicodeForEncoding(fxge::FontEncoding encoding, wchar_t unicode)
ByteString PDF_NameEncode(const ByteString &orig)
bool GetIsMaskFromFormat(FXDIB_Format format)
constexpr FX_CMYK CmykEncode(uint32_t c, uint32_t m, uint32_t y, uint32_t k)
constexpr uint32_t FXSYS_BGR(uint8_t b, uint8_t g, uint8_t r)
FXDIB_Format MakeRGBFormat(int bpp)
void ReverseCopy3Bytes(uint8_t *dest, const uint8_t *src)
std::pair< int, FX_COLORREF > ArgbToAlphaAndColorRef(FX_ARGB argb)
FX_ARGB AlphaAndColorRefToArgb(int a, FX_COLORREF colorref)
constexpr FX_ARGB ArgbEncode(uint32_t a, uint32_t r, uint32_t g, uint32_t b)
int GetBppFromFormat(FXDIB_Format format)
int GetCompsFromFormat(FXDIB_Format format)
constexpr uint8_t FXSYS_GetRValue(uint32_t bgr)
std::tuple< int, int, int, int > ArgbDecode(FX_ARGB argb)
FX_COLORREF ArgbToColorRef(FX_ARGB argb)
constexpr unsigned int FXSYS_GetUnsignedAlpha(float alpha)
constexpr uint8_t FXSYS_GetGValue(uint32_t bgr)
constexpr uint8_t FXSYS_GetBValue(uint32_t bgr)
void FXFT_adobe_name_from_unicode(char *name, wchar_t unicode)
int FXFT_unicode_from_adobe_name(const char *glyph_name)
#define CONSTRUCT_VIA_MAKE_RETAIN
bool HasAnyOptions() const
bool bInterpolateBilinear
void operator()(FXFT_FaceRec *pRec)
void operator()(FXFT_LibraryRec *pRec)
void operator()(FT_MM_Var *variation_desc)
bool operator<(const FontData &other) const
bool operator<(const GraphicsData &other) const