Basic FreeType renderer implementation.
[gdipp.git] / gdipp_server / os2_metrics.h
blob7f99504ffe1d4f5d5f80f40c285576633b711b25
1 #pragma once
3 namespace gdipp
6 class os2_metrics
8 public:
9 bool init(HDC hdc);
10 bool init(void *font_id);
12 FT_Short get_xAvgCharWidth() const;
13 char get_weight_class() const;
14 FT_UShort get_usWidthClass() const;
15 bool is_italic() const;
17 private:
18 FT_Short _xAvgCharWidth;
19 FT_UShort _usWeightClass;
20 FT_UShort _usWidthClass;
21 FT_UShort _fsSelection;