Implement rendering of glyphs from font files in Freetype

This commit is contained in:
Kovid Goyal
2017-11-03 13:11:44 +05:30
parent 891942494f
commit 4726bcd210
4 changed files with 211 additions and 17 deletions

View File

@@ -290,6 +290,12 @@ set_size_for_face(PyObject *self, float pt_sz, float xdpi, float ydpi) {
}
bool
render_glyphs_in_cell(PyObject *f, bool bold, bool italic, hb_glyph_info_t *info, hb_glyph_position_t *positions, unsigned int num_glyphs, uint8_t *canvas, unsigned int cell_width, unsigned int cell_height, unsigned int num_cells, unsigned int baseline) {
// TODO: Implement this
return true;
}
static PyObject *
repr(Face *self) {
char buf[400] = {0};