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_androidfontinfo.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_ANDROID_CFX_ANDROIDFONTINFO_H_
8#define CORE_FXGE_ANDROID_CFX_ANDROIDFONTINFO_H_
9
10#include <stdint.h>
11
12#include "core/fxcrt/unowned_ptr.h"
13#include "core/fxge/cfx_fontmapper.h"
14#include "core/fxge/systemfontinfo_iface.h"
15#include "third_party/base/containers/span.h"
16
18
19class CFX_AndroidFontInfo final : public SystemFontInfoIface {
20 public:
23
24 bool Init(CFPF_SkiaFontMgr* pFontMgr);
25
26 // SystemFontInfoIface:
27 bool EnumFontList(CFX_FontMapper* pMapper) override;
28 void* MapFont(int weight,
29 bool bItalic,
30 FX_Charset charset,
31 int pitch_family,
32 const ByteString& face) override;
33 void* GetFont(const ByteString& face) override;
34 size_t GetFontData(void* hFont,
35 uint32_t table,
36 pdfium::span<uint8_t> buffer) override;
37 bool GetFaceName(void* hFont, ByteString* name) override;
38 bool GetFontCharset(void* hFont, FX_Charset* charset) override;
39 void DeleteFont(void* hFont) override;
40
41 private:
42 UnownedPtr<CFPF_SkiaFontMgr> m_pFontMgr;
43};
44
45#endif // CORE_FXGE_ANDROID_CFX_ANDROIDFONTINFO_H_
FX_Charset GetCharset() const
ByteString GetFamilyName()
uint32_t GetFontData(uint32_t dwTable, pdfium::span< uint8_t > pBuffer)
void * MapFont(int weight, bool bItalic, FX_Charset charset, int pitch_family, const ByteString &face) override
bool GetFontCharset(void *hFont, FX_Charset *charset) override
~CFX_AndroidFontInfo() override
void DeleteFont(void *hFont) override
bool GetFaceName(void *hFont, ByteString *name) override
bool Init(CFPF_SkiaFontMgr *pFontMgr)
size_t GetFontData(void *hFont, uint32_t table, pdfium::span< uint8_t > buffer) override
void * GetFont(const ByteString &face) override
bool EnumFontList(CFX_FontMapper *pMapper) override
ByteString & operator=(ByteString &&that) noexcept
FX_Charset
Definition fx_codepage.h:70
bool FontFamilyIsFixedPitch(uint32_t family)
Definition fx_font.h:84
#define FXFONT_SERIF
Definition fx_font.h:29
bool FontFamilyIsScript(int32_t family)
Definition fx_font.h:90
#define FXFONT_ITALIC
Definition fx_font.h:33
bool FontFamilyIsRoman(uint32_t family)
Definition fx_font.h:87
#define FXFONT_SCRIPT
Definition fx_font.h:31
#define FXFONT_FORCE_BOLD
Definition fx_font.h:36
#define FXFONT_FIXED_PITCH
Definition fx_font.h:28