7#ifndef CORE_FPDFAPI_FONT_CPDF_TYPE3CHAR_H_
8#define CORE_FPDFAPI_FONT_CPDF_TYPE3CHAR_H_
13#include "core/fpdfapi/font/cpdf_font.h"
14#include "core/fxcrt/fx_coordinates.h"
15#include "core/fxcrt/retain_ptr.h"
16#include "third_party/abseil-cpp/absl/types/optional.h"
17#include "third_party/base/containers/span.h"
36 bool colored()
const {
return m_bColored; }
37 int width()
const {
return m_Width; }
42 void SetForm(std::unique_ptr<CPDF_Font::FormIface> pForm);
45 std::unique_ptr<CPDF_Font::FormIface> m_pForm;
47 bool m_bColored =
false;
FX_RECT ToRoundedFxRect() const
CFX_FloatRect(const FX_RECT &rect)
CFX_FloatRect & operator=(const CFX_FloatRect &that)=default
CFX_FloatRect TransformRect(const CFX_FloatRect &rect) const
const CFX_Matrix & matrix() const
static float TextUnitToGlyphUnit(float fTextUnit)
void Transform(CPDF_Font::FormIface *pForm, const CFX_Matrix &matrix)
void InitializeFromStreamData(bool bColored, pdfium::span< const float > pData)
RetainPtr< CFX_DIBitmap > GetBitmap()
static void TextUnitRectToGlyphUnitRect(CFX_FloatRect *pRect)
const FX_RECT & bbox() const
const CPDF_Font::FormIface * form() const
bool LoadBitmapFromSoleImageOfForm()
void SetForm(std::unique_ptr< CPDF_Font::FormIface > pForm)
FX_RECT & operator=(const FX_RECT &that)=default