blob: 9991b244705c6eb4dc4f6882a65e24776c2db4a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <boost/python.hpp>
#include "fscalc.h"
using namespace boost::python;
BOOST_PYTHON_MODULE(fscalc) {
class_<Font>("Font", init<std::string, int, int>())
.def("set_font_size", &Font::set_font_size)
.def("get_kerning", &Font::get_kerning)
.def("get_text_width", &Font::get_text_width)
.def("get_line_height", &Font::get_line_height);
}
|