#include <OGLFT.h>
Public Methods | |
| BBox () | |
| Default constructor is all zeros. | |
| BBox (FT_BBox ft_bbox) | |
| BBox & | operator *= (double k) |
| BBox & | operator+= (const BBox &b) |
Public Attributes | |
| float | x_min_ |
| The left-most position at which "ink" appears. | |
| float | y_min_ |
| the bottom-most position at which "ink" appears. | |
| float | x_max_ |
| The right-most position at which "ink" appears. | |
| float | y_max_ |
| The top-most position at which "ink" appears. | |
| Advance | advance_ |
| The (total) advancement. | |
|
|
(Partially) initialize a BBox from a FreeType bounding box member. (The advancement is initialized to zero by its default constructor).
|
|
|
Scale the bounding box by a constant.
|
|
|
Merge a bounding box into the current one (not really addition). Each time a BBox is "added", the current BBox is expanded to include the metrics of the new BBox. May only work for horizontal fonts, though.
|
1.2.18