5#ifndef CORE_FXCRT_AUTORESTORER_H_
6#define CORE_FXCRT_AUTORESTORER_H_
8#include "core/fxcrt/fx_memory.h"
9#include "core/fxcrt/unowned_ptr.h"
19 : m_Location(location), m_OldValue(*location) {}
22 *m_Location = m_OldValue;
33using fxcrt::AutoRestorer;
void LoadPDFEncoding(bool bEmbedded, bool bTrueType)
static float TextUnitToGlyphUnit(float fTextUnit)
static void TextUnitRectToGlyphUnitRect(CFX_FloatRect *pRect)
const FX_RECT & bbox() const
void CheckType3FontMetrics()
CPDF_Type3Font * AsType3Font() override
void WillBeDestroyed() override
bool IsType3Font() const override
CPDF_Type3Char * LoadChar(uint32_t charcode)
void LoadGlyphMap() override
FX_RECT GetCharBBox(uint32_t charcode) override
~CPDF_Type3Font() override
int GetCharWidthF(uint32_t charcode) override
const CPDF_Type3Font * AsType3Font() const override
void AbandonRestoration()
AutoRestorer(T *location)
FX_RECT & operator=(const FX_RECT &that)=default