Add Glyph.advance()

This commit is contained in:
josh committed 2021-01-07 20:04:00 -05:00
1 parent 80da83058d
commit 07618f8a79
1 file changed
+5
+5
View File
@@ -59,6 +59,11 @@ class Font
return m_dft_glyph.top; return m_dft_glyph.top;
} }
@property int advance()
{
return m_dft_glyph.advance;
}
@property const(ubyte)[] bitmap() @property const(ubyte)[] bitmap()
{ {
int n_bytes = width * height; int n_bytes = width * height;