libart-paperback 0.1.0-a.1.20260122225059.e5fea306241a
PDF (1.4) library for C++
base14-fontdata.hxx
1#ifndef art__paperback__internals__base14_fontdata_hxx_
2#define art__paperback__internals__base14_fontdata_hxx_
3
4#include <art/paperback/types.hxx>
5#include <art/paperback/primitives.hxx>
6
8{
9
10 /// Base font character data.
11 ///
13 {
14 int16_t char_cd;
15
16 /// Unicode code point.
17 ///
18 uint16_t unicode;
19
20 double width;
21
22 };
23
24 /// Represents font data for one of the 14 standard PDF fonts.
25 ///
27 {
28 /// Font character data.
29 ///
30 vector<Base14_character_data> const& cdata;
31
32 bool is_font_specific;
33
34 /// Font ascent.
35 ///
36 int16_t ascent;
37
38 /// Font descent.
39 ///
40 int16_t descent;
41
42 /// Font X-height.
43 ///
44 uint16_t x_height;
45
46 /// Font Cap-height.
47 ///
48 uint16_t cap_height;
49
50 /// Font bounding box.
51 ///
53
54 };
55
56 /// Map of base fonts.
57 ///
58 extern
59 map<string, Base14_font_data> const
61
62} // namespace Art::Paperback::Internals
63
64#endif
Represents a PDF rectangle.
Definition primitives.hxx:27
Internal namespace.
Definition forward.hxx:91
std::map< std::string, Base14_font_data > const base14_fonts
Map of base fonts.
Definition base14-fontdata.cxx:1443
Base font character data.
Definition base14-fontdata.hxx:13
uint16_t unicode
Unicode code point.
Definition base14-fontdata.hxx:18
Represents font data for one of the 14 standard PDF fonts.
Definition base14-fontdata.hxx:27
int16_t descent
Font descent.
Definition base14-fontdata.hxx:40
int16_t ascent
Font ascent.
Definition base14-fontdata.hxx:36
uint16_t cap_height
Font Cap-height.
Definition base14-fontdata.hxx:48
uint16_t x_height
Font X-height.
Definition base14-fontdata.hxx:44
vector< Base14_character_data > const & cdata
Font character data.
Definition base14-fontdata.hxx:30
Rectangle bbox
Font bounding box.
Definition base14-fontdata.hxx:52