wxMaxima
Loading...
Searching...
No Matches
pdffontdatacore.h
Go to the documentation of this file.
1
2// Name: pdffontdatacore.h
3// Purpose: Definition of font data for the Adobe core fonts
4// Author: Ulrich Telle
5// Created: 2009-05-15
6// Copyright: (c) Ulrich Telle
7// Licence: wxWindows licence
9
11
12#ifndef _PDF_FONT_DATA_CORE_H_
13#define _PDF_FONT_DATA_CORE_H_
14
15// wxWidgets headers
16#include <wx/strconv.h>
17#include <wx/string.h>
18#include <wx/xml/xml.h>
19
20// wxPdfDocument headers
21#include "wx/pdfdocdef.h"
22#include "wx/pdfarraytypes.h"
23#include "wx/pdffontdata.h"
24
25// Forward declarations
26class WXDLLIMPEXP_FWD_PDFDOC wxPdfFontDescription;
27
29
32class WXDLLIMPEXP_PDFDOC wxPdfFontDataCore : public wxPdfFontData
33{
34public :
37
39
47 wxPdfFontDataCore(const wxString& family, const wxString& name, const wxString& alias,
48 short* cwArray, const wxPdfKernPairDesc* kpArray,
49 const wxPdfFontDescription& desc);
50
52 virtual ~wxPdfFontDataCore();
53
55
61 virtual wxString GetWidthsAsString(bool subset = false, wxPdfSortedArrayInt* usedGlyphs = NULL, wxPdfChar2GlyphMap* subsetGlyphs = NULL) const;
62
64
71 virtual double GetStringWidth(const wxString& s, const wxPdfEncoding* encoding = NULL, bool withKerning = false, double charSpacing = 0) const;
72
74
79 virtual bool CanShow(const wxString& s, const wxPdfEncoding* encoding = NULL) const;
80
82
89 virtual wxString ConvertCID2GID(const wxString& s, const wxPdfEncoding* encoding = NULL,
90 wxPdfSortedArrayInt* usedGlyphs = NULL,
91 wxPdfChar2GlyphMap* subsetGlyphs = NULL) const;
92
93#if wxUSE_UNICODE
95
98 virtual wxMBConv* GetEncodingConv() const;
99#endif
100
101protected:
102
103private:
104
105};
106
107#endif
Class representing a font encoding.
Definition: pdfencoding.h:25
Class representing the Adobe core fonts. (For internal use only)
Definition: pdffontdatacore.h:33
wxPdfFontDataCore()
Default constructor.
Base class for all fonts. (For internal use only)
Definition: pdffontdata.h:55
virtual wxString GetWidthsAsString(bool subset=false, wxPdfSortedArrayInt *usedGlyphs=NULL, wxPdfChar2GlyphMap *subsetGlyphs=NULL) const
Get the character width array as string.
Definition: pdffontdata.cpp:691
virtual double GetStringWidth(const wxString &s, const wxPdfEncoding *encoding=NULL, bool withKerning=false, double charSpacing=0) const
Get the width of a string.
Definition: pdffontdata.cpp:700
virtual bool CanShow(const wxString &s, const wxPdfEncoding *encoding=NULL) const
Check whether the font can show all characters of a given string.
Definition: pdffontdata.cpp:778
virtual wxString ConvertCID2GID(const wxString &s, const wxPdfEncoding *encoding=NULL, wxPdfSortedArrayInt *usedGlyphs=NULL, wxPdfChar2GlyphMap *subsetGlyphs=NULL) const
Convert character codes to glyph numbers.
Definition: pdffontdata.cpp:821
Class representing a font description.
Definition: pdffontdescription.h:24
Class representing a kerning pair (for internal use only)
Definition: pdfcorefontdata.h:18
Definition of array types.
Compile time switches for the wxPdfDocument component.
Definition of font data.