Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cfx_unicodeencoding.h
Go to the documentation of this file.
1// Copyright 2016 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#ifndef CORE_FXGE_CFX_UNICODEENCODING_H_
8#define CORE_FXGE_CFX_UNICODEENCODING_H_
9
10#include <stdint.h>
11
12#include "core/fxcrt/unowned_ptr.h"
13
14class CFX_Font;
15
17 public:
18 explicit CFX_UnicodeEncoding(const CFX_Font* pFont);
20
21 virtual uint32_t GlyphFromCharCode(uint32_t charcode);
22
23 protected:
25};
26
27#endif // CORE_FXGE_CFX_UNICODEENCODING_H_
int GetGlyphWidth(uint32_t glyph_index) const
Definition cfx_font.cpp:239
virtual uint32_t GlyphFromCharCode(uint32_t charcode)
UnownedPtr< const CFX_Font > const m_pFont
CFX_UnicodeEncoding(const CFX_Font *pFont)
virtual ~CFX_UnicodeEncoding()
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)
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
static CPDF_DocPageData * FromDocument(const CPDF_Document *pDoc)
RetainPtr< CPDF_Font > AddStandardFont(const ByteString &fontName, const CPDF_FontEncoding *pEncoding)
CPDF_Document * GetDocument() const
PageDataIface * GetPageData() const
static CPDF_FontGlobals * GetInstance()
void Clear(CPDF_Document *pDoc)
virtual ByteString GetString() const
bool IsName() const
ShadingType GetShadingType() const
CPDF_ShadingPattern * AsShadingPattern() override
const std::vector< std::unique_ptr< CPDF_Function > > & GetFuncs() const
~CPDF_ShadingPattern() override
RetainPtr< CPDF_ColorSpace > GetCS() const
RetainPtr< const CPDF_Object > GetShadingObject() const
static bool IsValidIccComponents(int components)
ByteString(const ByteString &other)
ByteString & operator+=(const char *str)
ByteString & operator=(const char *str)
bool IsEmpty() const
Definition bytestring.h:119
@ kRadialShading
@ kAxialShading
@ kInvalidShading
@ kCoonsPatchMeshShading
@ kMaxShading
@ kTensorProductPatchMeshShading
@ kLatticeFormGouraudTriangleMeshShading
@ kFreeFormGouraudTriangleMeshShading
@ kFunctionBasedShading
FX_Charset
Definition fx_codepage.h:70
@ kChineseTraditional
@ kChineseSimplified
const FX_CharsetUnicodes kFX_CharsetUnicodes[8]
bool FX_CharSetIsCJK(FX_Charset uCharset)
#define FXFONT_NONSYMBOLIC
Definition fx_font.h:32
#define FXFONT_SERIF
Definition fx_font.h:29
#define FXFONT_ITALIC
Definition fx_font.h:33
#define FXFONT_SYMBOLIC
Definition fx_font.h:30
#define FXFONT_SCRIPT
Definition fx_font.h:31
#define FXFONT_FORCE_BOLD
Definition fx_font.h:36
ByteString AdobeNameFromUnicode(wchar_t unicode)
Definition fx_font.cpp:142
#define FXFONT_FIXED_PITCH
Definition fx_font.h:28
#define CHECK(cvref)
#define CONSTRUCT_VIA_MAKE_RETAIN
Definition retain_ptr.h:224
int32_t bottom
int32_t right
constexpr FX_RECT()=default
int32_t top
int32_t left