wxMaxima
Loading...
Searching...
No Matches
pdffontdescription.h
Go to the documentation of this file.
1
2// Name: pdffontdescription.h
3// Purpose:
4// Author: Ulrich Telle
5// Created: 2008-08-10
6// Copyright: (c) Ulrich Telle
7// Licence: wxWindows licence
9
11
12#ifndef _PDF_FONT_DESCRIPTION_H_
13#define _PDF_FONT_DESCRIPTION_H_
14
15// wxWidgets headers
16#include <wx/string.h>
17
18// wxPdfDocument headers
19#include "wx/pdfdocdef.h"
20#include "wx/pdfproperties.h"
21
23class WXDLLIMPEXP_PDFDOC wxPdfFontDescription
24{
25public:
28
30
51 wxPdfFontDescription(int ascent, int descent, int capHeight, int flags,
52 const wxString& fontBBox, int italicAngle, int stemV,
53 int missingWidth, int xHeight,
54 int underlinePosition, int underlineThickness,
55 int hheaAscender = 0, int hheaDescender = 0, int hheaLineGap = 0,
56 int os2sTypoAscender = 0, int os2sTypoDescender = 0, int os2sTypoLineGap = 0,
57 int os2usWinAscent = 0, int os2usWinDescent = 0);
58
60
64
66
69 wxPdfFontDescription& operator=(const wxPdfFontDescription& desc);
70
73
75
78 void SetAscent(int ascent) { m_ascent = ascent; };
79
81
84 int GetAscent() const { return m_ascent; };
85
87
90 void SetDescent(int descent) { m_descent = descent;};
91
93
96 int GetDescent() const { return m_descent;};
97
99
102 void SetCapHeight(int capHeight) { m_capHeight = capHeight; };
103
105
108 int GetCapHeight() const { return m_capHeight; };
109
111
114 void SetFlags(int flags) { m_flags = flags; };
115
117
120 int GetFlags() const { return m_flags; };
121
123
126 void SetFontBBox(const wxString& fontBBox) { m_fontBBox = fontBBox; };
127
129
132 wxString GetFontBBox() const { return m_fontBBox; };
133
135
138 void SetItalicAngle(int italicAngle) { m_italicAngle = italicAngle; };
139
141
144 int GetItalicAngle() const { return m_italicAngle; };
145
147
150 void SetStemV(int stemV) { m_stemV = stemV; };
151
153
156 int GetStemV() const { return m_stemV; };
157
159
162 void SetMissingWidth(int missingWidth) { m_missingWidth = missingWidth; };
163
165
168 int GetMissingWidth() const { return m_missingWidth; };
169
171
174 void SetXHeight(int xHeight) { m_xHeight = xHeight; };
175
177
180 int GetXHeight() const { return m_xHeight; };
181
183
186 void SetUnderlinePosition(int underlinePosition) { m_underlinePosition = underlinePosition; };
187
189
192 int GetUnderlinePosition() const { return m_underlinePosition; };
193
195
198 void SetUnderlineThickness(int underlineThickness) { m_underlineThickness = underlineThickness; };
199
201
204 int GetUnderlineThickness() const { return m_underlineThickness; };
205
207
218 void SetOpenTypeMetrics(int hheaAscender, int hheaDescender, int hheaLineGap,
219 int os2sTypoAscender, int os2sTypoDescender, int os2sTypoLineGap,
220 int os2usWinAscent, int os2usWinDescent);
221
223
234 void GetOpenTypeMetrics(int* hheaAscender, int* hheaDescender, int* hheaLineGap,
235 int* os2sTypoAscender, int* os2sTypoDescender, int* os2sTypoLineGap,
236 int* os2usWinAscent, int* os2usWinDescent);
237
239
242 void SetFontStyle(int fontStyle) { m_fontStyle = fontStyle; };
243
245
248 int GetFontStyle() const { return m_fontStyle; };
249
251
254 void SetFontWeight(wxPdfFontWeight fontWeight) { m_fontWeight = fontWeight; };
255
257
260 wxPdfFontWeight GetFontWeight() const { return m_fontWeight; };
261
262private:
263 int m_ascent;
264 int m_descent;
265 int m_capHeight;
266 int m_flags;
267 wxString m_fontBBox;
268 int m_italicAngle;
269 int m_stemV;
270 int m_missingWidth;
271 int m_xHeight;
272 int m_underlinePosition;
273 int m_underlineThickness;
274
275 int m_hheaAscender;
276 int m_hheaDescender;
277 int m_hheaLineGap;
278 int m_os2sTypoAscender;
279 int m_os2sTypoDescender;
280 int m_os2sTypoLineGap;
281 int m_os2usWinAscent;
282 int m_os2usWinDescent;
283
284 int m_fontStyle;
285 wxPdfFontWeight m_fontWeight;
286};
287
288#endif
Class representing a font description.
Definition: pdffontdescription.h:24
int GetUnderlineThickness() const
Get underline thickness.
Definition: pdffontdescription.h:204
void SetDescent(int descent)
Set descender.
Definition: pdffontdescription.h:90
void SetUnderlineThickness(int underlineThickness)
Set underline thickness.
Definition: pdffontdescription.h:198
void SetFontWeight(wxPdfFontWeight fontWeight)
Set font weight.
Definition: pdffontdescription.h:254
void SetItalicAngle(int italicAngle)
Set italic angle.
Definition: pdffontdescription.h:138
void SetMissingWidth(int missingWidth)
Set missing character width.
Definition: pdffontdescription.h:162
void SetFlags(int flags)
Set font flags.
Definition: pdffontdescription.h:114
int GetDescent() const
Get descender.
Definition: pdffontdescription.h:96
int GetStemV() const
Get StemV.
Definition: pdffontdescription.h:156
int GetFontStyle() const
Get font style.
Definition: pdffontdescription.h:248
int GetAscent() const
Get ascender.
Definition: pdffontdescription.h:84
int GetUnderlinePosition() const
Get underline position.
Definition: pdffontdescription.h:192
int GetMissingWidth() const
Get missing character width.
Definition: pdffontdescription.h:168
void SetAscent(int ascent)
Set ascender.
Definition: pdffontdescription.h:78
wxString GetFontBBox() const
Get font bounding box.
Definition: pdffontdescription.h:132
void SetXHeight(int xHeight)
Set xHeight.
Definition: pdffontdescription.h:174
void SetStemV(int stemV)
Set StemV.
Definition: pdffontdescription.h:150
void SetFontBBox(const wxString &fontBBox)
Set font bounding box.
Definition: pdffontdescription.h:126
void SetFontStyle(int fontStyle)
Set font style.
Definition: pdffontdescription.h:242
void SetUnderlinePosition(int underlinePosition)
Set underline position.
Definition: pdffontdescription.h:186
int GetItalicAngle() const
Get italic angle.
Definition: pdffontdescription.h:144
void SetCapHeight(int capHeight)
Set CapHeight.
Definition: pdffontdescription.h:102
int GetCapHeight() const
Get CapHeight.
Definition: pdffontdescription.h:108
int GetXHeight() const
Get xHeight.
Definition: pdffontdescription.h:180
wxPdfFontWeight GetFontWeight() const
Get font weight.
Definition: pdffontdescription.h:260
int GetFlags() const
Get font flags.
Definition: pdffontdescription.h:120
Compile time switches for the wxPdfDocument component.
Interface of the several wxPdfDocument property classes.
wxPdfFontWeight
Font weights.
Definition: pdfproperties.h:105