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
fx_apple_platform.h
Go to the documentation of this file.
1// Copyright 2020 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_APPLE_FX_APPLE_PLATFORM_H_
8#define CORE_FXGE_APPLE_FX_APPLE_PLATFORM_H_
9
10#include <memory>
11
12#include "core/fxge/apple/fx_quartz_device.h"
13#include "core/fxge/cfx_gemodule.h"
14
15class CApplePlatform final : public CFX_GEModule::PlatformIface {
16 public:
18 ~CApplePlatform() override;
19
20 // CFX_GEModule::PlatformIface:
21 void Init() override;
23 void* CreatePlatformFont(pdfium::span<const uint8_t> font_span) override;
24
26};
27
28#endif // CORE_FXGE_APPLE_FX_APPLE_PLATFORM_H_
void Init() override
std::unique_ptr< SystemFontInfoIface > CreateDefaultSystemFontInfo() override
void * CreatePlatformFont(pdfium::span< const uint8_t > font_span) override
~CApplePlatform() override
ByteString GetPsName() const
Definition cfx_font.cpp:358
CFX_SubstFont * GetSubstFont() const
Definition cfx_font.h:82
bool IsBold() const
Definition cfx_font.cpp:343
PlatformIface * GetPlatform() const
static CFX_GEModule * Get()
void SetGraphicsTextMatrix(void *graphics, const CFX_Matrix &matrix)
void * CreateFont(pdfium::span< const uint8_t > pFontData)
bool operator==(const char *ptr) const
bool DrawDeviceText(pdfium::span< const TextCharPos > pCharPos, CFX_Font *pFont, const CFX_Matrix &mtObject2Device, float font_size, uint32_t color, const CFX_TextRenderOptions &options) override