Board  0.9.5
BoardFontText.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
27 #ifndef BOARD_BOARD_FONT_TEXT_H
28 #define BOARD_BOARD_FONT_TEXT_H
29 
30 #include <string>
31 #include "board/Group.h"
32 
33 namespace LibBoard
34 {
35 
36 // TODO : Handle line width (normalised)
37 
38 Group boardFontText(Point p, const std::string & text, double size, Color penColor = Style::defaultPenColor(), double lineWidth = 0.0);
39 
40 void splitAndParseSVGPaths(const std::string & text, ShapeList & shapes);
41 void parseSVGPath(const std::string & text, ShapeList & paths);
42 void flush(const std::vector<Point> & points, const std::vector<Point> & controls, ShapeList & paths);
43 
44 // Inline methods and functions
45 
46 } // namespace LibBoard
47 
48 #endif /* BOARD_BOARD_FONT_TEXT_H */
LibBoard::Style::defaultPenColor
static const Color & defaultPenColor()
defaultPenColor
Definition: Style.h:281
Group.h
Group class.