blob: a852bd888b32c9fcefd2c741db4f33916860df4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef _SVG_DC_H_INCLUDED_
#define _SVG_DC_H_INCLUDED_
#include <string>
#include <vector>
class SvgFontC;
class SvgDC
{
public:
virtual ~SvgDC() {}
virtual const SvgFontC *GetFont(
double heightInch, unsigned int weight, bool isItalic, const std::string &name) const = 0;
virtual double GetFontBaseLineHeightRatio(unsigned int fontId) const = 0;
virtual double GetTextPartialExtents(
const std::wstring &text, unsigned int fontId, double offsetInch,
std::vector<double> &extentsInch) const = 0;
virtual double GetTabCharExtent(unsigned int fontId, double offsetInch) const = 0;
};
extern SvgDC &GetSystemDC();
#endif // _SVG_DC_H_
|