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
cpdf_type3glyphmap.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_FPDFAPI_RENDER_CPDF_TYPE3GLYPHMAP_H_
8#define CORE_FPDFAPI_RENDER_CPDF_TYPE3GLYPHMAP_H_
9
10#include <stdint.h>
11
12#include <map>
13#include <memory>
14#include <utility>
15#include <vector>
16
17class CFX_GlyphBitmap;
18
20 public:
23
24 // Returns a pair of integers (top_line, bottom_line).
25 std::pair<int, int> AdjustBlue(float top, float bottom);
26
27 const CFX_GlyphBitmap* GetBitmap(uint32_t charcode) const;
28 void SetBitmap(uint32_t charcode, std::unique_ptr<CFX_GlyphBitmap> pMap);
29
30 private:
31 std::vector<int> m_TopBlue;
32 std::vector<int> m_BottomBlue;
33 std::map<uint32_t, std::unique_ptr<CFX_GlyphBitmap>> m_GlyphMap;
34};
35
36#endif // CORE_FPDFAPI_RENDER_CPDF_TYPE3GLYPHMAP_H_
CFX_Matrix(float a1, float b1, float c1, float d1, float e1, float f1)
CFX_Matrix operator*(const CFX_Matrix &right) const
~CPDF_Type3Cache() override
const CFX_GlyphBitmap * LoadGlyph(uint32_t charcode, const CFX_Matrix &mtMatrix)
const CFX_Matrix & matrix() const
void SetBitmap(uint32_t charcode, std::unique_ptr< CFX_GlyphBitmap > pMap)
const CFX_GlyphBitmap * GetBitmap(uint32_t charcode) const
std::pair< int, int > AdjustBlue(float top, float bottom)
int FXSYS_roundf(float f)
Definition fx_system.cpp:92