src/font.h in rays-0.1.47 vs src/font.h in rays-0.1.48
- old
+ new
@@ -13,16 +13,20 @@
class RawFont
{
+ typedef RawFont This;
+
public:
RawFont ();
- RawFont (const char* name, coord size = 0);
+ RawFont (const char* name, coord size);
+ RawFont (const This& obj, coord size);
+
~RawFont ();
void draw_string (
void* context, coord context_height,
const char* str, coord x, coord y) const;
@@ -54,9 +58,12 @@
coord Font_get_width (const Font& font, float pixel_density, const char* str);
coord Font_get_height (
const Font& font, float pixel_density,
coord* ascent = NULL, coord* descent = NULL, coord* leading = NULL);
+
+
+ RawFont RawFont_load (const char* path, coord size);
}// Rays